github.com/caos/orbos@v1.5.14-0.20221103111702-e6cd0cea7ad4/pkg/kubernetes/mock/client.mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: client.go 3 4 // Package kubernetesmock is a generated GoMock package. 5 package kubernetesmock 6 7 import ( 8 mntr "github.com/caos/orbos/mntr" 9 gomock "github.com/golang/mock/gomock" 10 io "io" 11 v1 "k8s.io/api/apps/v1" 12 v10 "k8s.io/api/batch/v1" 13 v1beta1 "k8s.io/api/batch/v1beta1" 14 v11 "k8s.io/api/core/v1" 15 v1beta10 "k8s.io/api/extensions/v1beta1" 16 v1beta11 "k8s.io/api/policy/v1beta1" 17 v12 "k8s.io/api/rbac/v1" 18 v1beta12 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1" 19 unstructured "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" 20 reflect "reflect" 21 time "time" 22 ) 23 24 // MockNodeWithKubeadm is a mock of NodeWithKubeadm interface 25 type MockNodeWithKubeadm struct { 26 ctrl *gomock.Controller 27 recorder *MockNodeWithKubeadmMockRecorder 28 } 29 30 // MockNodeWithKubeadmMockRecorder is the mock recorder for MockNodeWithKubeadm 31 type MockNodeWithKubeadmMockRecorder struct { 32 mock *MockNodeWithKubeadm 33 } 34 35 // NewMockNodeWithKubeadm creates a new mock instance 36 func NewMockNodeWithKubeadm(ctrl *gomock.Controller) *MockNodeWithKubeadm { 37 mock := &MockNodeWithKubeadm{ctrl: ctrl} 38 mock.recorder = &MockNodeWithKubeadmMockRecorder{mock} 39 return mock 40 } 41 42 // EXPECT returns an object that allows the caller to indicate expected use 43 func (m *MockNodeWithKubeadm) EXPECT() *MockNodeWithKubeadmMockRecorder { 44 return m.recorder 45 } 46 47 // Execute mocks base method 48 func (m *MockNodeWithKubeadm) Execute(stdin io.Reader, cmd string) ([]byte, error) { 49 m.ctrl.T.Helper() 50 ret := m.ctrl.Call(m, "Execute", stdin, cmd) 51 ret0, _ := ret[0].([]byte) 52 ret1, _ := ret[1].(error) 53 return ret0, ret1 54 } 55 56 // Execute indicates an expected call of Execute 57 func (mr *MockNodeWithKubeadmMockRecorder) Execute(stdin, cmd interface{}) *gomock.Call { 58 mr.mock.ctrl.T.Helper() 59 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Execute", reflect.TypeOf((*MockNodeWithKubeadm)(nil).Execute), stdin, cmd) 60 } 61 62 // MockClientInt is a mock of ClientInt interface 63 type MockClientInt struct { 64 ctrl *gomock.Controller 65 recorder *MockClientIntMockRecorder 66 } 67 68 // MockClientIntMockRecorder is the mock recorder for MockClientInt 69 type MockClientIntMockRecorder struct { 70 mock *MockClientInt 71 } 72 73 // NewMockClientInt creates a new mock instance 74 func NewMockClientInt(ctrl *gomock.Controller) *MockClientInt { 75 mock := &MockClientInt{ctrl: ctrl} 76 mock.recorder = &MockClientIntMockRecorder{mock} 77 return mock 78 } 79 80 // EXPECT returns an object that allows the caller to indicate expected use 81 func (m *MockClientInt) EXPECT() *MockClientIntMockRecorder { 82 return m.recorder 83 } 84 85 // ApplyService mocks base method 86 func (m *MockClientInt) ApplyService(rsc *v11.Service) error { 87 m.ctrl.T.Helper() 88 ret := m.ctrl.Call(m, "ApplyService", rsc) 89 ret0, _ := ret[0].(error) 90 return ret0 91 } 92 93 // ApplyService indicates an expected call of ApplyService 94 func (mr *MockClientIntMockRecorder) ApplyService(rsc interface{}) *gomock.Call { 95 mr.mock.ctrl.T.Helper() 96 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyService", reflect.TypeOf((*MockClientInt)(nil).ApplyService), rsc) 97 } 98 99 // DeleteService mocks base method 100 func (m *MockClientInt) DeleteService(namespace, name string) error { 101 m.ctrl.T.Helper() 102 ret := m.ctrl.Call(m, "DeleteService", namespace, name) 103 ret0, _ := ret[0].(error) 104 return ret0 105 } 106 107 // DeleteService indicates an expected call of DeleteService 108 func (mr *MockClientIntMockRecorder) DeleteService(namespace, name interface{}) *gomock.Call { 109 mr.mock.ctrl.T.Helper() 110 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteService", reflect.TypeOf((*MockClientInt)(nil).DeleteService), namespace, name) 111 } 112 113 // GetJob mocks base method 114 func (m *MockClientInt) GetJob(namespace, name string) (*v10.Job, error) { 115 m.ctrl.T.Helper() 116 ret := m.ctrl.Call(m, "GetJob", namespace, name) 117 ret0, _ := ret[0].(*v10.Job) 118 ret1, _ := ret[1].(error) 119 return ret0, ret1 120 } 121 122 // GetJob indicates an expected call of GetJob 123 func (mr *MockClientIntMockRecorder) GetJob(namespace, name interface{}) *gomock.Call { 124 mr.mock.ctrl.T.Helper() 125 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetJob", reflect.TypeOf((*MockClientInt)(nil).GetJob), namespace, name) 126 } 127 128 // ApplyJob mocks base method 129 func (m *MockClientInt) ApplyJob(rsc *v10.Job) error { 130 m.ctrl.T.Helper() 131 ret := m.ctrl.Call(m, "ApplyJob", rsc) 132 ret0, _ := ret[0].(error) 133 return ret0 134 } 135 136 // ApplyJob indicates an expected call of ApplyJob 137 func (mr *MockClientIntMockRecorder) ApplyJob(rsc interface{}) *gomock.Call { 138 mr.mock.ctrl.T.Helper() 139 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyJob", reflect.TypeOf((*MockClientInt)(nil).ApplyJob), rsc) 140 } 141 142 // ApplyJobDryRun mocks base method 143 func (m *MockClientInt) ApplyJobDryRun(rsc *v10.Job) error { 144 m.ctrl.T.Helper() 145 ret := m.ctrl.Call(m, "ApplyJobDryRun", rsc) 146 ret0, _ := ret[0].(error) 147 return ret0 148 } 149 150 // ApplyJobDryRun indicates an expected call of ApplyJobDryRun 151 func (mr *MockClientIntMockRecorder) ApplyJobDryRun(rsc interface{}) *gomock.Call { 152 mr.mock.ctrl.T.Helper() 153 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyJobDryRun", reflect.TypeOf((*MockClientInt)(nil).ApplyJobDryRun), rsc) 154 } 155 156 // DeleteJob mocks base method 157 func (m *MockClientInt) DeleteJob(namespace, name string) error { 158 m.ctrl.T.Helper() 159 ret := m.ctrl.Call(m, "DeleteJob", namespace, name) 160 ret0, _ := ret[0].(error) 161 return ret0 162 } 163 164 // DeleteJob indicates an expected call of DeleteJob 165 func (mr *MockClientIntMockRecorder) DeleteJob(namespace, name interface{}) *gomock.Call { 166 mr.mock.ctrl.T.Helper() 167 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteJob", reflect.TypeOf((*MockClientInt)(nil).DeleteJob), namespace, name) 168 } 169 170 // WaitUntilJobCompleted mocks base method 171 func (m *MockClientInt) WaitUntilJobCompleted(namespace, name string, timeout time.Duration) error { 172 m.ctrl.T.Helper() 173 ret := m.ctrl.Call(m, "WaitUntilJobCompleted", namespace, name, timeout) 174 ret0, _ := ret[0].(error) 175 return ret0 176 } 177 178 // WaitUntilJobCompleted indicates an expected call of WaitUntilJobCompleted 179 func (mr *MockClientIntMockRecorder) WaitUntilJobCompleted(namespace, name, timeout interface{}) *gomock.Call { 180 mr.mock.ctrl.T.Helper() 181 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilJobCompleted", reflect.TypeOf((*MockClientInt)(nil).WaitUntilJobCompleted), namespace, name, timeout) 182 } 183 184 // ApplyServiceAccount mocks base method 185 func (m *MockClientInt) ApplyServiceAccount(rsc *v11.ServiceAccount) error { 186 m.ctrl.T.Helper() 187 ret := m.ctrl.Call(m, "ApplyServiceAccount", rsc) 188 ret0, _ := ret[0].(error) 189 return ret0 190 } 191 192 // ApplyServiceAccount indicates an expected call of ApplyServiceAccount 193 func (mr *MockClientIntMockRecorder) ApplyServiceAccount(rsc interface{}) *gomock.Call { 194 mr.mock.ctrl.T.Helper() 195 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyServiceAccount", reflect.TypeOf((*MockClientInt)(nil).ApplyServiceAccount), rsc) 196 } 197 198 // DeleteServiceAccount mocks base method 199 func (m *MockClientInt) DeleteServiceAccount(namespace, name string) error { 200 m.ctrl.T.Helper() 201 ret := m.ctrl.Call(m, "DeleteServiceAccount", namespace, name) 202 ret0, _ := ret[0].(error) 203 return ret0 204 } 205 206 // DeleteServiceAccount indicates an expected call of DeleteServiceAccount 207 func (mr *MockClientIntMockRecorder) DeleteServiceAccount(namespace, name interface{}) *gomock.Call { 208 mr.mock.ctrl.T.Helper() 209 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteServiceAccount", reflect.TypeOf((*MockClientInt)(nil).DeleteServiceAccount), namespace, name) 210 } 211 212 // ApplyStatefulSet mocks base method 213 func (m *MockClientInt) ApplyStatefulSet(rsc *v1.StatefulSet, force bool) error { 214 m.ctrl.T.Helper() 215 ret := m.ctrl.Call(m, "ApplyStatefulSet", rsc, force) 216 ret0, _ := ret[0].(error) 217 return ret0 218 } 219 220 // ApplyStatefulSet indicates an expected call of ApplyStatefulSet 221 func (mr *MockClientIntMockRecorder) ApplyStatefulSet(rsc, force interface{}) *gomock.Call { 222 mr.mock.ctrl.T.Helper() 223 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyStatefulSet", reflect.TypeOf((*MockClientInt)(nil).ApplyStatefulSet), rsc, force) 224 } 225 226 // DeleteStatefulset mocks base method 227 func (m *MockClientInt) DeleteStatefulset(namespace, name string) error { 228 m.ctrl.T.Helper() 229 ret := m.ctrl.Call(m, "DeleteStatefulset", namespace, name) 230 ret0, _ := ret[0].(error) 231 return ret0 232 } 233 234 // DeleteStatefulset indicates an expected call of DeleteStatefulset 235 func (mr *MockClientIntMockRecorder) DeleteStatefulset(namespace, name interface{}) *gomock.Call { 236 mr.mock.ctrl.T.Helper() 237 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteStatefulset", reflect.TypeOf((*MockClientInt)(nil).DeleteStatefulset), namespace, name) 238 } 239 240 // ScaleStatefulset mocks base method 241 func (m *MockClientInt) ScaleStatefulset(namespace, name string, replicaCount int) error { 242 m.ctrl.T.Helper() 243 ret := m.ctrl.Call(m, "ScaleStatefulset", namespace, name, replicaCount) 244 ret0, _ := ret[0].(error) 245 return ret0 246 } 247 248 // ScaleStatefulset indicates an expected call of ScaleStatefulset 249 func (mr *MockClientIntMockRecorder) ScaleStatefulset(namespace, name, replicaCount interface{}) *gomock.Call { 250 mr.mock.ctrl.T.Helper() 251 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ScaleStatefulset", reflect.TypeOf((*MockClientInt)(nil).ScaleStatefulset), namespace, name, replicaCount) 252 } 253 254 // WaitUntilStatefulsetIsReady mocks base method 255 func (m *MockClientInt) WaitUntilStatefulsetIsReady(namespace, name string, containerCheck, readyCheck bool, timeout time.Duration) error { 256 m.ctrl.T.Helper() 257 ret := m.ctrl.Call(m, "WaitUntilStatefulsetIsReady", namespace, name, containerCheck, readyCheck, timeout) 258 ret0, _ := ret[0].(error) 259 return ret0 260 } 261 262 // WaitUntilStatefulsetIsReady indicates an expected call of WaitUntilStatefulsetIsReady 263 func (mr *MockClientIntMockRecorder) WaitUntilStatefulsetIsReady(namespace, name, containerCheck, readyCheck, timeout interface{}) *gomock.Call { 264 mr.mock.ctrl.T.Helper() 265 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilStatefulsetIsReady", reflect.TypeOf((*MockClientInt)(nil).WaitUntilStatefulsetIsReady), namespace, name, containerCheck, readyCheck, timeout) 266 } 267 268 // ExecInPodWithOutput mocks base method 269 func (m *MockClientInt) ExecInPodWithOutput(namespace, name, container, command string) (string, error) { 270 m.ctrl.T.Helper() 271 ret := m.ctrl.Call(m, "ExecInPodWithOutput", namespace, name, container, command) 272 ret0, _ := ret[0].(string) 273 ret1, _ := ret[1].(error) 274 return ret0, ret1 275 } 276 277 // ExecInPodWithOutput indicates an expected call of ExecInPodWithOutput 278 func (mr *MockClientIntMockRecorder) ExecInPodWithOutput(namespace, name, container, command interface{}) *gomock.Call { 279 mr.mock.ctrl.T.Helper() 280 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExecInPodWithOutput", reflect.TypeOf((*MockClientInt)(nil).ExecInPodWithOutput), namespace, name, container, command) 281 } 282 283 // ExecInPod mocks base method 284 func (m *MockClientInt) ExecInPod(namespace, name, container, command string) error { 285 m.ctrl.T.Helper() 286 ret := m.ctrl.Call(m, "ExecInPod", namespace, name, container, command) 287 ret0, _ := ret[0].(error) 288 return ret0 289 } 290 291 // ExecInPod indicates an expected call of ExecInPod 292 func (mr *MockClientIntMockRecorder) ExecInPod(namespace, name, container, command interface{}) *gomock.Call { 293 mr.mock.ctrl.T.Helper() 294 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExecInPod", reflect.TypeOf((*MockClientInt)(nil).ExecInPod), namespace, name, container, command) 295 } 296 297 // GetDeployment mocks base method 298 func (m *MockClientInt) GetDeployment(namespace, name string) (*v1.Deployment, error) { 299 m.ctrl.T.Helper() 300 ret := m.ctrl.Call(m, "GetDeployment", namespace, name) 301 ret0, _ := ret[0].(*v1.Deployment) 302 ret1, _ := ret[1].(error) 303 return ret0, ret1 304 } 305 306 // GetDeployment indicates an expected call of GetDeployment 307 func (mr *MockClientIntMockRecorder) GetDeployment(namespace, name interface{}) *gomock.Call { 308 mr.mock.ctrl.T.Helper() 309 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDeployment", reflect.TypeOf((*MockClientInt)(nil).GetDeployment), namespace, name) 310 } 311 312 // ApplyDeployment mocks base method 313 func (m *MockClientInt) ApplyDeployment(rsc *v1.Deployment, force bool) error { 314 m.ctrl.T.Helper() 315 ret := m.ctrl.Call(m, "ApplyDeployment", rsc, force) 316 ret0, _ := ret[0].(error) 317 return ret0 318 } 319 320 // ApplyDeployment indicates an expected call of ApplyDeployment 321 func (mr *MockClientIntMockRecorder) ApplyDeployment(rsc, force interface{}) *gomock.Call { 322 mr.mock.ctrl.T.Helper() 323 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyDeployment", reflect.TypeOf((*MockClientInt)(nil).ApplyDeployment), rsc, force) 324 } 325 326 // DeleteDeployment mocks base method 327 func (m *MockClientInt) DeleteDeployment(namespace, name string) error { 328 m.ctrl.T.Helper() 329 ret := m.ctrl.Call(m, "DeleteDeployment", namespace, name) 330 ret0, _ := ret[0].(error) 331 return ret0 332 } 333 334 // DeleteDeployment indicates an expected call of DeleteDeployment 335 func (mr *MockClientIntMockRecorder) DeleteDeployment(namespace, name interface{}) *gomock.Call { 336 mr.mock.ctrl.T.Helper() 337 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteDeployment", reflect.TypeOf((*MockClientInt)(nil).DeleteDeployment), namespace, name) 338 } 339 340 // PatchDeployment mocks base method 341 func (m *MockClientInt) PatchDeployment(namespace, name, data string) error { 342 m.ctrl.T.Helper() 343 ret := m.ctrl.Call(m, "PatchDeployment", namespace, name, data) 344 ret0, _ := ret[0].(error) 345 return ret0 346 } 347 348 // PatchDeployment indicates an expected call of PatchDeployment 349 func (mr *MockClientIntMockRecorder) PatchDeployment(namespace, name, data interface{}) *gomock.Call { 350 mr.mock.ctrl.T.Helper() 351 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchDeployment", reflect.TypeOf((*MockClientInt)(nil).PatchDeployment), namespace, name, data) 352 } 353 354 // WaitUntilDeploymentReady mocks base method 355 func (m *MockClientInt) WaitUntilDeploymentReady(namespace, name string, containerCheck, readyCheck bool, timeout time.Duration) error { 356 m.ctrl.T.Helper() 357 ret := m.ctrl.Call(m, "WaitUntilDeploymentReady", namespace, name, containerCheck, readyCheck, timeout) 358 ret0, _ := ret[0].(error) 359 return ret0 360 } 361 362 // WaitUntilDeploymentReady indicates an expected call of WaitUntilDeploymentReady 363 func (mr *MockClientIntMockRecorder) WaitUntilDeploymentReady(namespace, name, containerCheck, readyCheck, timeout interface{}) *gomock.Call { 364 mr.mock.ctrl.T.Helper() 365 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilDeploymentReady", reflect.TypeOf((*MockClientInt)(nil).WaitUntilDeploymentReady), namespace, name, containerCheck, readyCheck, timeout) 366 } 367 368 // ScaleDeployment mocks base method 369 func (m *MockClientInt) ScaleDeployment(namespace, name string, replicaCount int) error { 370 m.ctrl.T.Helper() 371 ret := m.ctrl.Call(m, "ScaleDeployment", namespace, name, replicaCount) 372 ret0, _ := ret[0].(error) 373 return ret0 374 } 375 376 // ScaleDeployment indicates an expected call of ScaleDeployment 377 func (mr *MockClientIntMockRecorder) ScaleDeployment(namespace, name, replicaCount interface{}) *gomock.Call { 378 mr.mock.ctrl.T.Helper() 379 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ScaleDeployment", reflect.TypeOf((*MockClientInt)(nil).ScaleDeployment), namespace, name, replicaCount) 380 } 381 382 // ExecInPodOfDeployment mocks base method 383 func (m *MockClientInt) ExecInPodOfDeployment(namespace, name, container, command string) error { 384 m.ctrl.T.Helper() 385 ret := m.ctrl.Call(m, "ExecInPodOfDeployment", namespace, name, container, command) 386 ret0, _ := ret[0].(error) 387 return ret0 388 } 389 390 // ExecInPodOfDeployment indicates an expected call of ExecInPodOfDeployment 391 func (mr *MockClientIntMockRecorder) ExecInPodOfDeployment(namespace, name, container, command interface{}) *gomock.Call { 392 mr.mock.ctrl.T.Helper() 393 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExecInPodOfDeployment", reflect.TypeOf((*MockClientInt)(nil).ExecInPodOfDeployment), namespace, name, container, command) 394 } 395 396 // CheckCRD mocks base method 397 func (m *MockClientInt) CheckCRD(name string) (*v1beta12.CustomResourceDefinition, bool, error) { 398 m.ctrl.T.Helper() 399 ret := m.ctrl.Call(m, "CheckCRD", name) 400 ret0, _ := ret[0].(*v1beta12.CustomResourceDefinition) 401 ret1, _ := ret[1].(bool) 402 ret2, _ := ret[2].(error) 403 return ret0, ret1, ret2 404 } 405 406 // CheckCRD indicates an expected call of CheckCRD 407 func (mr *MockClientIntMockRecorder) CheckCRD(name interface{}) *gomock.Call { 408 mr.mock.ctrl.T.Helper() 409 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckCRD", reflect.TypeOf((*MockClientInt)(nil).CheckCRD), name) 410 } 411 412 // GetNamespacedCRDResource mocks base method 413 func (m *MockClientInt) GetNamespacedCRDResource(group, version, kind, namespace, name string) (*unstructured.Unstructured, error) { 414 m.ctrl.T.Helper() 415 ret := m.ctrl.Call(m, "GetNamespacedCRDResource", group, version, kind, namespace, name) 416 ret0, _ := ret[0].(*unstructured.Unstructured) 417 ret1, _ := ret[1].(error) 418 return ret0, ret1 419 } 420 421 // GetNamespacedCRDResource indicates an expected call of GetNamespacedCRDResource 422 func (mr *MockClientIntMockRecorder) GetNamespacedCRDResource(group, version, kind, namespace, name interface{}) *gomock.Call { 423 mr.mock.ctrl.T.Helper() 424 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNamespacedCRDResource", reflect.TypeOf((*MockClientInt)(nil).GetNamespacedCRDResource), group, version, kind, namespace, name) 425 } 426 427 // ApplyNamespacedCRDResource mocks base method 428 func (m *MockClientInt) ApplyNamespacedCRDResource(group, version, kind, namespace, name string, crd *unstructured.Unstructured) error { 429 m.ctrl.T.Helper() 430 ret := m.ctrl.Call(m, "ApplyNamespacedCRDResource", group, version, kind, namespace, name, crd) 431 ret0, _ := ret[0].(error) 432 return ret0 433 } 434 435 // ApplyNamespacedCRDResource indicates an expected call of ApplyNamespacedCRDResource 436 func (mr *MockClientIntMockRecorder) ApplyNamespacedCRDResource(group, version, kind, namespace, name, crd interface{}) *gomock.Call { 437 mr.mock.ctrl.T.Helper() 438 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyNamespacedCRDResource", reflect.TypeOf((*MockClientInt)(nil).ApplyNamespacedCRDResource), group, version, kind, namespace, name, crd) 439 } 440 441 // DeleteNamespacedCRDResource mocks base method 442 func (m *MockClientInt) DeleteNamespacedCRDResource(group, version, kind, namespace, name string) error { 443 m.ctrl.T.Helper() 444 ret := m.ctrl.Call(m, "DeleteNamespacedCRDResource", group, version, kind, namespace, name) 445 ret0, _ := ret[0].(error) 446 return ret0 447 } 448 449 // DeleteNamespacedCRDResource indicates an expected call of DeleteNamespacedCRDResource 450 func (mr *MockClientIntMockRecorder) DeleteNamespacedCRDResource(group, version, kind, namespace, name interface{}) *gomock.Call { 451 mr.mock.ctrl.T.Helper() 452 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteNamespacedCRDResource", reflect.TypeOf((*MockClientInt)(nil).DeleteNamespacedCRDResource), group, version, kind, namespace, name) 453 } 454 455 // ApplyCRDResource mocks base method 456 func (m *MockClientInt) ApplyCRDResource(crd *unstructured.Unstructured) error { 457 m.ctrl.T.Helper() 458 ret := m.ctrl.Call(m, "ApplyCRDResource", crd) 459 ret0, _ := ret[0].(error) 460 return ret0 461 } 462 463 // ApplyCRDResource indicates an expected call of ApplyCRDResource 464 func (mr *MockClientIntMockRecorder) ApplyCRDResource(crd interface{}) *gomock.Call { 465 mr.mock.ctrl.T.Helper() 466 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyCRDResource", reflect.TypeOf((*MockClientInt)(nil).ApplyCRDResource), crd) 467 } 468 469 // DeleteCRDResource mocks base method 470 func (m *MockClientInt) DeleteCRDResource(group, version, kind, name string) error { 471 m.ctrl.T.Helper() 472 ret := m.ctrl.Call(m, "DeleteCRDResource", group, version, kind, name) 473 ret0, _ := ret[0].(error) 474 return ret0 475 } 476 477 // DeleteCRDResource indicates an expected call of DeleteCRDResource 478 func (mr *MockClientIntMockRecorder) DeleteCRDResource(group, version, kind, name interface{}) *gomock.Call { 479 mr.mock.ctrl.T.Helper() 480 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCRDResource", reflect.TypeOf((*MockClientInt)(nil).DeleteCRDResource), group, version, kind, name) 481 } 482 483 // ApplyCronJob mocks base method 484 func (m *MockClientInt) ApplyCronJob(rsc *v1beta1.CronJob) error { 485 m.ctrl.T.Helper() 486 ret := m.ctrl.Call(m, "ApplyCronJob", rsc) 487 ret0, _ := ret[0].(error) 488 return ret0 489 } 490 491 // ApplyCronJob indicates an expected call of ApplyCronJob 492 func (mr *MockClientIntMockRecorder) ApplyCronJob(rsc interface{}) *gomock.Call { 493 mr.mock.ctrl.T.Helper() 494 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyCronJob", reflect.TypeOf((*MockClientInt)(nil).ApplyCronJob), rsc) 495 } 496 497 // DeleteCronJob mocks base method 498 func (m *MockClientInt) DeleteCronJob(namespace, name string) error { 499 m.ctrl.T.Helper() 500 ret := m.ctrl.Call(m, "DeleteCronJob", namespace, name) 501 ret0, _ := ret[0].(error) 502 return ret0 503 } 504 505 // DeleteCronJob indicates an expected call of DeleteCronJob 506 func (mr *MockClientIntMockRecorder) DeleteCronJob(namespace, name interface{}) *gomock.Call { 507 mr.mock.ctrl.T.Helper() 508 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCronJob", reflect.TypeOf((*MockClientInt)(nil).DeleteCronJob), namespace, name) 509 } 510 511 // ListCronJobs mocks base method 512 func (m *MockClientInt) ListCronJobs(namespace string, labels map[string]string) (*v1beta1.CronJobList, error) { 513 m.ctrl.T.Helper() 514 ret := m.ctrl.Call(m, "ListCronJobs", namespace, labels) 515 ret0, _ := ret[0].(*v1beta1.CronJobList) 516 ret1, _ := ret[1].(error) 517 return ret0, ret1 518 } 519 520 // ListCronJobs indicates an expected call of ListCronJobs 521 func (mr *MockClientIntMockRecorder) ListCronJobs(namespace, labels interface{}) *gomock.Call { 522 mr.mock.ctrl.T.Helper() 523 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListCronJobs", reflect.TypeOf((*MockClientInt)(nil).ListCronJobs), namespace, labels) 524 } 525 526 // ListSecrets mocks base method 527 func (m *MockClientInt) ListSecrets(namespace string, labels map[string]string) (*v11.SecretList, error) { 528 m.ctrl.T.Helper() 529 ret := m.ctrl.Call(m, "ListSecrets", namespace, labels) 530 ret0, _ := ret[0].(*v11.SecretList) 531 ret1, _ := ret[1].(error) 532 return ret0, ret1 533 } 534 535 // ListSecrets indicates an expected call of ListSecrets 536 func (mr *MockClientIntMockRecorder) ListSecrets(namespace, labels interface{}) *gomock.Call { 537 mr.mock.ctrl.T.Helper() 538 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSecrets", reflect.TypeOf((*MockClientInt)(nil).ListSecrets), namespace, labels) 539 } 540 541 // GetSecret mocks base method 542 func (m *MockClientInt) GetSecret(namespace, name string) (*v11.Secret, error) { 543 m.ctrl.T.Helper() 544 ret := m.ctrl.Call(m, "GetSecret", namespace, name) 545 ret0, _ := ret[0].(*v11.Secret) 546 ret1, _ := ret[1].(error) 547 return ret0, ret1 548 } 549 550 // GetSecret indicates an expected call of GetSecret 551 func (mr *MockClientIntMockRecorder) GetSecret(namespace, name interface{}) *gomock.Call { 552 mr.mock.ctrl.T.Helper() 553 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSecret", reflect.TypeOf((*MockClientInt)(nil).GetSecret), namespace, name) 554 } 555 556 // ApplySecret mocks base method 557 func (m *MockClientInt) ApplySecret(rsc *v11.Secret) error { 558 m.ctrl.T.Helper() 559 ret := m.ctrl.Call(m, "ApplySecret", rsc) 560 ret0, _ := ret[0].(error) 561 return ret0 562 } 563 564 // ApplySecret indicates an expected call of ApplySecret 565 func (mr *MockClientIntMockRecorder) ApplySecret(rsc interface{}) *gomock.Call { 566 mr.mock.ctrl.T.Helper() 567 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplySecret", reflect.TypeOf((*MockClientInt)(nil).ApplySecret), rsc) 568 } 569 570 // DeleteSecret mocks base method 571 func (m *MockClientInt) DeleteSecret(namespace, name string) error { 572 m.ctrl.T.Helper() 573 ret := m.ctrl.Call(m, "DeleteSecret", namespace, name) 574 ret0, _ := ret[0].(error) 575 return ret0 576 } 577 578 // DeleteSecret indicates an expected call of DeleteSecret 579 func (mr *MockClientIntMockRecorder) DeleteSecret(namespace, name interface{}) *gomock.Call { 580 mr.mock.ctrl.T.Helper() 581 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteSecret", reflect.TypeOf((*MockClientInt)(nil).DeleteSecret), namespace, name) 582 } 583 584 // WaitForSecret mocks base method 585 func (m *MockClientInt) WaitForSecret(namespace, name string, timeout time.Duration) error { 586 m.ctrl.T.Helper() 587 ret := m.ctrl.Call(m, "WaitForSecret", namespace, name, timeout) 588 ret0, _ := ret[0].(error) 589 return ret0 590 } 591 592 // WaitForSecret indicates an expected call of WaitForSecret 593 func (mr *MockClientIntMockRecorder) WaitForSecret(namespace, name, timeout interface{}) *gomock.Call { 594 mr.mock.ctrl.T.Helper() 595 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitForSecret", reflect.TypeOf((*MockClientInt)(nil).WaitForSecret), namespace, name, timeout) 596 } 597 598 // GetConfigMap mocks base method 599 func (m *MockClientInt) GetConfigMap(namespace, name string) (*v11.ConfigMap, error) { 600 m.ctrl.T.Helper() 601 ret := m.ctrl.Call(m, "GetConfigMap", namespace, name) 602 ret0, _ := ret[0].(*v11.ConfigMap) 603 ret1, _ := ret[1].(error) 604 return ret0, ret1 605 } 606 607 // GetConfigMap indicates an expected call of GetConfigMap 608 func (mr *MockClientIntMockRecorder) GetConfigMap(namespace, name interface{}) *gomock.Call { 609 mr.mock.ctrl.T.Helper() 610 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetConfigMap", reflect.TypeOf((*MockClientInt)(nil).GetConfigMap), namespace, name) 611 } 612 613 // ApplyConfigmap mocks base method 614 func (m *MockClientInt) ApplyConfigmap(rsc *v11.ConfigMap) error { 615 m.ctrl.T.Helper() 616 ret := m.ctrl.Call(m, "ApplyConfigmap", rsc) 617 ret0, _ := ret[0].(error) 618 return ret0 619 } 620 621 // ApplyConfigmap indicates an expected call of ApplyConfigmap 622 func (mr *MockClientIntMockRecorder) ApplyConfigmap(rsc interface{}) *gomock.Call { 623 mr.mock.ctrl.T.Helper() 624 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyConfigmap", reflect.TypeOf((*MockClientInt)(nil).ApplyConfigmap), rsc) 625 } 626 627 // DeleteConfigmap mocks base method 628 func (m *MockClientInt) DeleteConfigmap(namespace, name string) error { 629 m.ctrl.T.Helper() 630 ret := m.ctrl.Call(m, "DeleteConfigmap", namespace, name) 631 ret0, _ := ret[0].(error) 632 return ret0 633 } 634 635 // DeleteConfigmap indicates an expected call of DeleteConfigmap 636 func (mr *MockClientIntMockRecorder) DeleteConfigmap(namespace, name interface{}) *gomock.Call { 637 mr.mock.ctrl.T.Helper() 638 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteConfigmap", reflect.TypeOf((*MockClientInt)(nil).DeleteConfigmap), namespace, name) 639 } 640 641 // WaitForConfigMap mocks base method 642 func (m *MockClientInt) WaitForConfigMap(namespace, name string, timeout time.Duration) error { 643 m.ctrl.T.Helper() 644 ret := m.ctrl.Call(m, "WaitForConfigMap", namespace, name, timeout) 645 ret0, _ := ret[0].(error) 646 return ret0 647 } 648 649 // WaitForConfigMap indicates an expected call of WaitForConfigMap 650 func (mr *MockClientIntMockRecorder) WaitForConfigMap(namespace, name, timeout interface{}) *gomock.Call { 651 mr.mock.ctrl.T.Helper() 652 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitForConfigMap", reflect.TypeOf((*MockClientInt)(nil).WaitForConfigMap), namespace, name, timeout) 653 } 654 655 // ApplyRole mocks base method 656 func (m *MockClientInt) ApplyRole(rsc *v12.Role) error { 657 m.ctrl.T.Helper() 658 ret := m.ctrl.Call(m, "ApplyRole", rsc) 659 ret0, _ := ret[0].(error) 660 return ret0 661 } 662 663 // ApplyRole indicates an expected call of ApplyRole 664 func (mr *MockClientIntMockRecorder) ApplyRole(rsc interface{}) *gomock.Call { 665 mr.mock.ctrl.T.Helper() 666 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyRole", reflect.TypeOf((*MockClientInt)(nil).ApplyRole), rsc) 667 } 668 669 // DeleteRole mocks base method 670 func (m *MockClientInt) DeleteRole(namespace, name string) error { 671 m.ctrl.T.Helper() 672 ret := m.ctrl.Call(m, "DeleteRole", namespace, name) 673 ret0, _ := ret[0].(error) 674 return ret0 675 } 676 677 // DeleteRole indicates an expected call of DeleteRole 678 func (mr *MockClientIntMockRecorder) DeleteRole(namespace, name interface{}) *gomock.Call { 679 mr.mock.ctrl.T.Helper() 680 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRole", reflect.TypeOf((*MockClientInt)(nil).DeleteRole), namespace, name) 681 } 682 683 // ApplyClusterRole mocks base method 684 func (m *MockClientInt) ApplyClusterRole(rsc *v12.ClusterRole) error { 685 m.ctrl.T.Helper() 686 ret := m.ctrl.Call(m, "ApplyClusterRole", rsc) 687 ret0, _ := ret[0].(error) 688 return ret0 689 } 690 691 // ApplyClusterRole indicates an expected call of ApplyClusterRole 692 func (mr *MockClientIntMockRecorder) ApplyClusterRole(rsc interface{}) *gomock.Call { 693 mr.mock.ctrl.T.Helper() 694 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyClusterRole", reflect.TypeOf((*MockClientInt)(nil).ApplyClusterRole), rsc) 695 } 696 697 // DeleteClusterRole mocks base method 698 func (m *MockClientInt) DeleteClusterRole(name string) error { 699 m.ctrl.T.Helper() 700 ret := m.ctrl.Call(m, "DeleteClusterRole", name) 701 ret0, _ := ret[0].(error) 702 return ret0 703 } 704 705 // DeleteClusterRole indicates an expected call of DeleteClusterRole 706 func (mr *MockClientIntMockRecorder) DeleteClusterRole(name interface{}) *gomock.Call { 707 mr.mock.ctrl.T.Helper() 708 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteClusterRole", reflect.TypeOf((*MockClientInt)(nil).DeleteClusterRole), name) 709 } 710 711 // ApplyIngress mocks base method 712 func (m *MockClientInt) ApplyIngress(rsc *v1beta10.Ingress) error { 713 m.ctrl.T.Helper() 714 ret := m.ctrl.Call(m, "ApplyIngress", rsc) 715 ret0, _ := ret[0].(error) 716 return ret0 717 } 718 719 // ApplyIngress indicates an expected call of ApplyIngress 720 func (mr *MockClientIntMockRecorder) ApplyIngress(rsc interface{}) *gomock.Call { 721 mr.mock.ctrl.T.Helper() 722 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyIngress", reflect.TypeOf((*MockClientInt)(nil).ApplyIngress), rsc) 723 } 724 725 // DeleteIngress mocks base method 726 func (m *MockClientInt) DeleteIngress(namespace, name string) error { 727 m.ctrl.T.Helper() 728 ret := m.ctrl.Call(m, "DeleteIngress", namespace, name) 729 ret0, _ := ret[0].(error) 730 return ret0 731 } 732 733 // DeleteIngress indicates an expected call of DeleteIngress 734 func (mr *MockClientIntMockRecorder) DeleteIngress(namespace, name interface{}) *gomock.Call { 735 mr.mock.ctrl.T.Helper() 736 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteIngress", reflect.TypeOf((*MockClientInt)(nil).DeleteIngress), namespace, name) 737 } 738 739 // ApplyRoleBinding mocks base method 740 func (m *MockClientInt) ApplyRoleBinding(rsc *v12.RoleBinding) error { 741 m.ctrl.T.Helper() 742 ret := m.ctrl.Call(m, "ApplyRoleBinding", rsc) 743 ret0, _ := ret[0].(error) 744 return ret0 745 } 746 747 // ApplyRoleBinding indicates an expected call of ApplyRoleBinding 748 func (mr *MockClientIntMockRecorder) ApplyRoleBinding(rsc interface{}) *gomock.Call { 749 mr.mock.ctrl.T.Helper() 750 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyRoleBinding", reflect.TypeOf((*MockClientInt)(nil).ApplyRoleBinding), rsc) 751 } 752 753 // DeleteRoleBinding mocks base method 754 func (m *MockClientInt) DeleteRoleBinding(namespace, name string) error { 755 m.ctrl.T.Helper() 756 ret := m.ctrl.Call(m, "DeleteRoleBinding", namespace, name) 757 ret0, _ := ret[0].(error) 758 return ret0 759 } 760 761 // DeleteRoleBinding indicates an expected call of DeleteRoleBinding 762 func (mr *MockClientIntMockRecorder) DeleteRoleBinding(namespace, name interface{}) *gomock.Call { 763 mr.mock.ctrl.T.Helper() 764 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRoleBinding", reflect.TypeOf((*MockClientInt)(nil).DeleteRoleBinding), namespace, name) 765 } 766 767 // ApplyClusterRoleBinding mocks base method 768 func (m *MockClientInt) ApplyClusterRoleBinding(rsc *v12.ClusterRoleBinding) error { 769 m.ctrl.T.Helper() 770 ret := m.ctrl.Call(m, "ApplyClusterRoleBinding", rsc) 771 ret0, _ := ret[0].(error) 772 return ret0 773 } 774 775 // ApplyClusterRoleBinding indicates an expected call of ApplyClusterRoleBinding 776 func (mr *MockClientIntMockRecorder) ApplyClusterRoleBinding(rsc interface{}) *gomock.Call { 777 mr.mock.ctrl.T.Helper() 778 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyClusterRoleBinding", reflect.TypeOf((*MockClientInt)(nil).ApplyClusterRoleBinding), rsc) 779 } 780 781 // DeleteClusterRoleBinding mocks base method 782 func (m *MockClientInt) DeleteClusterRoleBinding(name string) error { 783 m.ctrl.T.Helper() 784 ret := m.ctrl.Call(m, "DeleteClusterRoleBinding", name) 785 ret0, _ := ret[0].(error) 786 return ret0 787 } 788 789 // DeleteClusterRoleBinding indicates an expected call of DeleteClusterRoleBinding 790 func (mr *MockClientIntMockRecorder) DeleteClusterRoleBinding(name interface{}) *gomock.Call { 791 mr.mock.ctrl.T.Helper() 792 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteClusterRoleBinding", reflect.TypeOf((*MockClientInt)(nil).DeleteClusterRoleBinding), name) 793 } 794 795 // ApplyPodDisruptionBudget mocks base method 796 func (m *MockClientInt) ApplyPodDisruptionBudget(rsc *v1beta11.PodDisruptionBudget) error { 797 m.ctrl.T.Helper() 798 ret := m.ctrl.Call(m, "ApplyPodDisruptionBudget", rsc) 799 ret0, _ := ret[0].(error) 800 return ret0 801 } 802 803 // ApplyPodDisruptionBudget indicates an expected call of ApplyPodDisruptionBudget 804 func (mr *MockClientIntMockRecorder) ApplyPodDisruptionBudget(rsc interface{}) *gomock.Call { 805 mr.mock.ctrl.T.Helper() 806 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyPodDisruptionBudget", reflect.TypeOf((*MockClientInt)(nil).ApplyPodDisruptionBudget), rsc) 807 } 808 809 // DeletePodDisruptionBudget mocks base method 810 func (m *MockClientInt) DeletePodDisruptionBudget(namespace, name string) error { 811 m.ctrl.T.Helper() 812 ret := m.ctrl.Call(m, "DeletePodDisruptionBudget", namespace, name) 813 ret0, _ := ret[0].(error) 814 return ret0 815 } 816 817 // DeletePodDisruptionBudget indicates an expected call of DeletePodDisruptionBudget 818 func (mr *MockClientIntMockRecorder) DeletePodDisruptionBudget(namespace, name interface{}) *gomock.Call { 819 mr.mock.ctrl.T.Helper() 820 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeletePodDisruptionBudget", reflect.TypeOf((*MockClientInt)(nil).DeletePodDisruptionBudget), namespace, name) 821 } 822 823 // ApplyNamespace mocks base method 824 func (m *MockClientInt) ApplyNamespace(rsc *v11.Namespace) error { 825 m.ctrl.T.Helper() 826 ret := m.ctrl.Call(m, "ApplyNamespace", rsc) 827 ret0, _ := ret[0].(error) 828 return ret0 829 } 830 831 // ApplyNamespace indicates an expected call of ApplyNamespace 832 func (mr *MockClientIntMockRecorder) ApplyNamespace(rsc interface{}) *gomock.Call { 833 mr.mock.ctrl.T.Helper() 834 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyNamespace", reflect.TypeOf((*MockClientInt)(nil).ApplyNamespace), rsc) 835 } 836 837 // DeleteNamespace mocks base method 838 func (m *MockClientInt) DeleteNamespace(name string) error { 839 m.ctrl.T.Helper() 840 ret := m.ctrl.Call(m, "DeleteNamespace", name) 841 ret0, _ := ret[0].(error) 842 return ret0 843 } 844 845 // DeleteNamespace indicates an expected call of DeleteNamespace 846 func (mr *MockClientIntMockRecorder) DeleteNamespace(name interface{}) *gomock.Call { 847 mr.mock.ctrl.T.Helper() 848 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteNamespace", reflect.TypeOf((*MockClientInt)(nil).DeleteNamespace), name) 849 } 850 851 // ListPersistentVolumes mocks base method 852 func (m *MockClientInt) ListPersistentVolumes() (*v11.PersistentVolumeList, error) { 853 m.ctrl.T.Helper() 854 ret := m.ctrl.Call(m, "ListPersistentVolumes") 855 ret0, _ := ret[0].(*v11.PersistentVolumeList) 856 ret1, _ := ret[1].(error) 857 return ret0, ret1 858 } 859 860 // ListPersistentVolumes indicates an expected call of ListPersistentVolumes 861 func (mr *MockClientIntMockRecorder) ListPersistentVolumes() *gomock.Call { 862 mr.mock.ctrl.T.Helper() 863 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPersistentVolumes", reflect.TypeOf((*MockClientInt)(nil).ListPersistentVolumes)) 864 } 865 866 // ApplyPlainYAML mocks base method 867 func (m *MockClientInt) ApplyPlainYAML(arg0 mntr.Monitor, arg1 []byte) error { 868 m.ctrl.T.Helper() 869 ret := m.ctrl.Call(m, "ApplyPlainYAML", arg0, arg1) 870 ret0, _ := ret[0].(error) 871 return ret0 872 } 873 874 // ApplyPlainYAML indicates an expected call of ApplyPlainYAML 875 func (mr *MockClientIntMockRecorder) ApplyPlainYAML(arg0, arg1 interface{}) *gomock.Call { 876 mr.mock.ctrl.T.Helper() 877 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyPlainYAML", reflect.TypeOf((*MockClientInt)(nil).ApplyPlainYAML), arg0, arg1) 878 } 879 880 // ListPersistentVolumeClaims mocks base method 881 func (m *MockClientInt) ListPersistentVolumeClaims(namespace string) (*v11.PersistentVolumeClaimList, error) { 882 m.ctrl.T.Helper() 883 ret := m.ctrl.Call(m, "ListPersistentVolumeClaims", namespace) 884 ret0, _ := ret[0].(*v11.PersistentVolumeClaimList) 885 ret1, _ := ret[1].(error) 886 return ret0, ret1 887 } 888 889 // ListPersistentVolumeClaims indicates an expected call of ListPersistentVolumeClaims 890 func (mr *MockClientIntMockRecorder) ListPersistentVolumeClaims(namespace interface{}) *gomock.Call { 891 mr.mock.ctrl.T.Helper() 892 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPersistentVolumeClaims", reflect.TypeOf((*MockClientInt)(nil).ListPersistentVolumeClaims), namespace) 893 } 894 895 // DeletePersistentVolumeClaim mocks base method 896 func (m *MockClientInt) DeletePersistentVolumeClaim(namespace, name string, timeout time.Duration) error { 897 m.ctrl.T.Helper() 898 ret := m.ctrl.Call(m, "DeletePersistentVolumeClaim", namespace, name, timeout) 899 ret0, _ := ret[0].(error) 900 return ret0 901 } 902 903 // DeletePersistentVolumeClaim indicates an expected call of DeletePersistentVolumeClaim 904 func (mr *MockClientIntMockRecorder) DeletePersistentVolumeClaim(namespace, name, timeout interface{}) *gomock.Call { 905 mr.mock.ctrl.T.Helper() 906 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeletePersistentVolumeClaim", reflect.TypeOf((*MockClientInt)(nil).DeletePersistentVolumeClaim), namespace, name, timeout) 907 } 908 909 // MockMachine is a mock of Machine interface 910 type MockMachine struct { 911 ctrl *gomock.Controller 912 recorder *MockMachineMockRecorder 913 } 914 915 // MockMachineMockRecorder is the mock recorder for MockMachine 916 type MockMachineMockRecorder struct { 917 mock *MockMachine 918 } 919 920 // NewMockMachine creates a new mock instance 921 func NewMockMachine(ctrl *gomock.Controller) *MockMachine { 922 mock := &MockMachine{ctrl: ctrl} 923 mock.recorder = &MockMachineMockRecorder{mock} 924 return mock 925 } 926 927 // EXPECT returns an object that allows the caller to indicate expected use 928 func (m *MockMachine) EXPECT() *MockMachineMockRecorder { 929 return m.recorder 930 } 931 932 // GetUpdating mocks base method 933 func (m *MockMachine) GetUpdating() bool { 934 m.ctrl.T.Helper() 935 ret := m.ctrl.Call(m, "GetUpdating") 936 ret0, _ := ret[0].(bool) 937 return ret0 938 } 939 940 // GetUpdating indicates an expected call of GetUpdating 941 func (mr *MockMachineMockRecorder) GetUpdating() *gomock.Call { 942 mr.mock.ctrl.T.Helper() 943 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUpdating", reflect.TypeOf((*MockMachine)(nil).GetUpdating)) 944 } 945 946 // SetUpdating mocks base method 947 func (m *MockMachine) SetUpdating(arg0 bool) { 948 m.ctrl.T.Helper() 949 m.ctrl.Call(m, "SetUpdating", arg0) 950 } 951 952 // SetUpdating indicates an expected call of SetUpdating 953 func (mr *MockMachineMockRecorder) SetUpdating(arg0 interface{}) *gomock.Call { 954 mr.mock.ctrl.T.Helper() 955 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetUpdating", reflect.TypeOf((*MockMachine)(nil).SetUpdating), arg0) 956 } 957 958 // GetJoined mocks base method 959 func (m *MockMachine) GetJoined() bool { 960 m.ctrl.T.Helper() 961 ret := m.ctrl.Call(m, "GetJoined") 962 ret0, _ := ret[0].(bool) 963 return ret0 964 } 965 966 // GetJoined indicates an expected call of GetJoined 967 func (mr *MockMachineMockRecorder) GetJoined() *gomock.Call { 968 mr.mock.ctrl.T.Helper() 969 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetJoined", reflect.TypeOf((*MockMachine)(nil).GetJoined)) 970 } 971 972 // SetJoined mocks base method 973 func (m *MockMachine) SetJoined(arg0 bool) { 974 m.ctrl.T.Helper() 975 m.ctrl.Call(m, "SetJoined", arg0) 976 } 977 978 // SetJoined indicates an expected call of SetJoined 979 func (mr *MockMachineMockRecorder) SetJoined(arg0 interface{}) *gomock.Call { 980 mr.mock.ctrl.T.Helper() 981 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetJoined", reflect.TypeOf((*MockMachine)(nil).SetJoined), arg0) 982 }