github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/caas/kubernetes/provider/mocks/dynamic_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: k8s.io/client-go/dynamic (interfaces: Interface,ResourceInterface,NamespaceableResourceInterface) 3 // 4 // Generated by this command: 5 // 6 // mockgen -package mocks -destination mocks/dynamic_mock.go -mock_names=Interface=MockDynamicInterface k8s.io/client-go/dynamic Interface,ResourceInterface,NamespaceableResourceInterface 7 // 8 9 // Package mocks is a generated GoMock package. 10 package mocks 11 12 import ( 13 context "context" 14 reflect "reflect" 15 16 gomock "go.uber.org/mock/gomock" 17 v1 "k8s.io/apimachinery/pkg/apis/meta/v1" 18 unstructured "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" 19 schema "k8s.io/apimachinery/pkg/runtime/schema" 20 types "k8s.io/apimachinery/pkg/types" 21 watch "k8s.io/apimachinery/pkg/watch" 22 dynamic "k8s.io/client-go/dynamic" 23 ) 24 25 // MockDynamicInterface is a mock of Interface interface. 26 type MockDynamicInterface struct { 27 ctrl *gomock.Controller 28 recorder *MockDynamicInterfaceMockRecorder 29 } 30 31 // MockDynamicInterfaceMockRecorder is the mock recorder for MockDynamicInterface. 32 type MockDynamicInterfaceMockRecorder struct { 33 mock *MockDynamicInterface 34 } 35 36 // NewMockDynamicInterface creates a new mock instance. 37 func NewMockDynamicInterface(ctrl *gomock.Controller) *MockDynamicInterface { 38 mock := &MockDynamicInterface{ctrl: ctrl} 39 mock.recorder = &MockDynamicInterfaceMockRecorder{mock} 40 return mock 41 } 42 43 // EXPECT returns an object that allows the caller to indicate expected use. 44 func (m *MockDynamicInterface) EXPECT() *MockDynamicInterfaceMockRecorder { 45 return m.recorder 46 } 47 48 // Resource mocks base method. 49 func (m *MockDynamicInterface) Resource(arg0 schema.GroupVersionResource) dynamic.NamespaceableResourceInterface { 50 m.ctrl.T.Helper() 51 ret := m.ctrl.Call(m, "Resource", arg0) 52 ret0, _ := ret[0].(dynamic.NamespaceableResourceInterface) 53 return ret0 54 } 55 56 // Resource indicates an expected call of Resource. 57 func (mr *MockDynamicInterfaceMockRecorder) Resource(arg0 any) *gomock.Call { 58 mr.mock.ctrl.T.Helper() 59 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Resource", reflect.TypeOf((*MockDynamicInterface)(nil).Resource), arg0) 60 } 61 62 // MockResourceInterface is a mock of ResourceInterface interface. 63 type MockResourceInterface struct { 64 ctrl *gomock.Controller 65 recorder *MockResourceInterfaceMockRecorder 66 } 67 68 // MockResourceInterfaceMockRecorder is the mock recorder for MockResourceInterface. 69 type MockResourceInterfaceMockRecorder struct { 70 mock *MockResourceInterface 71 } 72 73 // NewMockResourceInterface creates a new mock instance. 74 func NewMockResourceInterface(ctrl *gomock.Controller) *MockResourceInterface { 75 mock := &MockResourceInterface{ctrl: ctrl} 76 mock.recorder = &MockResourceInterfaceMockRecorder{mock} 77 return mock 78 } 79 80 // EXPECT returns an object that allows the caller to indicate expected use. 81 func (m *MockResourceInterface) EXPECT() *MockResourceInterfaceMockRecorder { 82 return m.recorder 83 } 84 85 // Apply mocks base method. 86 func (m *MockResourceInterface) Apply(arg0 context.Context, arg1 string, arg2 *unstructured.Unstructured, arg3 v1.ApplyOptions, arg4 ...string) (*unstructured.Unstructured, error) { 87 m.ctrl.T.Helper() 88 varargs := []any{arg0, arg1, arg2, arg3} 89 for _, a := range arg4 { 90 varargs = append(varargs, a) 91 } 92 ret := m.ctrl.Call(m, "Apply", varargs...) 93 ret0, _ := ret[0].(*unstructured.Unstructured) 94 ret1, _ := ret[1].(error) 95 return ret0, ret1 96 } 97 98 // Apply indicates an expected call of Apply. 99 func (mr *MockResourceInterfaceMockRecorder) Apply(arg0, arg1, arg2, arg3 any, arg4 ...any) *gomock.Call { 100 mr.mock.ctrl.T.Helper() 101 varargs := append([]any{arg0, arg1, arg2, arg3}, arg4...) 102 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockResourceInterface)(nil).Apply), varargs...) 103 } 104 105 // ApplyStatus mocks base method. 106 func (m *MockResourceInterface) ApplyStatus(arg0 context.Context, arg1 string, arg2 *unstructured.Unstructured, arg3 v1.ApplyOptions) (*unstructured.Unstructured, error) { 107 m.ctrl.T.Helper() 108 ret := m.ctrl.Call(m, "ApplyStatus", arg0, arg1, arg2, arg3) 109 ret0, _ := ret[0].(*unstructured.Unstructured) 110 ret1, _ := ret[1].(error) 111 return ret0, ret1 112 } 113 114 // ApplyStatus indicates an expected call of ApplyStatus. 115 func (mr *MockResourceInterfaceMockRecorder) ApplyStatus(arg0, arg1, arg2, arg3 any) *gomock.Call { 116 mr.mock.ctrl.T.Helper() 117 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyStatus", reflect.TypeOf((*MockResourceInterface)(nil).ApplyStatus), arg0, arg1, arg2, arg3) 118 } 119 120 // Create mocks base method. 121 func (m *MockResourceInterface) Create(arg0 context.Context, arg1 *unstructured.Unstructured, arg2 v1.CreateOptions, arg3 ...string) (*unstructured.Unstructured, error) { 122 m.ctrl.T.Helper() 123 varargs := []any{arg0, arg1, arg2} 124 for _, a := range arg3 { 125 varargs = append(varargs, a) 126 } 127 ret := m.ctrl.Call(m, "Create", varargs...) 128 ret0, _ := ret[0].(*unstructured.Unstructured) 129 ret1, _ := ret[1].(error) 130 return ret0, ret1 131 } 132 133 // Create indicates an expected call of Create. 134 func (mr *MockResourceInterfaceMockRecorder) Create(arg0, arg1, arg2 any, arg3 ...any) *gomock.Call { 135 mr.mock.ctrl.T.Helper() 136 varargs := append([]any{arg0, arg1, arg2}, arg3...) 137 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockResourceInterface)(nil).Create), varargs...) 138 } 139 140 // Delete mocks base method. 141 func (m *MockResourceInterface) Delete(arg0 context.Context, arg1 string, arg2 v1.DeleteOptions, arg3 ...string) error { 142 m.ctrl.T.Helper() 143 varargs := []any{arg0, arg1, arg2} 144 for _, a := range arg3 { 145 varargs = append(varargs, a) 146 } 147 ret := m.ctrl.Call(m, "Delete", varargs...) 148 ret0, _ := ret[0].(error) 149 return ret0 150 } 151 152 // Delete indicates an expected call of Delete. 153 func (mr *MockResourceInterfaceMockRecorder) Delete(arg0, arg1, arg2 any, arg3 ...any) *gomock.Call { 154 mr.mock.ctrl.T.Helper() 155 varargs := append([]any{arg0, arg1, arg2}, arg3...) 156 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockResourceInterface)(nil).Delete), varargs...) 157 } 158 159 // DeleteCollection mocks base method. 160 func (m *MockResourceInterface) DeleteCollection(arg0 context.Context, arg1 v1.DeleteOptions, arg2 v1.ListOptions) error { 161 m.ctrl.T.Helper() 162 ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1, arg2) 163 ret0, _ := ret[0].(error) 164 return ret0 165 } 166 167 // DeleteCollection indicates an expected call of DeleteCollection. 168 func (mr *MockResourceInterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 any) *gomock.Call { 169 mr.mock.ctrl.T.Helper() 170 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockResourceInterface)(nil).DeleteCollection), arg0, arg1, arg2) 171 } 172 173 // Get mocks base method. 174 func (m *MockResourceInterface) Get(arg0 context.Context, arg1 string, arg2 v1.GetOptions, arg3 ...string) (*unstructured.Unstructured, error) { 175 m.ctrl.T.Helper() 176 varargs := []any{arg0, arg1, arg2} 177 for _, a := range arg3 { 178 varargs = append(varargs, a) 179 } 180 ret := m.ctrl.Call(m, "Get", varargs...) 181 ret0, _ := ret[0].(*unstructured.Unstructured) 182 ret1, _ := ret[1].(error) 183 return ret0, ret1 184 } 185 186 // Get indicates an expected call of Get. 187 func (mr *MockResourceInterfaceMockRecorder) Get(arg0, arg1, arg2 any, arg3 ...any) *gomock.Call { 188 mr.mock.ctrl.T.Helper() 189 varargs := append([]any{arg0, arg1, arg2}, arg3...) 190 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockResourceInterface)(nil).Get), varargs...) 191 } 192 193 // List mocks base method. 194 func (m *MockResourceInterface) List(arg0 context.Context, arg1 v1.ListOptions) (*unstructured.UnstructuredList, error) { 195 m.ctrl.T.Helper() 196 ret := m.ctrl.Call(m, "List", arg0, arg1) 197 ret0, _ := ret[0].(*unstructured.UnstructuredList) 198 ret1, _ := ret[1].(error) 199 return ret0, ret1 200 } 201 202 // List indicates an expected call of List. 203 func (mr *MockResourceInterfaceMockRecorder) List(arg0, arg1 any) *gomock.Call { 204 mr.mock.ctrl.T.Helper() 205 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockResourceInterface)(nil).List), arg0, arg1) 206 } 207 208 // Patch mocks base method. 209 func (m *MockResourceInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v1.PatchOptions, arg5 ...string) (*unstructured.Unstructured, error) { 210 m.ctrl.T.Helper() 211 varargs := []any{arg0, arg1, arg2, arg3, arg4} 212 for _, a := range arg5 { 213 varargs = append(varargs, a) 214 } 215 ret := m.ctrl.Call(m, "Patch", varargs...) 216 ret0, _ := ret[0].(*unstructured.Unstructured) 217 ret1, _ := ret[1].(error) 218 return ret0, ret1 219 } 220 221 // Patch indicates an expected call of Patch. 222 func (mr *MockResourceInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 any, arg5 ...any) *gomock.Call { 223 mr.mock.ctrl.T.Helper() 224 varargs := append([]any{arg0, arg1, arg2, arg3, arg4}, arg5...) 225 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockResourceInterface)(nil).Patch), varargs...) 226 } 227 228 // Update mocks base method. 229 func (m *MockResourceInterface) Update(arg0 context.Context, arg1 *unstructured.Unstructured, arg2 v1.UpdateOptions, arg3 ...string) (*unstructured.Unstructured, error) { 230 m.ctrl.T.Helper() 231 varargs := []any{arg0, arg1, arg2} 232 for _, a := range arg3 { 233 varargs = append(varargs, a) 234 } 235 ret := m.ctrl.Call(m, "Update", varargs...) 236 ret0, _ := ret[0].(*unstructured.Unstructured) 237 ret1, _ := ret[1].(error) 238 return ret0, ret1 239 } 240 241 // Update indicates an expected call of Update. 242 func (mr *MockResourceInterfaceMockRecorder) Update(arg0, arg1, arg2 any, arg3 ...any) *gomock.Call { 243 mr.mock.ctrl.T.Helper() 244 varargs := append([]any{arg0, arg1, arg2}, arg3...) 245 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockResourceInterface)(nil).Update), varargs...) 246 } 247 248 // UpdateStatus mocks base method. 249 func (m *MockResourceInterface) UpdateStatus(arg0 context.Context, arg1 *unstructured.Unstructured, arg2 v1.UpdateOptions) (*unstructured.Unstructured, error) { 250 m.ctrl.T.Helper() 251 ret := m.ctrl.Call(m, "UpdateStatus", arg0, arg1, arg2) 252 ret0, _ := ret[0].(*unstructured.Unstructured) 253 ret1, _ := ret[1].(error) 254 return ret0, ret1 255 } 256 257 // UpdateStatus indicates an expected call of UpdateStatus. 258 func (mr *MockResourceInterfaceMockRecorder) UpdateStatus(arg0, arg1, arg2 any) *gomock.Call { 259 mr.mock.ctrl.T.Helper() 260 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStatus", reflect.TypeOf((*MockResourceInterface)(nil).UpdateStatus), arg0, arg1, arg2) 261 } 262 263 // Watch mocks base method. 264 func (m *MockResourceInterface) Watch(arg0 context.Context, arg1 v1.ListOptions) (watch.Interface, error) { 265 m.ctrl.T.Helper() 266 ret := m.ctrl.Call(m, "Watch", arg0, arg1) 267 ret0, _ := ret[0].(watch.Interface) 268 ret1, _ := ret[1].(error) 269 return ret0, ret1 270 } 271 272 // Watch indicates an expected call of Watch. 273 func (mr *MockResourceInterfaceMockRecorder) Watch(arg0, arg1 any) *gomock.Call { 274 mr.mock.ctrl.T.Helper() 275 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockResourceInterface)(nil).Watch), arg0, arg1) 276 } 277 278 // MockNamespaceableResourceInterface is a mock of NamespaceableResourceInterface interface. 279 type MockNamespaceableResourceInterface struct { 280 ctrl *gomock.Controller 281 recorder *MockNamespaceableResourceInterfaceMockRecorder 282 } 283 284 // MockNamespaceableResourceInterfaceMockRecorder is the mock recorder for MockNamespaceableResourceInterface. 285 type MockNamespaceableResourceInterfaceMockRecorder struct { 286 mock *MockNamespaceableResourceInterface 287 } 288 289 // NewMockNamespaceableResourceInterface creates a new mock instance. 290 func NewMockNamespaceableResourceInterface(ctrl *gomock.Controller) *MockNamespaceableResourceInterface { 291 mock := &MockNamespaceableResourceInterface{ctrl: ctrl} 292 mock.recorder = &MockNamespaceableResourceInterfaceMockRecorder{mock} 293 return mock 294 } 295 296 // EXPECT returns an object that allows the caller to indicate expected use. 297 func (m *MockNamespaceableResourceInterface) EXPECT() *MockNamespaceableResourceInterfaceMockRecorder { 298 return m.recorder 299 } 300 301 // Apply mocks base method. 302 func (m *MockNamespaceableResourceInterface) Apply(arg0 context.Context, arg1 string, arg2 *unstructured.Unstructured, arg3 v1.ApplyOptions, arg4 ...string) (*unstructured.Unstructured, error) { 303 m.ctrl.T.Helper() 304 varargs := []any{arg0, arg1, arg2, arg3} 305 for _, a := range arg4 { 306 varargs = append(varargs, a) 307 } 308 ret := m.ctrl.Call(m, "Apply", varargs...) 309 ret0, _ := ret[0].(*unstructured.Unstructured) 310 ret1, _ := ret[1].(error) 311 return ret0, ret1 312 } 313 314 // Apply indicates an expected call of Apply. 315 func (mr *MockNamespaceableResourceInterfaceMockRecorder) Apply(arg0, arg1, arg2, arg3 any, arg4 ...any) *gomock.Call { 316 mr.mock.ctrl.T.Helper() 317 varargs := append([]any{arg0, arg1, arg2, arg3}, arg4...) 318 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockNamespaceableResourceInterface)(nil).Apply), varargs...) 319 } 320 321 // ApplyStatus mocks base method. 322 func (m *MockNamespaceableResourceInterface) ApplyStatus(arg0 context.Context, arg1 string, arg2 *unstructured.Unstructured, arg3 v1.ApplyOptions) (*unstructured.Unstructured, error) { 323 m.ctrl.T.Helper() 324 ret := m.ctrl.Call(m, "ApplyStatus", arg0, arg1, arg2, arg3) 325 ret0, _ := ret[0].(*unstructured.Unstructured) 326 ret1, _ := ret[1].(error) 327 return ret0, ret1 328 } 329 330 // ApplyStatus indicates an expected call of ApplyStatus. 331 func (mr *MockNamespaceableResourceInterfaceMockRecorder) ApplyStatus(arg0, arg1, arg2, arg3 any) *gomock.Call { 332 mr.mock.ctrl.T.Helper() 333 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyStatus", reflect.TypeOf((*MockNamespaceableResourceInterface)(nil).ApplyStatus), arg0, arg1, arg2, arg3) 334 } 335 336 // Create mocks base method. 337 func (m *MockNamespaceableResourceInterface) Create(arg0 context.Context, arg1 *unstructured.Unstructured, arg2 v1.CreateOptions, arg3 ...string) (*unstructured.Unstructured, error) { 338 m.ctrl.T.Helper() 339 varargs := []any{arg0, arg1, arg2} 340 for _, a := range arg3 { 341 varargs = append(varargs, a) 342 } 343 ret := m.ctrl.Call(m, "Create", varargs...) 344 ret0, _ := ret[0].(*unstructured.Unstructured) 345 ret1, _ := ret[1].(error) 346 return ret0, ret1 347 } 348 349 // Create indicates an expected call of Create. 350 func (mr *MockNamespaceableResourceInterfaceMockRecorder) Create(arg0, arg1, arg2 any, arg3 ...any) *gomock.Call { 351 mr.mock.ctrl.T.Helper() 352 varargs := append([]any{arg0, arg1, arg2}, arg3...) 353 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockNamespaceableResourceInterface)(nil).Create), varargs...) 354 } 355 356 // Delete mocks base method. 357 func (m *MockNamespaceableResourceInterface) Delete(arg0 context.Context, arg1 string, arg2 v1.DeleteOptions, arg3 ...string) error { 358 m.ctrl.T.Helper() 359 varargs := []any{arg0, arg1, arg2} 360 for _, a := range arg3 { 361 varargs = append(varargs, a) 362 } 363 ret := m.ctrl.Call(m, "Delete", varargs...) 364 ret0, _ := ret[0].(error) 365 return ret0 366 } 367 368 // Delete indicates an expected call of Delete. 369 func (mr *MockNamespaceableResourceInterfaceMockRecorder) Delete(arg0, arg1, arg2 any, arg3 ...any) *gomock.Call { 370 mr.mock.ctrl.T.Helper() 371 varargs := append([]any{arg0, arg1, arg2}, arg3...) 372 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockNamespaceableResourceInterface)(nil).Delete), varargs...) 373 } 374 375 // DeleteCollection mocks base method. 376 func (m *MockNamespaceableResourceInterface) DeleteCollection(arg0 context.Context, arg1 v1.DeleteOptions, arg2 v1.ListOptions) error { 377 m.ctrl.T.Helper() 378 ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1, arg2) 379 ret0, _ := ret[0].(error) 380 return ret0 381 } 382 383 // DeleteCollection indicates an expected call of DeleteCollection. 384 func (mr *MockNamespaceableResourceInterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 any) *gomock.Call { 385 mr.mock.ctrl.T.Helper() 386 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockNamespaceableResourceInterface)(nil).DeleteCollection), arg0, arg1, arg2) 387 } 388 389 // Get mocks base method. 390 func (m *MockNamespaceableResourceInterface) Get(arg0 context.Context, arg1 string, arg2 v1.GetOptions, arg3 ...string) (*unstructured.Unstructured, error) { 391 m.ctrl.T.Helper() 392 varargs := []any{arg0, arg1, arg2} 393 for _, a := range arg3 { 394 varargs = append(varargs, a) 395 } 396 ret := m.ctrl.Call(m, "Get", varargs...) 397 ret0, _ := ret[0].(*unstructured.Unstructured) 398 ret1, _ := ret[1].(error) 399 return ret0, ret1 400 } 401 402 // Get indicates an expected call of Get. 403 func (mr *MockNamespaceableResourceInterfaceMockRecorder) Get(arg0, arg1, arg2 any, arg3 ...any) *gomock.Call { 404 mr.mock.ctrl.T.Helper() 405 varargs := append([]any{arg0, arg1, arg2}, arg3...) 406 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockNamespaceableResourceInterface)(nil).Get), varargs...) 407 } 408 409 // List mocks base method. 410 func (m *MockNamespaceableResourceInterface) List(arg0 context.Context, arg1 v1.ListOptions) (*unstructured.UnstructuredList, error) { 411 m.ctrl.T.Helper() 412 ret := m.ctrl.Call(m, "List", arg0, arg1) 413 ret0, _ := ret[0].(*unstructured.UnstructuredList) 414 ret1, _ := ret[1].(error) 415 return ret0, ret1 416 } 417 418 // List indicates an expected call of List. 419 func (mr *MockNamespaceableResourceInterfaceMockRecorder) List(arg0, arg1 any) *gomock.Call { 420 mr.mock.ctrl.T.Helper() 421 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockNamespaceableResourceInterface)(nil).List), arg0, arg1) 422 } 423 424 // Namespace mocks base method. 425 func (m *MockNamespaceableResourceInterface) Namespace(arg0 string) dynamic.ResourceInterface { 426 m.ctrl.T.Helper() 427 ret := m.ctrl.Call(m, "Namespace", arg0) 428 ret0, _ := ret[0].(dynamic.ResourceInterface) 429 return ret0 430 } 431 432 // Namespace indicates an expected call of Namespace. 433 func (mr *MockNamespaceableResourceInterfaceMockRecorder) Namespace(arg0 any) *gomock.Call { 434 mr.mock.ctrl.T.Helper() 435 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Namespace", reflect.TypeOf((*MockNamespaceableResourceInterface)(nil).Namespace), arg0) 436 } 437 438 // Patch mocks base method. 439 func (m *MockNamespaceableResourceInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v1.PatchOptions, arg5 ...string) (*unstructured.Unstructured, error) { 440 m.ctrl.T.Helper() 441 varargs := []any{arg0, arg1, arg2, arg3, arg4} 442 for _, a := range arg5 { 443 varargs = append(varargs, a) 444 } 445 ret := m.ctrl.Call(m, "Patch", varargs...) 446 ret0, _ := ret[0].(*unstructured.Unstructured) 447 ret1, _ := ret[1].(error) 448 return ret0, ret1 449 } 450 451 // Patch indicates an expected call of Patch. 452 func (mr *MockNamespaceableResourceInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 any, arg5 ...any) *gomock.Call { 453 mr.mock.ctrl.T.Helper() 454 varargs := append([]any{arg0, arg1, arg2, arg3, arg4}, arg5...) 455 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockNamespaceableResourceInterface)(nil).Patch), varargs...) 456 } 457 458 // Update mocks base method. 459 func (m *MockNamespaceableResourceInterface) Update(arg0 context.Context, arg1 *unstructured.Unstructured, arg2 v1.UpdateOptions, arg3 ...string) (*unstructured.Unstructured, error) { 460 m.ctrl.T.Helper() 461 varargs := []any{arg0, arg1, arg2} 462 for _, a := range arg3 { 463 varargs = append(varargs, a) 464 } 465 ret := m.ctrl.Call(m, "Update", varargs...) 466 ret0, _ := ret[0].(*unstructured.Unstructured) 467 ret1, _ := ret[1].(error) 468 return ret0, ret1 469 } 470 471 // Update indicates an expected call of Update. 472 func (mr *MockNamespaceableResourceInterfaceMockRecorder) Update(arg0, arg1, arg2 any, arg3 ...any) *gomock.Call { 473 mr.mock.ctrl.T.Helper() 474 varargs := append([]any{arg0, arg1, arg2}, arg3...) 475 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockNamespaceableResourceInterface)(nil).Update), varargs...) 476 } 477 478 // UpdateStatus mocks base method. 479 func (m *MockNamespaceableResourceInterface) UpdateStatus(arg0 context.Context, arg1 *unstructured.Unstructured, arg2 v1.UpdateOptions) (*unstructured.Unstructured, error) { 480 m.ctrl.T.Helper() 481 ret := m.ctrl.Call(m, "UpdateStatus", arg0, arg1, arg2) 482 ret0, _ := ret[0].(*unstructured.Unstructured) 483 ret1, _ := ret[1].(error) 484 return ret0, ret1 485 } 486 487 // UpdateStatus indicates an expected call of UpdateStatus. 488 func (mr *MockNamespaceableResourceInterfaceMockRecorder) UpdateStatus(arg0, arg1, arg2 any) *gomock.Call { 489 mr.mock.ctrl.T.Helper() 490 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStatus", reflect.TypeOf((*MockNamespaceableResourceInterface)(nil).UpdateStatus), arg0, arg1, arg2) 491 } 492 493 // Watch mocks base method. 494 func (m *MockNamespaceableResourceInterface) Watch(arg0 context.Context, arg1 v1.ListOptions) (watch.Interface, error) { 495 m.ctrl.T.Helper() 496 ret := m.ctrl.Call(m, "Watch", arg0, arg1) 497 ret0, _ := ret[0].(watch.Interface) 498 ret1, _ := ret[1].(error) 499 return ret0, ret1 500 } 501 502 // Watch indicates an expected call of Watch. 503 func (mr *MockNamespaceableResourceInterfaceMockRecorder) Watch(arg0, arg1 any) *gomock.Call { 504 mr.mock.ctrl.T.Helper() 505 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockNamespaceableResourceInterface)(nil).Watch), arg0, arg1) 506 }