github.com/cycloidio/terraform@v1.1.10-0.20220513142504-76d5c768dc63/plugin/mock_proto/mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/cycloidio/terraform/tfplugin5 (interfaces: ProviderClient,ProvisionerClient,Provisioner_ProvisionResourceClient,Provisioner_ProvisionResourceServer) 3 4 // Package mock_tfplugin5 is a generated GoMock package. 5 package mock_tfplugin5 6 7 import ( 8 context "context" 9 reflect "reflect" 10 11 gomock "github.com/golang/mock/gomock" 12 tfplugin5 "github.com/cycloidio/terraform/tfplugin5" 13 grpc "google.golang.org/grpc" 14 metadata "google.golang.org/grpc/metadata" 15 ) 16 17 // MockProviderClient is a mock of ProviderClient interface. 18 type MockProviderClient struct { 19 ctrl *gomock.Controller 20 recorder *MockProviderClientMockRecorder 21 } 22 23 // MockProviderClientMockRecorder is the mock recorder for MockProviderClient. 24 type MockProviderClientMockRecorder struct { 25 mock *MockProviderClient 26 } 27 28 // NewMockProviderClient creates a new mock instance. 29 func NewMockProviderClient(ctrl *gomock.Controller) *MockProviderClient { 30 mock := &MockProviderClient{ctrl: ctrl} 31 mock.recorder = &MockProviderClientMockRecorder{mock} 32 return mock 33 } 34 35 // EXPECT returns an object that allows the caller to indicate expected use. 36 func (m *MockProviderClient) EXPECT() *MockProviderClientMockRecorder { 37 return m.recorder 38 } 39 40 // ApplyResourceChange mocks base method. 41 func (m *MockProviderClient) ApplyResourceChange(arg0 context.Context, arg1 *tfplugin5.ApplyResourceChange_Request, arg2 ...grpc.CallOption) (*tfplugin5.ApplyResourceChange_Response, error) { 42 m.ctrl.T.Helper() 43 varargs := []interface{}{arg0, arg1} 44 for _, a := range arg2 { 45 varargs = append(varargs, a) 46 } 47 ret := m.ctrl.Call(m, "ApplyResourceChange", varargs...) 48 ret0, _ := ret[0].(*tfplugin5.ApplyResourceChange_Response) 49 ret1, _ := ret[1].(error) 50 return ret0, ret1 51 } 52 53 // ApplyResourceChange indicates an expected call of ApplyResourceChange. 54 func (mr *MockProviderClientMockRecorder) ApplyResourceChange(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 55 mr.mock.ctrl.T.Helper() 56 varargs := append([]interface{}{arg0, arg1}, arg2...) 57 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyResourceChange", reflect.TypeOf((*MockProviderClient)(nil).ApplyResourceChange), varargs...) 58 } 59 60 // Configure mocks base method. 61 func (m *MockProviderClient) Configure(arg0 context.Context, arg1 *tfplugin5.Configure_Request, arg2 ...grpc.CallOption) (*tfplugin5.Configure_Response, error) { 62 m.ctrl.T.Helper() 63 varargs := []interface{}{arg0, arg1} 64 for _, a := range arg2 { 65 varargs = append(varargs, a) 66 } 67 ret := m.ctrl.Call(m, "Configure", varargs...) 68 ret0, _ := ret[0].(*tfplugin5.Configure_Response) 69 ret1, _ := ret[1].(error) 70 return ret0, ret1 71 } 72 73 // Configure indicates an expected call of Configure. 74 func (mr *MockProviderClientMockRecorder) Configure(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 75 mr.mock.ctrl.T.Helper() 76 varargs := append([]interface{}{arg0, arg1}, arg2...) 77 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Configure", reflect.TypeOf((*MockProviderClient)(nil).Configure), varargs...) 78 } 79 80 // GetSchema mocks base method. 81 func (m *MockProviderClient) GetSchema(arg0 context.Context, arg1 *tfplugin5.GetProviderSchema_Request, arg2 ...grpc.CallOption) (*tfplugin5.GetProviderSchema_Response, error) { 82 m.ctrl.T.Helper() 83 varargs := []interface{}{arg0, arg1} 84 for _, a := range arg2 { 85 varargs = append(varargs, a) 86 } 87 ret := m.ctrl.Call(m, "GetSchema", varargs...) 88 ret0, _ := ret[0].(*tfplugin5.GetProviderSchema_Response) 89 ret1, _ := ret[1].(error) 90 return ret0, ret1 91 } 92 93 // GetSchema indicates an expected call of GetSchema. 94 func (mr *MockProviderClientMockRecorder) GetSchema(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 95 mr.mock.ctrl.T.Helper() 96 varargs := append([]interface{}{arg0, arg1}, arg2...) 97 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSchema", reflect.TypeOf((*MockProviderClient)(nil).GetSchema), varargs...) 98 } 99 100 // ImportResourceState mocks base method. 101 func (m *MockProviderClient) ImportResourceState(arg0 context.Context, arg1 *tfplugin5.ImportResourceState_Request, arg2 ...grpc.CallOption) (*tfplugin5.ImportResourceState_Response, error) { 102 m.ctrl.T.Helper() 103 varargs := []interface{}{arg0, arg1} 104 for _, a := range arg2 { 105 varargs = append(varargs, a) 106 } 107 ret := m.ctrl.Call(m, "ImportResourceState", varargs...) 108 ret0, _ := ret[0].(*tfplugin5.ImportResourceState_Response) 109 ret1, _ := ret[1].(error) 110 return ret0, ret1 111 } 112 113 // ImportResourceState indicates an expected call of ImportResourceState. 114 func (mr *MockProviderClientMockRecorder) ImportResourceState(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 115 mr.mock.ctrl.T.Helper() 116 varargs := append([]interface{}{arg0, arg1}, arg2...) 117 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImportResourceState", reflect.TypeOf((*MockProviderClient)(nil).ImportResourceState), varargs...) 118 } 119 120 // PlanResourceChange mocks base method. 121 func (m *MockProviderClient) PlanResourceChange(arg0 context.Context, arg1 *tfplugin5.PlanResourceChange_Request, arg2 ...grpc.CallOption) (*tfplugin5.PlanResourceChange_Response, error) { 122 m.ctrl.T.Helper() 123 varargs := []interface{}{arg0, arg1} 124 for _, a := range arg2 { 125 varargs = append(varargs, a) 126 } 127 ret := m.ctrl.Call(m, "PlanResourceChange", varargs...) 128 ret0, _ := ret[0].(*tfplugin5.PlanResourceChange_Response) 129 ret1, _ := ret[1].(error) 130 return ret0, ret1 131 } 132 133 // PlanResourceChange indicates an expected call of PlanResourceChange. 134 func (mr *MockProviderClientMockRecorder) PlanResourceChange(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 135 mr.mock.ctrl.T.Helper() 136 varargs := append([]interface{}{arg0, arg1}, arg2...) 137 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PlanResourceChange", reflect.TypeOf((*MockProviderClient)(nil).PlanResourceChange), varargs...) 138 } 139 140 // PrepareProviderConfig mocks base method. 141 func (m *MockProviderClient) PrepareProviderConfig(arg0 context.Context, arg1 *tfplugin5.PrepareProviderConfig_Request, arg2 ...grpc.CallOption) (*tfplugin5.PrepareProviderConfig_Response, error) { 142 m.ctrl.T.Helper() 143 varargs := []interface{}{arg0, arg1} 144 for _, a := range arg2 { 145 varargs = append(varargs, a) 146 } 147 ret := m.ctrl.Call(m, "PrepareProviderConfig", varargs...) 148 ret0, _ := ret[0].(*tfplugin5.PrepareProviderConfig_Response) 149 ret1, _ := ret[1].(error) 150 return ret0, ret1 151 } 152 153 // PrepareProviderConfig indicates an expected call of PrepareProviderConfig. 154 func (mr *MockProviderClientMockRecorder) PrepareProviderConfig(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 155 mr.mock.ctrl.T.Helper() 156 varargs := append([]interface{}{arg0, arg1}, arg2...) 157 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PrepareProviderConfig", reflect.TypeOf((*MockProviderClient)(nil).PrepareProviderConfig), varargs...) 158 } 159 160 // ReadDataSource mocks base method. 161 func (m *MockProviderClient) ReadDataSource(arg0 context.Context, arg1 *tfplugin5.ReadDataSource_Request, arg2 ...grpc.CallOption) (*tfplugin5.ReadDataSource_Response, error) { 162 m.ctrl.T.Helper() 163 varargs := []interface{}{arg0, arg1} 164 for _, a := range arg2 { 165 varargs = append(varargs, a) 166 } 167 ret := m.ctrl.Call(m, "ReadDataSource", varargs...) 168 ret0, _ := ret[0].(*tfplugin5.ReadDataSource_Response) 169 ret1, _ := ret[1].(error) 170 return ret0, ret1 171 } 172 173 // ReadDataSource indicates an expected call of ReadDataSource. 174 func (mr *MockProviderClientMockRecorder) ReadDataSource(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 175 mr.mock.ctrl.T.Helper() 176 varargs := append([]interface{}{arg0, arg1}, arg2...) 177 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadDataSource", reflect.TypeOf((*MockProviderClient)(nil).ReadDataSource), varargs...) 178 } 179 180 // ReadResource mocks base method. 181 func (m *MockProviderClient) ReadResource(arg0 context.Context, arg1 *tfplugin5.ReadResource_Request, arg2 ...grpc.CallOption) (*tfplugin5.ReadResource_Response, error) { 182 m.ctrl.T.Helper() 183 varargs := []interface{}{arg0, arg1} 184 for _, a := range arg2 { 185 varargs = append(varargs, a) 186 } 187 ret := m.ctrl.Call(m, "ReadResource", varargs...) 188 ret0, _ := ret[0].(*tfplugin5.ReadResource_Response) 189 ret1, _ := ret[1].(error) 190 return ret0, ret1 191 } 192 193 // ReadResource indicates an expected call of ReadResource. 194 func (mr *MockProviderClientMockRecorder) ReadResource(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 195 mr.mock.ctrl.T.Helper() 196 varargs := append([]interface{}{arg0, arg1}, arg2...) 197 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadResource", reflect.TypeOf((*MockProviderClient)(nil).ReadResource), varargs...) 198 } 199 200 // Stop mocks base method. 201 func (m *MockProviderClient) Stop(arg0 context.Context, arg1 *tfplugin5.Stop_Request, arg2 ...grpc.CallOption) (*tfplugin5.Stop_Response, error) { 202 m.ctrl.T.Helper() 203 varargs := []interface{}{arg0, arg1} 204 for _, a := range arg2 { 205 varargs = append(varargs, a) 206 } 207 ret := m.ctrl.Call(m, "Stop", varargs...) 208 ret0, _ := ret[0].(*tfplugin5.Stop_Response) 209 ret1, _ := ret[1].(error) 210 return ret0, ret1 211 } 212 213 // Stop indicates an expected call of Stop. 214 func (mr *MockProviderClientMockRecorder) Stop(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 215 mr.mock.ctrl.T.Helper() 216 varargs := append([]interface{}{arg0, arg1}, arg2...) 217 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockProviderClient)(nil).Stop), varargs...) 218 } 219 220 // UpgradeResourceState mocks base method. 221 func (m *MockProviderClient) UpgradeResourceState(arg0 context.Context, arg1 *tfplugin5.UpgradeResourceState_Request, arg2 ...grpc.CallOption) (*tfplugin5.UpgradeResourceState_Response, error) { 222 m.ctrl.T.Helper() 223 varargs := []interface{}{arg0, arg1} 224 for _, a := range arg2 { 225 varargs = append(varargs, a) 226 } 227 ret := m.ctrl.Call(m, "UpgradeResourceState", varargs...) 228 ret0, _ := ret[0].(*tfplugin5.UpgradeResourceState_Response) 229 ret1, _ := ret[1].(error) 230 return ret0, ret1 231 } 232 233 // UpgradeResourceState indicates an expected call of UpgradeResourceState. 234 func (mr *MockProviderClientMockRecorder) UpgradeResourceState(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 235 mr.mock.ctrl.T.Helper() 236 varargs := append([]interface{}{arg0, arg1}, arg2...) 237 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpgradeResourceState", reflect.TypeOf((*MockProviderClient)(nil).UpgradeResourceState), varargs...) 238 } 239 240 // ValidateDataSourceConfig mocks base method. 241 func (m *MockProviderClient) ValidateDataSourceConfig(arg0 context.Context, arg1 *tfplugin5.ValidateDataSourceConfig_Request, arg2 ...grpc.CallOption) (*tfplugin5.ValidateDataSourceConfig_Response, error) { 242 m.ctrl.T.Helper() 243 varargs := []interface{}{arg0, arg1} 244 for _, a := range arg2 { 245 varargs = append(varargs, a) 246 } 247 ret := m.ctrl.Call(m, "ValidateDataSourceConfig", varargs...) 248 ret0, _ := ret[0].(*tfplugin5.ValidateDataSourceConfig_Response) 249 ret1, _ := ret[1].(error) 250 return ret0, ret1 251 } 252 253 // ValidateDataSourceConfig indicates an expected call of ValidateDataSourceConfig. 254 func (mr *MockProviderClientMockRecorder) ValidateDataSourceConfig(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 255 mr.mock.ctrl.T.Helper() 256 varargs := append([]interface{}{arg0, arg1}, arg2...) 257 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateDataSourceConfig", reflect.TypeOf((*MockProviderClient)(nil).ValidateDataSourceConfig), varargs...) 258 } 259 260 // ValidateResourceTypeConfig mocks base method. 261 func (m *MockProviderClient) ValidateResourceTypeConfig(arg0 context.Context, arg1 *tfplugin5.ValidateResourceTypeConfig_Request, arg2 ...grpc.CallOption) (*tfplugin5.ValidateResourceTypeConfig_Response, error) { 262 m.ctrl.T.Helper() 263 varargs := []interface{}{arg0, arg1} 264 for _, a := range arg2 { 265 varargs = append(varargs, a) 266 } 267 ret := m.ctrl.Call(m, "ValidateResourceTypeConfig", varargs...) 268 ret0, _ := ret[0].(*tfplugin5.ValidateResourceTypeConfig_Response) 269 ret1, _ := ret[1].(error) 270 return ret0, ret1 271 } 272 273 // ValidateResourceTypeConfig indicates an expected call of ValidateResourceTypeConfig. 274 func (mr *MockProviderClientMockRecorder) ValidateResourceTypeConfig(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 275 mr.mock.ctrl.T.Helper() 276 varargs := append([]interface{}{arg0, arg1}, arg2...) 277 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateResourceTypeConfig", reflect.TypeOf((*MockProviderClient)(nil).ValidateResourceTypeConfig), varargs...) 278 } 279 280 // MockProvisionerClient is a mock of ProvisionerClient interface. 281 type MockProvisionerClient struct { 282 ctrl *gomock.Controller 283 recorder *MockProvisionerClientMockRecorder 284 } 285 286 // MockProvisionerClientMockRecorder is the mock recorder for MockProvisionerClient. 287 type MockProvisionerClientMockRecorder struct { 288 mock *MockProvisionerClient 289 } 290 291 // NewMockProvisionerClient creates a new mock instance. 292 func NewMockProvisionerClient(ctrl *gomock.Controller) *MockProvisionerClient { 293 mock := &MockProvisionerClient{ctrl: ctrl} 294 mock.recorder = &MockProvisionerClientMockRecorder{mock} 295 return mock 296 } 297 298 // EXPECT returns an object that allows the caller to indicate expected use. 299 func (m *MockProvisionerClient) EXPECT() *MockProvisionerClientMockRecorder { 300 return m.recorder 301 } 302 303 // GetSchema mocks base method. 304 func (m *MockProvisionerClient) GetSchema(arg0 context.Context, arg1 *tfplugin5.GetProvisionerSchema_Request, arg2 ...grpc.CallOption) (*tfplugin5.GetProvisionerSchema_Response, error) { 305 m.ctrl.T.Helper() 306 varargs := []interface{}{arg0, arg1} 307 for _, a := range arg2 { 308 varargs = append(varargs, a) 309 } 310 ret := m.ctrl.Call(m, "GetSchema", varargs...) 311 ret0, _ := ret[0].(*tfplugin5.GetProvisionerSchema_Response) 312 ret1, _ := ret[1].(error) 313 return ret0, ret1 314 } 315 316 // GetSchema indicates an expected call of GetSchema. 317 func (mr *MockProvisionerClientMockRecorder) GetSchema(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 318 mr.mock.ctrl.T.Helper() 319 varargs := append([]interface{}{arg0, arg1}, arg2...) 320 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSchema", reflect.TypeOf((*MockProvisionerClient)(nil).GetSchema), varargs...) 321 } 322 323 // ProvisionResource mocks base method. 324 func (m *MockProvisionerClient) ProvisionResource(arg0 context.Context, arg1 *tfplugin5.ProvisionResource_Request, arg2 ...grpc.CallOption) (tfplugin5.Provisioner_ProvisionResourceClient, error) { 325 m.ctrl.T.Helper() 326 varargs := []interface{}{arg0, arg1} 327 for _, a := range arg2 { 328 varargs = append(varargs, a) 329 } 330 ret := m.ctrl.Call(m, "ProvisionResource", varargs...) 331 ret0, _ := ret[0].(tfplugin5.Provisioner_ProvisionResourceClient) 332 ret1, _ := ret[1].(error) 333 return ret0, ret1 334 } 335 336 // ProvisionResource indicates an expected call of ProvisionResource. 337 func (mr *MockProvisionerClientMockRecorder) ProvisionResource(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 338 mr.mock.ctrl.T.Helper() 339 varargs := append([]interface{}{arg0, arg1}, arg2...) 340 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProvisionResource", reflect.TypeOf((*MockProvisionerClient)(nil).ProvisionResource), varargs...) 341 } 342 343 // Stop mocks base method. 344 func (m *MockProvisionerClient) Stop(arg0 context.Context, arg1 *tfplugin5.Stop_Request, arg2 ...grpc.CallOption) (*tfplugin5.Stop_Response, error) { 345 m.ctrl.T.Helper() 346 varargs := []interface{}{arg0, arg1} 347 for _, a := range arg2 { 348 varargs = append(varargs, a) 349 } 350 ret := m.ctrl.Call(m, "Stop", varargs...) 351 ret0, _ := ret[0].(*tfplugin5.Stop_Response) 352 ret1, _ := ret[1].(error) 353 return ret0, ret1 354 } 355 356 // Stop indicates an expected call of Stop. 357 func (mr *MockProvisionerClientMockRecorder) Stop(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 358 mr.mock.ctrl.T.Helper() 359 varargs := append([]interface{}{arg0, arg1}, arg2...) 360 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockProvisionerClient)(nil).Stop), varargs...) 361 } 362 363 // ValidateProvisionerConfig mocks base method. 364 func (m *MockProvisionerClient) ValidateProvisionerConfig(arg0 context.Context, arg1 *tfplugin5.ValidateProvisionerConfig_Request, arg2 ...grpc.CallOption) (*tfplugin5.ValidateProvisionerConfig_Response, error) { 365 m.ctrl.T.Helper() 366 varargs := []interface{}{arg0, arg1} 367 for _, a := range arg2 { 368 varargs = append(varargs, a) 369 } 370 ret := m.ctrl.Call(m, "ValidateProvisionerConfig", varargs...) 371 ret0, _ := ret[0].(*tfplugin5.ValidateProvisionerConfig_Response) 372 ret1, _ := ret[1].(error) 373 return ret0, ret1 374 } 375 376 // ValidateProvisionerConfig indicates an expected call of ValidateProvisionerConfig. 377 func (mr *MockProvisionerClientMockRecorder) ValidateProvisionerConfig(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 378 mr.mock.ctrl.T.Helper() 379 varargs := append([]interface{}{arg0, arg1}, arg2...) 380 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateProvisionerConfig", reflect.TypeOf((*MockProvisionerClient)(nil).ValidateProvisionerConfig), varargs...) 381 } 382 383 // MockProvisioner_ProvisionResourceClient is a mock of Provisioner_ProvisionResourceClient interface. 384 type MockProvisioner_ProvisionResourceClient struct { 385 ctrl *gomock.Controller 386 recorder *MockProvisioner_ProvisionResourceClientMockRecorder 387 } 388 389 // MockProvisioner_ProvisionResourceClientMockRecorder is the mock recorder for MockProvisioner_ProvisionResourceClient. 390 type MockProvisioner_ProvisionResourceClientMockRecorder struct { 391 mock *MockProvisioner_ProvisionResourceClient 392 } 393 394 // NewMockProvisioner_ProvisionResourceClient creates a new mock instance. 395 func NewMockProvisioner_ProvisionResourceClient(ctrl *gomock.Controller) *MockProvisioner_ProvisionResourceClient { 396 mock := &MockProvisioner_ProvisionResourceClient{ctrl: ctrl} 397 mock.recorder = &MockProvisioner_ProvisionResourceClientMockRecorder{mock} 398 return mock 399 } 400 401 // EXPECT returns an object that allows the caller to indicate expected use. 402 func (m *MockProvisioner_ProvisionResourceClient) EXPECT() *MockProvisioner_ProvisionResourceClientMockRecorder { 403 return m.recorder 404 } 405 406 // CloseSend mocks base method. 407 func (m *MockProvisioner_ProvisionResourceClient) CloseSend() error { 408 m.ctrl.T.Helper() 409 ret := m.ctrl.Call(m, "CloseSend") 410 ret0, _ := ret[0].(error) 411 return ret0 412 } 413 414 // CloseSend indicates an expected call of CloseSend. 415 func (mr *MockProvisioner_ProvisionResourceClientMockRecorder) CloseSend() *gomock.Call { 416 mr.mock.ctrl.T.Helper() 417 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CloseSend", reflect.TypeOf((*MockProvisioner_ProvisionResourceClient)(nil).CloseSend)) 418 } 419 420 // Context mocks base method. 421 func (m *MockProvisioner_ProvisionResourceClient) Context() context.Context { 422 m.ctrl.T.Helper() 423 ret := m.ctrl.Call(m, "Context") 424 ret0, _ := ret[0].(context.Context) 425 return ret0 426 } 427 428 // Context indicates an expected call of Context. 429 func (mr *MockProvisioner_ProvisionResourceClientMockRecorder) Context() *gomock.Call { 430 mr.mock.ctrl.T.Helper() 431 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Context", reflect.TypeOf((*MockProvisioner_ProvisionResourceClient)(nil).Context)) 432 } 433 434 // Header mocks base method. 435 func (m *MockProvisioner_ProvisionResourceClient) Header() (metadata.MD, error) { 436 m.ctrl.T.Helper() 437 ret := m.ctrl.Call(m, "Header") 438 ret0, _ := ret[0].(metadata.MD) 439 ret1, _ := ret[1].(error) 440 return ret0, ret1 441 } 442 443 // Header indicates an expected call of Header. 444 func (mr *MockProvisioner_ProvisionResourceClientMockRecorder) Header() *gomock.Call { 445 mr.mock.ctrl.T.Helper() 446 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Header", reflect.TypeOf((*MockProvisioner_ProvisionResourceClient)(nil).Header)) 447 } 448 449 // Recv mocks base method. 450 func (m *MockProvisioner_ProvisionResourceClient) Recv() (*tfplugin5.ProvisionResource_Response, error) { 451 m.ctrl.T.Helper() 452 ret := m.ctrl.Call(m, "Recv") 453 ret0, _ := ret[0].(*tfplugin5.ProvisionResource_Response) 454 ret1, _ := ret[1].(error) 455 return ret0, ret1 456 } 457 458 // Recv indicates an expected call of Recv. 459 func (mr *MockProvisioner_ProvisionResourceClientMockRecorder) Recv() *gomock.Call { 460 mr.mock.ctrl.T.Helper() 461 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Recv", reflect.TypeOf((*MockProvisioner_ProvisionResourceClient)(nil).Recv)) 462 } 463 464 // RecvMsg mocks base method. 465 func (m *MockProvisioner_ProvisionResourceClient) RecvMsg(arg0 interface{}) error { 466 m.ctrl.T.Helper() 467 ret := m.ctrl.Call(m, "RecvMsg", arg0) 468 ret0, _ := ret[0].(error) 469 return ret0 470 } 471 472 // RecvMsg indicates an expected call of RecvMsg. 473 func (mr *MockProvisioner_ProvisionResourceClientMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call { 474 mr.mock.ctrl.T.Helper() 475 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RecvMsg", reflect.TypeOf((*MockProvisioner_ProvisionResourceClient)(nil).RecvMsg), arg0) 476 } 477 478 // SendMsg mocks base method. 479 func (m *MockProvisioner_ProvisionResourceClient) SendMsg(arg0 interface{}) error { 480 m.ctrl.T.Helper() 481 ret := m.ctrl.Call(m, "SendMsg", arg0) 482 ret0, _ := ret[0].(error) 483 return ret0 484 } 485 486 // SendMsg indicates an expected call of SendMsg. 487 func (mr *MockProvisioner_ProvisionResourceClientMockRecorder) SendMsg(arg0 interface{}) *gomock.Call { 488 mr.mock.ctrl.T.Helper() 489 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMsg", reflect.TypeOf((*MockProvisioner_ProvisionResourceClient)(nil).SendMsg), arg0) 490 } 491 492 // Trailer mocks base method. 493 func (m *MockProvisioner_ProvisionResourceClient) Trailer() metadata.MD { 494 m.ctrl.T.Helper() 495 ret := m.ctrl.Call(m, "Trailer") 496 ret0, _ := ret[0].(metadata.MD) 497 return ret0 498 } 499 500 // Trailer indicates an expected call of Trailer. 501 func (mr *MockProvisioner_ProvisionResourceClientMockRecorder) Trailer() *gomock.Call { 502 mr.mock.ctrl.T.Helper() 503 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Trailer", reflect.TypeOf((*MockProvisioner_ProvisionResourceClient)(nil).Trailer)) 504 } 505 506 // MockProvisioner_ProvisionResourceServer is a mock of Provisioner_ProvisionResourceServer interface. 507 type MockProvisioner_ProvisionResourceServer struct { 508 ctrl *gomock.Controller 509 recorder *MockProvisioner_ProvisionResourceServerMockRecorder 510 } 511 512 // MockProvisioner_ProvisionResourceServerMockRecorder is the mock recorder for MockProvisioner_ProvisionResourceServer. 513 type MockProvisioner_ProvisionResourceServerMockRecorder struct { 514 mock *MockProvisioner_ProvisionResourceServer 515 } 516 517 // NewMockProvisioner_ProvisionResourceServer creates a new mock instance. 518 func NewMockProvisioner_ProvisionResourceServer(ctrl *gomock.Controller) *MockProvisioner_ProvisionResourceServer { 519 mock := &MockProvisioner_ProvisionResourceServer{ctrl: ctrl} 520 mock.recorder = &MockProvisioner_ProvisionResourceServerMockRecorder{mock} 521 return mock 522 } 523 524 // EXPECT returns an object that allows the caller to indicate expected use. 525 func (m *MockProvisioner_ProvisionResourceServer) EXPECT() *MockProvisioner_ProvisionResourceServerMockRecorder { 526 return m.recorder 527 } 528 529 // Context mocks base method. 530 func (m *MockProvisioner_ProvisionResourceServer) Context() context.Context { 531 m.ctrl.T.Helper() 532 ret := m.ctrl.Call(m, "Context") 533 ret0, _ := ret[0].(context.Context) 534 return ret0 535 } 536 537 // Context indicates an expected call of Context. 538 func (mr *MockProvisioner_ProvisionResourceServerMockRecorder) Context() *gomock.Call { 539 mr.mock.ctrl.T.Helper() 540 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Context", reflect.TypeOf((*MockProvisioner_ProvisionResourceServer)(nil).Context)) 541 } 542 543 // RecvMsg mocks base method. 544 func (m *MockProvisioner_ProvisionResourceServer) RecvMsg(arg0 interface{}) error { 545 m.ctrl.T.Helper() 546 ret := m.ctrl.Call(m, "RecvMsg", arg0) 547 ret0, _ := ret[0].(error) 548 return ret0 549 } 550 551 // RecvMsg indicates an expected call of RecvMsg. 552 func (mr *MockProvisioner_ProvisionResourceServerMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call { 553 mr.mock.ctrl.T.Helper() 554 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RecvMsg", reflect.TypeOf((*MockProvisioner_ProvisionResourceServer)(nil).RecvMsg), arg0) 555 } 556 557 // Send mocks base method. 558 func (m *MockProvisioner_ProvisionResourceServer) Send(arg0 *tfplugin5.ProvisionResource_Response) error { 559 m.ctrl.T.Helper() 560 ret := m.ctrl.Call(m, "Send", arg0) 561 ret0, _ := ret[0].(error) 562 return ret0 563 } 564 565 // Send indicates an expected call of Send. 566 func (mr *MockProvisioner_ProvisionResourceServerMockRecorder) Send(arg0 interface{}) *gomock.Call { 567 mr.mock.ctrl.T.Helper() 568 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Send", reflect.TypeOf((*MockProvisioner_ProvisionResourceServer)(nil).Send), arg0) 569 } 570 571 // SendHeader mocks base method. 572 func (m *MockProvisioner_ProvisionResourceServer) SendHeader(arg0 metadata.MD) error { 573 m.ctrl.T.Helper() 574 ret := m.ctrl.Call(m, "SendHeader", arg0) 575 ret0, _ := ret[0].(error) 576 return ret0 577 } 578 579 // SendHeader indicates an expected call of SendHeader. 580 func (mr *MockProvisioner_ProvisionResourceServerMockRecorder) SendHeader(arg0 interface{}) *gomock.Call { 581 mr.mock.ctrl.T.Helper() 582 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendHeader", reflect.TypeOf((*MockProvisioner_ProvisionResourceServer)(nil).SendHeader), arg0) 583 } 584 585 // SendMsg mocks base method. 586 func (m *MockProvisioner_ProvisionResourceServer) SendMsg(arg0 interface{}) error { 587 m.ctrl.T.Helper() 588 ret := m.ctrl.Call(m, "SendMsg", arg0) 589 ret0, _ := ret[0].(error) 590 return ret0 591 } 592 593 // SendMsg indicates an expected call of SendMsg. 594 func (mr *MockProvisioner_ProvisionResourceServerMockRecorder) SendMsg(arg0 interface{}) *gomock.Call { 595 mr.mock.ctrl.T.Helper() 596 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMsg", reflect.TypeOf((*MockProvisioner_ProvisionResourceServer)(nil).SendMsg), arg0) 597 } 598 599 // SetHeader mocks base method. 600 func (m *MockProvisioner_ProvisionResourceServer) SetHeader(arg0 metadata.MD) error { 601 m.ctrl.T.Helper() 602 ret := m.ctrl.Call(m, "SetHeader", arg0) 603 ret0, _ := ret[0].(error) 604 return ret0 605 } 606 607 // SetHeader indicates an expected call of SetHeader. 608 func (mr *MockProvisioner_ProvisionResourceServerMockRecorder) SetHeader(arg0 interface{}) *gomock.Call { 609 mr.mock.ctrl.T.Helper() 610 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetHeader", reflect.TypeOf((*MockProvisioner_ProvisionResourceServer)(nil).SetHeader), arg0) 611 } 612 613 // SetTrailer mocks base method. 614 func (m *MockProvisioner_ProvisionResourceServer) SetTrailer(arg0 metadata.MD) { 615 m.ctrl.T.Helper() 616 m.ctrl.Call(m, "SetTrailer", arg0) 617 } 618 619 // SetTrailer indicates an expected call of SetTrailer. 620 func (mr *MockProvisioner_ProvisionResourceServerMockRecorder) SetTrailer(arg0 interface{}) *gomock.Call { 621 mr.mock.ctrl.T.Helper() 622 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetTrailer", reflect.TypeOf((*MockProvisioner_ProvisionResourceServer)(nil).SetTrailer), arg0) 623 }