github.com/verrazzano/verrazzano@v1.7.0/platform-operator/mocks/component_mock.go (about) 1 // Copyright (c) 2020, 2023, Oracle and/or its affiliates. 2 // Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. 3 // 4 5 // Code generated by MockGen. DO NOT EDIT. 6 // Source: github.com/verrazzano/verrazzano/platform-operator/controllers/verrazzano/component/spi (interfaces: ComponentContext,ComponentInfo,ComponentInstaller,ComponentUpgrader,Component) 7 8 // Package mocks is a generated GoMock package. 9 package mocks 10 11 import ( 12 gomock "github.com/golang/mock/gomock" 13 controllerspi "github.com/verrazzano/verrazzano-modules/pkg/controller/spi/controllerspi" 14 vzlog "github.com/verrazzano/verrazzano/pkg/log/vzlog" 15 v1alpha1 "github.com/verrazzano/verrazzano/platform-operator/apis/verrazzano/v1alpha1" 16 v1beta1 "github.com/verrazzano/verrazzano/platform-operator/apis/verrazzano/v1beta1" 17 spi "github.com/verrazzano/verrazzano/platform-operator/controllers/verrazzano/component/spi" 18 v1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1" 19 runtime "k8s.io/apimachinery/pkg/runtime" 20 types "k8s.io/apimachinery/pkg/types" 21 reflect "reflect" 22 client "sigs.k8s.io/controller-runtime/pkg/client" 23 ) 24 25 // MockComponentContext is a mock of ComponentContext interface 26 type MockComponentContext struct { 27 ctrl *gomock.Controller 28 recorder *MockComponentContextMockRecorder 29 } 30 31 // MockComponentContextMockRecorder is the mock recorder for MockComponentContext 32 type MockComponentContextMockRecorder struct { 33 mock *MockComponentContext 34 } 35 36 // NewMockComponentContext creates a new mock instance 37 func NewMockComponentContext(ctrl *gomock.Controller) *MockComponentContext { 38 mock := &MockComponentContext{ctrl: ctrl} 39 mock.recorder = &MockComponentContextMockRecorder{mock} 40 return mock 41 } 42 43 // EXPECT returns an object that allows the caller to indicate expected use 44 func (m *MockComponentContext) EXPECT() *MockComponentContextMockRecorder { 45 return m.recorder 46 } 47 48 // ActualCR mocks base method 49 func (m *MockComponentContext) ActualCR() *v1alpha1.Verrazzano { 50 m.ctrl.T.Helper() 51 ret := m.ctrl.Call(m, "ActualCR") 52 ret0, _ := ret[0].(*v1alpha1.Verrazzano) 53 return ret0 54 } 55 56 // ActualCR indicates an expected call of ActualCR 57 func (mr *MockComponentContextMockRecorder) ActualCR() *gomock.Call { 58 mr.mock.ctrl.T.Helper() 59 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActualCR", reflect.TypeOf((*MockComponentContext)(nil).ActualCR)) 60 } 61 62 // ActualCRV1Beta1 mocks base method 63 func (m *MockComponentContext) ActualCRV1Beta1() *v1beta1.Verrazzano { 64 m.ctrl.T.Helper() 65 ret := m.ctrl.Call(m, "ActualCRV1Beta1") 66 ret0, _ := ret[0].(*v1beta1.Verrazzano) 67 return ret0 68 } 69 70 // ActualCRV1Beta1 indicates an expected call of ActualCRV1Beta1 71 func (mr *MockComponentContextMockRecorder) ActualCRV1Beta1() *gomock.Call { 72 mr.mock.ctrl.T.Helper() 73 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActualCRV1Beta1", reflect.TypeOf((*MockComponentContext)(nil).ActualCRV1Beta1)) 74 } 75 76 // Client mocks base method 77 func (m *MockComponentContext) Client() client.Client { 78 m.ctrl.T.Helper() 79 ret := m.ctrl.Call(m, "Client") 80 ret0, _ := ret[0].(client.Client) 81 return ret0 82 } 83 84 // Client indicates an expected call of Client 85 func (mr *MockComponentContextMockRecorder) Client() *gomock.Call { 86 mr.mock.ctrl.T.Helper() 87 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Client", reflect.TypeOf((*MockComponentContext)(nil).Client)) 88 } 89 90 // Copy mocks base method 91 func (m *MockComponentContext) Copy() spi.ComponentContext { 92 m.ctrl.T.Helper() 93 ret := m.ctrl.Call(m, "Copy") 94 ret0, _ := ret[0].(spi.ComponentContext) 95 return ret0 96 } 97 98 // Copy indicates an expected call of Copy 99 func (mr *MockComponentContextMockRecorder) Copy() *gomock.Call { 100 mr.mock.ctrl.T.Helper() 101 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Copy", reflect.TypeOf((*MockComponentContext)(nil).Copy)) 102 } 103 104 // EffectiveCR mocks base method 105 func (m *MockComponentContext) EffectiveCR() *v1alpha1.Verrazzano { 106 m.ctrl.T.Helper() 107 ret := m.ctrl.Call(m, "EffectiveCR") 108 ret0, _ := ret[0].(*v1alpha1.Verrazzano) 109 return ret0 110 } 111 112 // EffectiveCR indicates an expected call of EffectiveCR 113 func (mr *MockComponentContextMockRecorder) EffectiveCR() *gomock.Call { 114 mr.mock.ctrl.T.Helper() 115 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EffectiveCR", reflect.TypeOf((*MockComponentContext)(nil).EffectiveCR)) 116 } 117 118 // EffectiveCRV1Beta1 mocks base method 119 func (m *MockComponentContext) EffectiveCRV1Beta1() *v1beta1.Verrazzano { 120 m.ctrl.T.Helper() 121 ret := m.ctrl.Call(m, "EffectiveCRV1Beta1") 122 ret0, _ := ret[0].(*v1beta1.Verrazzano) 123 return ret0 124 } 125 126 // EffectiveCRV1Beta1 indicates an expected call of EffectiveCRV1Beta1 127 func (mr *MockComponentContextMockRecorder) EffectiveCRV1Beta1() *gomock.Call { 128 mr.mock.ctrl.T.Helper() 129 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EffectiveCRV1Beta1", reflect.TypeOf((*MockComponentContext)(nil).EffectiveCRV1Beta1)) 130 } 131 132 // GetComponent mocks base method 133 func (m *MockComponentContext) GetComponent() string { 134 m.ctrl.T.Helper() 135 ret := m.ctrl.Call(m, "GetComponent") 136 ret0, _ := ret[0].(string) 137 return ret0 138 } 139 140 // GetComponent indicates an expected call of GetComponent 141 func (mr *MockComponentContextMockRecorder) GetComponent() *gomock.Call { 142 mr.mock.ctrl.T.Helper() 143 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetComponent", reflect.TypeOf((*MockComponentContext)(nil).GetComponent)) 144 } 145 146 // GetOperation mocks base method 147 func (m *MockComponentContext) GetOperation() string { 148 m.ctrl.T.Helper() 149 ret := m.ctrl.Call(m, "GetOperation") 150 ret0, _ := ret[0].(string) 151 return ret0 152 } 153 154 // GetOperation indicates an expected call of GetOperation 155 func (mr *MockComponentContextMockRecorder) GetOperation() *gomock.Call { 156 mr.mock.ctrl.T.Helper() 157 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOperation", reflect.TypeOf((*MockComponentContext)(nil).GetOperation)) 158 } 159 160 // Init mocks base method 161 func (m *MockComponentContext) Init(arg0 string) spi.ComponentContext { 162 m.ctrl.T.Helper() 163 ret := m.ctrl.Call(m, "Init", arg0) 164 ret0, _ := ret[0].(spi.ComponentContext) 165 return ret0 166 } 167 168 // Init indicates an expected call of Init 169 func (mr *MockComponentContextMockRecorder) Init(arg0 interface{}) *gomock.Call { 170 mr.mock.ctrl.T.Helper() 171 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Init", reflect.TypeOf((*MockComponentContext)(nil).Init), arg0) 172 } 173 174 // IsDryRun mocks base method 175 func (m *MockComponentContext) IsDryRun() bool { 176 m.ctrl.T.Helper() 177 ret := m.ctrl.Call(m, "IsDryRun") 178 ret0, _ := ret[0].(bool) 179 return ret0 180 } 181 182 // IsDryRun indicates an expected call of IsDryRun 183 func (mr *MockComponentContextMockRecorder) IsDryRun() *gomock.Call { 184 mr.mock.ctrl.T.Helper() 185 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsDryRun", reflect.TypeOf((*MockComponentContext)(nil).IsDryRun)) 186 } 187 188 // Log mocks base method 189 func (m *MockComponentContext) Log() vzlog.VerrazzanoLogger { 190 m.ctrl.T.Helper() 191 ret := m.ctrl.Call(m, "Log") 192 ret0, _ := ret[0].(vzlog.VerrazzanoLogger) 193 return ret0 194 } 195 196 // Log indicates an expected call of Log 197 func (mr *MockComponentContextMockRecorder) Log() *gomock.Call { 198 mr.mock.ctrl.T.Helper() 199 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Log", reflect.TypeOf((*MockComponentContext)(nil).Log)) 200 } 201 202 // Operation mocks base method 203 func (m *MockComponentContext) Operation(arg0 string) spi.ComponentContext { 204 m.ctrl.T.Helper() 205 ret := m.ctrl.Call(m, "Operation", arg0) 206 ret0, _ := ret[0].(spi.ComponentContext) 207 return ret0 208 } 209 210 // Operation indicates an expected call of Operation 211 func (mr *MockComponentContextMockRecorder) Operation(arg0 interface{}) *gomock.Call { 212 mr.mock.ctrl.T.Helper() 213 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Operation", reflect.TypeOf((*MockComponentContext)(nil).Operation), arg0) 214 } 215 216 // MockComponentInfo is a mock of ComponentInfo interface 217 type MockComponentInfo struct { 218 ctrl *gomock.Controller 219 recorder *MockComponentInfoMockRecorder 220 } 221 222 // MockComponentInfoMockRecorder is the mock recorder for MockComponentInfo 223 type MockComponentInfoMockRecorder struct { 224 mock *MockComponentInfo 225 } 226 227 // NewMockComponentInfo creates a new mock instance 228 func NewMockComponentInfo(ctrl *gomock.Controller) *MockComponentInfo { 229 mock := &MockComponentInfo{ctrl: ctrl} 230 mock.recorder = &MockComponentInfoMockRecorder{mock} 231 return mock 232 } 233 234 // EXPECT returns an object that allows the caller to indicate expected use 235 func (m *MockComponentInfo) EXPECT() *MockComponentInfoMockRecorder { 236 return m.recorder 237 } 238 239 // GetCertificateNames mocks base method 240 func (m *MockComponentInfo) GetCertificateNames(arg0 spi.ComponentContext) []types.NamespacedName { 241 m.ctrl.T.Helper() 242 ret := m.ctrl.Call(m, "GetCertificateNames", arg0) 243 ret0, _ := ret[0].([]types.NamespacedName) 244 return ret0 245 } 246 247 // GetCertificateNames indicates an expected call of GetCertificateNames 248 func (mr *MockComponentInfoMockRecorder) GetCertificateNames(arg0 interface{}) *gomock.Call { 249 mr.mock.ctrl.T.Helper() 250 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCertificateNames", reflect.TypeOf((*MockComponentInfo)(nil).GetCertificateNames), arg0) 251 } 252 253 // GetDependencies mocks base method 254 func (m *MockComponentInfo) GetDependencies() []string { 255 m.ctrl.T.Helper() 256 ret := m.ctrl.Call(m, "GetDependencies") 257 ret0, _ := ret[0].([]string) 258 return ret0 259 } 260 261 // GetDependencies indicates an expected call of GetDependencies 262 func (mr *MockComponentInfoMockRecorder) GetDependencies() *gomock.Call { 263 mr.mock.ctrl.T.Helper() 264 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDependencies", reflect.TypeOf((*MockComponentInfo)(nil).GetDependencies)) 265 } 266 267 // GetIngressNames mocks base method 268 func (m *MockComponentInfo) GetIngressNames(arg0 spi.ComponentContext) []types.NamespacedName { 269 m.ctrl.T.Helper() 270 ret := m.ctrl.Call(m, "GetIngressNames", arg0) 271 ret0, _ := ret[0].([]types.NamespacedName) 272 return ret0 273 } 274 275 // GetIngressNames indicates an expected call of GetIngressNames 276 func (mr *MockComponentInfoMockRecorder) GetIngressNames(arg0 interface{}) *gomock.Call { 277 mr.mock.ctrl.T.Helper() 278 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetIngressNames", reflect.TypeOf((*MockComponentInfo)(nil).GetIngressNames), arg0) 279 } 280 281 // GetJSONName mocks base method 282 func (m *MockComponentInfo) GetJSONName() string { 283 m.ctrl.T.Helper() 284 ret := m.ctrl.Call(m, "GetJSONName") 285 ret0, _ := ret[0].(string) 286 return ret0 287 } 288 289 // GetJSONName indicates an expected call of GetJSONName 290 func (mr *MockComponentInfoMockRecorder) GetJSONName() *gomock.Call { 291 mr.mock.ctrl.T.Helper() 292 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetJSONName", reflect.TypeOf((*MockComponentInfo)(nil).GetJSONName)) 293 } 294 295 // GetMinVerrazzanoVersion mocks base method 296 func (m *MockComponentInfo) GetMinVerrazzanoVersion() string { 297 m.ctrl.T.Helper() 298 ret := m.ctrl.Call(m, "GetMinVerrazzanoVersion") 299 ret0, _ := ret[0].(string) 300 return ret0 301 } 302 303 // GetMinVerrazzanoVersion indicates an expected call of GetMinVerrazzanoVersion 304 func (mr *MockComponentInfoMockRecorder) GetMinVerrazzanoVersion() *gomock.Call { 305 mr.mock.ctrl.T.Helper() 306 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMinVerrazzanoVersion", reflect.TypeOf((*MockComponentInfo)(nil).GetMinVerrazzanoVersion)) 307 } 308 309 // GetOverrides mocks base method 310 func (m *MockComponentInfo) GetOverrides(arg0 runtime.Object) interface{} { 311 m.ctrl.T.Helper() 312 ret := m.ctrl.Call(m, "GetOverrides", arg0) 313 ret0, _ := ret[0].(interface{}) 314 return ret0 315 } 316 317 // GetOverrides indicates an expected call of GetOverrides 318 func (mr *MockComponentInfoMockRecorder) GetOverrides(arg0 interface{}) *gomock.Call { 319 mr.mock.ctrl.T.Helper() 320 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOverrides", reflect.TypeOf((*MockComponentInfo)(nil).GetOverrides), arg0) 321 } 322 323 // IsAvailable mocks base method 324 func (m *MockComponentInfo) IsAvailable(arg0 spi.ComponentContext) (string, v1alpha1.ComponentAvailability) { 325 m.ctrl.T.Helper() 326 ret := m.ctrl.Call(m, "IsAvailable", arg0) 327 ret0, _ := ret[0].(string) 328 ret1, _ := ret[1].(v1alpha1.ComponentAvailability) 329 return ret0, ret1 330 } 331 332 // IsAvailable indicates an expected call of IsAvailable 333 func (mr *MockComponentInfoMockRecorder) IsAvailable(arg0 interface{}) *gomock.Call { 334 mr.mock.ctrl.T.Helper() 335 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsAvailable", reflect.TypeOf((*MockComponentInfo)(nil).IsAvailable), arg0) 336 } 337 338 // IsEnabled mocks base method 339 func (m *MockComponentInfo) IsEnabled(arg0 runtime.Object) bool { 340 m.ctrl.T.Helper() 341 ret := m.ctrl.Call(m, "IsEnabled", arg0) 342 ret0, _ := ret[0].(bool) 343 return ret0 344 } 345 346 // IsEnabled indicates an expected call of IsEnabled 347 func (mr *MockComponentInfoMockRecorder) IsEnabled(arg0 interface{}) *gomock.Call { 348 mr.mock.ctrl.T.Helper() 349 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsEnabled", reflect.TypeOf((*MockComponentInfo)(nil).IsEnabled), arg0) 350 } 351 352 // IsReady mocks base method 353 func (m *MockComponentInfo) IsReady(arg0 spi.ComponentContext) bool { 354 m.ctrl.T.Helper() 355 ret := m.ctrl.Call(m, "IsReady", arg0) 356 ret0, _ := ret[0].(bool) 357 return ret0 358 } 359 360 // IsReady indicates an expected call of IsReady 361 func (mr *MockComponentInfoMockRecorder) IsReady(arg0 interface{}) *gomock.Call { 362 mr.mock.ctrl.T.Helper() 363 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsReady", reflect.TypeOf((*MockComponentInfo)(nil).IsReady), arg0) 364 } 365 366 // MonitorOverrides mocks base method 367 func (m *MockComponentInfo) MonitorOverrides(arg0 spi.ComponentContext) bool { 368 m.ctrl.T.Helper() 369 ret := m.ctrl.Call(m, "MonitorOverrides", arg0) 370 ret0, _ := ret[0].(bool) 371 return ret0 372 } 373 374 // MonitorOverrides indicates an expected call of MonitorOverrides 375 func (mr *MockComponentInfoMockRecorder) MonitorOverrides(arg0 interface{}) *gomock.Call { 376 mr.mock.ctrl.T.Helper() 377 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MonitorOverrides", reflect.TypeOf((*MockComponentInfo)(nil).MonitorOverrides), arg0) 378 } 379 380 // Name mocks base method 381 func (m *MockComponentInfo) Name() string { 382 m.ctrl.T.Helper() 383 ret := m.ctrl.Call(m, "Name") 384 ret0, _ := ret[0].(string) 385 return ret0 386 } 387 388 // Name indicates an expected call of Name 389 func (mr *MockComponentInfoMockRecorder) Name() *gomock.Call { 390 mr.mock.ctrl.T.Helper() 391 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockComponentInfo)(nil).Name)) 392 } 393 394 // Namespace mocks base method 395 func (m *MockComponentInfo) Namespace() string { 396 m.ctrl.T.Helper() 397 ret := m.ctrl.Call(m, "Namespace") 398 ret0, _ := ret[0].(string) 399 return ret0 400 } 401 402 // Namespace indicates an expected call of Namespace 403 func (mr *MockComponentInfoMockRecorder) Namespace() *gomock.Call { 404 mr.mock.ctrl.T.Helper() 405 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Namespace", reflect.TypeOf((*MockComponentInfo)(nil).Namespace)) 406 } 407 408 // ShouldInstallBeforeUpgrade mocks base method 409 func (m *MockComponentInfo) ShouldInstallBeforeUpgrade() bool { 410 m.ctrl.T.Helper() 411 ret := m.ctrl.Call(m, "ShouldInstallBeforeUpgrade") 412 ret0, _ := ret[0].(bool) 413 return ret0 414 } 415 416 // ShouldInstallBeforeUpgrade indicates an expected call of ShouldInstallBeforeUpgrade 417 func (mr *MockComponentInfoMockRecorder) ShouldInstallBeforeUpgrade() *gomock.Call { 418 mr.mock.ctrl.T.Helper() 419 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ShouldInstallBeforeUpgrade", reflect.TypeOf((*MockComponentInfo)(nil).ShouldInstallBeforeUpgrade)) 420 } 421 422 // MockComponentInstaller is a mock of ComponentInstaller interface 423 type MockComponentInstaller struct { 424 ctrl *gomock.Controller 425 recorder *MockComponentInstallerMockRecorder 426 } 427 428 // MockComponentInstallerMockRecorder is the mock recorder for MockComponentInstaller 429 type MockComponentInstallerMockRecorder struct { 430 mock *MockComponentInstaller 431 } 432 433 // NewMockComponentInstaller creates a new mock instance 434 func NewMockComponentInstaller(ctrl *gomock.Controller) *MockComponentInstaller { 435 mock := &MockComponentInstaller{ctrl: ctrl} 436 mock.recorder = &MockComponentInstallerMockRecorder{mock} 437 return mock 438 } 439 440 // EXPECT returns an object that allows the caller to indicate expected use 441 func (m *MockComponentInstaller) EXPECT() *MockComponentInstallerMockRecorder { 442 return m.recorder 443 } 444 445 // Install mocks base method 446 func (m *MockComponentInstaller) Install(arg0 spi.ComponentContext) error { 447 m.ctrl.T.Helper() 448 ret := m.ctrl.Call(m, "Install", arg0) 449 ret0, _ := ret[0].(error) 450 return ret0 451 } 452 453 // Install indicates an expected call of Install 454 func (mr *MockComponentInstallerMockRecorder) Install(arg0 interface{}) *gomock.Call { 455 mr.mock.ctrl.T.Helper() 456 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Install", reflect.TypeOf((*MockComponentInstaller)(nil).Install), arg0) 457 } 458 459 // IsInstalled mocks base method 460 func (m *MockComponentInstaller) IsInstalled(arg0 spi.ComponentContext) (bool, error) { 461 m.ctrl.T.Helper() 462 ret := m.ctrl.Call(m, "IsInstalled", arg0) 463 ret0, _ := ret[0].(bool) 464 ret1, _ := ret[1].(error) 465 return ret0, ret1 466 } 467 468 // IsInstalled indicates an expected call of IsInstalled 469 func (mr *MockComponentInstallerMockRecorder) IsInstalled(arg0 interface{}) *gomock.Call { 470 mr.mock.ctrl.T.Helper() 471 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsInstalled", reflect.TypeOf((*MockComponentInstaller)(nil).IsInstalled), arg0) 472 } 473 474 // IsOperatorInstallSupported mocks base method 475 func (m *MockComponentInstaller) IsOperatorInstallSupported() bool { 476 m.ctrl.T.Helper() 477 ret := m.ctrl.Call(m, "IsOperatorInstallSupported") 478 ret0, _ := ret[0].(bool) 479 return ret0 480 } 481 482 // IsOperatorInstallSupported indicates an expected call of IsOperatorInstallSupported 483 func (mr *MockComponentInstallerMockRecorder) IsOperatorInstallSupported() *gomock.Call { 484 mr.mock.ctrl.T.Helper() 485 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsOperatorInstallSupported", reflect.TypeOf((*MockComponentInstaller)(nil).IsOperatorInstallSupported)) 486 } 487 488 // PostInstall mocks base method 489 func (m *MockComponentInstaller) PostInstall(arg0 spi.ComponentContext) error { 490 m.ctrl.T.Helper() 491 ret := m.ctrl.Call(m, "PostInstall", arg0) 492 ret0, _ := ret[0].(error) 493 return ret0 494 } 495 496 // PostInstall indicates an expected call of PostInstall 497 func (mr *MockComponentInstallerMockRecorder) PostInstall(arg0 interface{}) *gomock.Call { 498 mr.mock.ctrl.T.Helper() 499 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PostInstall", reflect.TypeOf((*MockComponentInstaller)(nil).PostInstall), arg0) 500 } 501 502 // PreInstall mocks base method 503 func (m *MockComponentInstaller) PreInstall(arg0 spi.ComponentContext) error { 504 m.ctrl.T.Helper() 505 ret := m.ctrl.Call(m, "PreInstall", arg0) 506 ret0, _ := ret[0].(error) 507 return ret0 508 } 509 510 // PreInstall indicates an expected call of PreInstall 511 func (mr *MockComponentInstallerMockRecorder) PreInstall(arg0 interface{}) *gomock.Call { 512 mr.mock.ctrl.T.Helper() 513 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PreInstall", reflect.TypeOf((*MockComponentInstaller)(nil).PreInstall), arg0) 514 } 515 516 // MockComponentUpgrader is a mock of ComponentUpgrader interface 517 type MockComponentUpgrader struct { 518 ctrl *gomock.Controller 519 recorder *MockComponentUpgraderMockRecorder 520 } 521 522 // MockComponentUpgraderMockRecorder is the mock recorder for MockComponentUpgrader 523 type MockComponentUpgraderMockRecorder struct { 524 mock *MockComponentUpgrader 525 } 526 527 // NewMockComponentUpgrader creates a new mock instance 528 func NewMockComponentUpgrader(ctrl *gomock.Controller) *MockComponentUpgrader { 529 mock := &MockComponentUpgrader{ctrl: ctrl} 530 mock.recorder = &MockComponentUpgraderMockRecorder{mock} 531 return mock 532 } 533 534 // EXPECT returns an object that allows the caller to indicate expected use 535 func (m *MockComponentUpgrader) EXPECT() *MockComponentUpgraderMockRecorder { 536 return m.recorder 537 } 538 539 // PostUpgrade mocks base method 540 func (m *MockComponentUpgrader) PostUpgrade(arg0 spi.ComponentContext) error { 541 m.ctrl.T.Helper() 542 ret := m.ctrl.Call(m, "PostUpgrade", arg0) 543 ret0, _ := ret[0].(error) 544 return ret0 545 } 546 547 // PostUpgrade indicates an expected call of PostUpgrade 548 func (mr *MockComponentUpgraderMockRecorder) PostUpgrade(arg0 interface{}) *gomock.Call { 549 mr.mock.ctrl.T.Helper() 550 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PostUpgrade", reflect.TypeOf((*MockComponentUpgrader)(nil).PostUpgrade), arg0) 551 } 552 553 // PreUpgrade mocks base method 554 func (m *MockComponentUpgrader) PreUpgrade(arg0 spi.ComponentContext) error { 555 m.ctrl.T.Helper() 556 ret := m.ctrl.Call(m, "PreUpgrade", arg0) 557 ret0, _ := ret[0].(error) 558 return ret0 559 } 560 561 // PreUpgrade indicates an expected call of PreUpgrade 562 func (mr *MockComponentUpgraderMockRecorder) PreUpgrade(arg0 interface{}) *gomock.Call { 563 mr.mock.ctrl.T.Helper() 564 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PreUpgrade", reflect.TypeOf((*MockComponentUpgrader)(nil).PreUpgrade), arg0) 565 } 566 567 // Upgrade mocks base method 568 func (m *MockComponentUpgrader) Upgrade(arg0 spi.ComponentContext) error { 569 m.ctrl.T.Helper() 570 ret := m.ctrl.Call(m, "Upgrade", arg0) 571 ret0, _ := ret[0].(error) 572 return ret0 573 } 574 575 // Upgrade indicates an expected call of Upgrade 576 func (mr *MockComponentUpgraderMockRecorder) Upgrade(arg0 interface{}) *gomock.Call { 577 mr.mock.ctrl.T.Helper() 578 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Upgrade", reflect.TypeOf((*MockComponentUpgrader)(nil).Upgrade), arg0) 579 } 580 581 // MockComponent is a mock of Component interface 582 type MockComponent struct { 583 ctrl *gomock.Controller 584 recorder *MockComponentMockRecorder 585 } 586 587 // MockComponentMockRecorder is the mock recorder for MockComponent 588 type MockComponentMockRecorder struct { 589 mock *MockComponent 590 } 591 592 // NewMockComponent creates a new mock instance 593 func NewMockComponent(ctrl *gomock.Controller) *MockComponent { 594 mock := &MockComponent{ctrl: ctrl} 595 mock.recorder = &MockComponentMockRecorder{mock} 596 return mock 597 } 598 599 // EXPECT returns an object that allows the caller to indicate expected use 600 func (m *MockComponent) EXPECT() *MockComponentMockRecorder { 601 return m.recorder 602 } 603 604 // Exists mocks base method 605 func (m *MockComponent) Exists(arg0 spi.ComponentContext) (bool, error) { 606 m.ctrl.T.Helper() 607 ret := m.ctrl.Call(m, "Exists", arg0) 608 ret0, _ := ret[0].(bool) 609 ret1, _ := ret[1].(error) 610 return ret0, ret1 611 } 612 613 // Exists indicates an expected call of Exists 614 func (mr *MockComponentMockRecorder) Exists(arg0 interface{}) *gomock.Call { 615 mr.mock.ctrl.T.Helper() 616 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Exists", reflect.TypeOf((*MockComponent)(nil).Exists), arg0) 617 } 618 619 // GetCertificateNames mocks base method 620 func (m *MockComponent) GetCertificateNames(arg0 spi.ComponentContext) []types.NamespacedName { 621 m.ctrl.T.Helper() 622 ret := m.ctrl.Call(m, "GetCertificateNames", arg0) 623 ret0, _ := ret[0].([]types.NamespacedName) 624 return ret0 625 } 626 627 // GetCertificateNames indicates an expected call of GetCertificateNames 628 func (mr *MockComponentMockRecorder) GetCertificateNames(arg0 interface{}) *gomock.Call { 629 mr.mock.ctrl.T.Helper() 630 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCertificateNames", reflect.TypeOf((*MockComponent)(nil).GetCertificateNames), arg0) 631 } 632 633 // GetDependencies mocks base method 634 func (m *MockComponent) GetDependencies() []string { 635 m.ctrl.T.Helper() 636 ret := m.ctrl.Call(m, "GetDependencies") 637 ret0, _ := ret[0].([]string) 638 return ret0 639 } 640 641 // GetDependencies indicates an expected call of GetDependencies 642 func (mr *MockComponentMockRecorder) GetDependencies() *gomock.Call { 643 mr.mock.ctrl.T.Helper() 644 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDependencies", reflect.TypeOf((*MockComponent)(nil).GetDependencies)) 645 } 646 647 // GetIngressNames mocks base method 648 func (m *MockComponent) GetIngressNames(arg0 spi.ComponentContext) []types.NamespacedName { 649 m.ctrl.T.Helper() 650 ret := m.ctrl.Call(m, "GetIngressNames", arg0) 651 ret0, _ := ret[0].([]types.NamespacedName) 652 return ret0 653 } 654 655 // GetIngressNames indicates an expected call of GetIngressNames 656 func (mr *MockComponentMockRecorder) GetIngressNames(arg0 interface{}) *gomock.Call { 657 mr.mock.ctrl.T.Helper() 658 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetIngressNames", reflect.TypeOf((*MockComponent)(nil).GetIngressNames), arg0) 659 } 660 661 // GetJSONName mocks base method 662 func (m *MockComponent) GetJSONName() string { 663 m.ctrl.T.Helper() 664 ret := m.ctrl.Call(m, "GetJSONName") 665 ret0, _ := ret[0].(string) 666 return ret0 667 } 668 669 // GetJSONName indicates an expected call of GetJSONName 670 func (mr *MockComponentMockRecorder) GetJSONName() *gomock.Call { 671 mr.mock.ctrl.T.Helper() 672 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetJSONName", reflect.TypeOf((*MockComponent)(nil).GetJSONName)) 673 } 674 675 // GetMinVerrazzanoVersion mocks base method 676 func (m *MockComponent) GetMinVerrazzanoVersion() string { 677 m.ctrl.T.Helper() 678 ret := m.ctrl.Call(m, "GetMinVerrazzanoVersion") 679 ret0, _ := ret[0].(string) 680 return ret0 681 } 682 683 // GetMinVerrazzanoVersion indicates an expected call of GetMinVerrazzanoVersion 684 func (mr *MockComponentMockRecorder) GetMinVerrazzanoVersion() *gomock.Call { 685 mr.mock.ctrl.T.Helper() 686 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMinVerrazzanoVersion", reflect.TypeOf((*MockComponent)(nil).GetMinVerrazzanoVersion)) 687 } 688 689 // GetModuleConfigAsHelmValues mocks base method 690 func (m *MockComponent) GetModuleConfigAsHelmValues(arg0 *v1alpha1.Verrazzano) (*v1.JSON, error) { 691 m.ctrl.T.Helper() 692 ret := m.ctrl.Call(m, "GetModuleConfigAsHelmValues", arg0) 693 ret0, _ := ret[0].(*v1.JSON) 694 ret1, _ := ret[1].(error) 695 return ret0, ret1 696 } 697 698 // GetModuleConfigAsHelmValues indicates an expected call of GetModuleConfigAsHelmValues 699 func (mr *MockComponentMockRecorder) GetModuleConfigAsHelmValues(arg0 interface{}) *gomock.Call { 700 mr.mock.ctrl.T.Helper() 701 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetModuleConfigAsHelmValues", reflect.TypeOf((*MockComponent)(nil).GetModuleConfigAsHelmValues), arg0) 702 } 703 704 // GetOverrides mocks base method 705 func (m *MockComponent) GetOverrides(arg0 runtime.Object) interface{} { 706 m.ctrl.T.Helper() 707 ret := m.ctrl.Call(m, "GetOverrides", arg0) 708 ret0, _ := ret[0].(interface{}) 709 return ret0 710 } 711 712 // GetOverrides indicates an expected call of GetOverrides 713 func (mr *MockComponentMockRecorder) GetOverrides(arg0 interface{}) *gomock.Call { 714 mr.mock.ctrl.T.Helper() 715 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOverrides", reflect.TypeOf((*MockComponent)(nil).GetOverrides), arg0) 716 } 717 718 // GetWatchDescriptors mocks base method 719 func (m *MockComponent) GetWatchDescriptors() []controllerspi.WatchDescriptor { 720 m.ctrl.T.Helper() 721 ret := m.ctrl.Call(m, "GetWatchDescriptors") 722 ret0, _ := ret[0].([]controllerspi.WatchDescriptor) 723 return ret0 724 } 725 726 // GetWatchDescriptors indicates an expected call of GetWatchDescriptors 727 func (mr *MockComponentMockRecorder) GetWatchDescriptors() *gomock.Call { 728 mr.mock.ctrl.T.Helper() 729 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWatchDescriptors", reflect.TypeOf((*MockComponent)(nil).GetWatchDescriptors)) 730 } 731 732 // Install mocks base method 733 func (m *MockComponent) Install(arg0 spi.ComponentContext) error { 734 m.ctrl.T.Helper() 735 ret := m.ctrl.Call(m, "Install", arg0) 736 ret0, _ := ret[0].(error) 737 return ret0 738 } 739 740 // Install indicates an expected call of Install 741 func (mr *MockComponentMockRecorder) Install(arg0 interface{}) *gomock.Call { 742 mr.mock.ctrl.T.Helper() 743 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Install", reflect.TypeOf((*MockComponent)(nil).Install), arg0) 744 } 745 746 // IsAvailable mocks base method 747 func (m *MockComponent) IsAvailable(arg0 spi.ComponentContext) (string, v1alpha1.ComponentAvailability) { 748 m.ctrl.T.Helper() 749 ret := m.ctrl.Call(m, "IsAvailable", arg0) 750 ret0, _ := ret[0].(string) 751 ret1, _ := ret[1].(v1alpha1.ComponentAvailability) 752 return ret0, ret1 753 } 754 755 // IsAvailable indicates an expected call of IsAvailable 756 func (mr *MockComponentMockRecorder) IsAvailable(arg0 interface{}) *gomock.Call { 757 mr.mock.ctrl.T.Helper() 758 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsAvailable", reflect.TypeOf((*MockComponent)(nil).IsAvailable), arg0) 759 } 760 761 // IsEnabled mocks base method 762 func (m *MockComponent) IsEnabled(arg0 runtime.Object) bool { 763 m.ctrl.T.Helper() 764 ret := m.ctrl.Call(m, "IsEnabled", arg0) 765 ret0, _ := ret[0].(bool) 766 return ret0 767 } 768 769 // IsEnabled indicates an expected call of IsEnabled 770 func (mr *MockComponentMockRecorder) IsEnabled(arg0 interface{}) *gomock.Call { 771 mr.mock.ctrl.T.Helper() 772 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsEnabled", reflect.TypeOf((*MockComponent)(nil).IsEnabled), arg0) 773 } 774 775 // IsInstalled mocks base method 776 func (m *MockComponent) IsInstalled(arg0 spi.ComponentContext) (bool, error) { 777 m.ctrl.T.Helper() 778 ret := m.ctrl.Call(m, "IsInstalled", arg0) 779 ret0, _ := ret[0].(bool) 780 ret1, _ := ret[1].(error) 781 return ret0, ret1 782 } 783 784 // IsInstalled indicates an expected call of IsInstalled 785 func (mr *MockComponentMockRecorder) IsInstalled(arg0 interface{}) *gomock.Call { 786 mr.mock.ctrl.T.Helper() 787 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsInstalled", reflect.TypeOf((*MockComponent)(nil).IsInstalled), arg0) 788 } 789 790 // IsOperatorInstallSupported mocks base method 791 func (m *MockComponent) IsOperatorInstallSupported() bool { 792 m.ctrl.T.Helper() 793 ret := m.ctrl.Call(m, "IsOperatorInstallSupported") 794 ret0, _ := ret[0].(bool) 795 return ret0 796 } 797 798 // IsOperatorInstallSupported indicates an expected call of IsOperatorInstallSupported 799 func (mr *MockComponentMockRecorder) IsOperatorInstallSupported() *gomock.Call { 800 mr.mock.ctrl.T.Helper() 801 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsOperatorInstallSupported", reflect.TypeOf((*MockComponent)(nil).IsOperatorInstallSupported)) 802 } 803 804 // IsOperatorUninstallSupported mocks base method 805 func (m *MockComponent) IsOperatorUninstallSupported() bool { 806 m.ctrl.T.Helper() 807 ret := m.ctrl.Call(m, "IsOperatorUninstallSupported") 808 ret0, _ := ret[0].(bool) 809 return ret0 810 } 811 812 // IsOperatorUninstallSupported indicates an expected call of IsOperatorUninstallSupported 813 func (mr *MockComponentMockRecorder) IsOperatorUninstallSupported() *gomock.Call { 814 mr.mock.ctrl.T.Helper() 815 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsOperatorUninstallSupported", reflect.TypeOf((*MockComponent)(nil).IsOperatorUninstallSupported)) 816 } 817 818 // IsReady mocks base method 819 func (m *MockComponent) IsReady(arg0 spi.ComponentContext) bool { 820 m.ctrl.T.Helper() 821 ret := m.ctrl.Call(m, "IsReady", arg0) 822 ret0, _ := ret[0].(bool) 823 return ret0 824 } 825 826 // IsReady indicates an expected call of IsReady 827 func (mr *MockComponentMockRecorder) IsReady(arg0 interface{}) *gomock.Call { 828 mr.mock.ctrl.T.Helper() 829 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsReady", reflect.TypeOf((*MockComponent)(nil).IsReady), arg0) 830 } 831 832 // MonitorOverrides mocks base method 833 func (m *MockComponent) MonitorOverrides(arg0 spi.ComponentContext) bool { 834 m.ctrl.T.Helper() 835 ret := m.ctrl.Call(m, "MonitorOverrides", arg0) 836 ret0, _ := ret[0].(bool) 837 return ret0 838 } 839 840 // MonitorOverrides indicates an expected call of MonitorOverrides 841 func (mr *MockComponentMockRecorder) MonitorOverrides(arg0 interface{}) *gomock.Call { 842 mr.mock.ctrl.T.Helper() 843 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MonitorOverrides", reflect.TypeOf((*MockComponent)(nil).MonitorOverrides), arg0) 844 } 845 846 // Name mocks base method 847 func (m *MockComponent) Name() string { 848 m.ctrl.T.Helper() 849 ret := m.ctrl.Call(m, "Name") 850 ret0, _ := ret[0].(string) 851 return ret0 852 } 853 854 // Name indicates an expected call of Name 855 func (mr *MockComponentMockRecorder) Name() *gomock.Call { 856 mr.mock.ctrl.T.Helper() 857 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockComponent)(nil).Name)) 858 } 859 860 // Namespace mocks base method 861 func (m *MockComponent) Namespace() string { 862 m.ctrl.T.Helper() 863 ret := m.ctrl.Call(m, "Namespace") 864 ret0, _ := ret[0].(string) 865 return ret0 866 } 867 868 // Namespace indicates an expected call of Namespace 869 func (mr *MockComponentMockRecorder) Namespace() *gomock.Call { 870 mr.mock.ctrl.T.Helper() 871 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Namespace", reflect.TypeOf((*MockComponent)(nil).Namespace)) 872 } 873 874 // PostInstall mocks base method 875 func (m *MockComponent) PostInstall(arg0 spi.ComponentContext) error { 876 m.ctrl.T.Helper() 877 ret := m.ctrl.Call(m, "PostInstall", arg0) 878 ret0, _ := ret[0].(error) 879 return ret0 880 } 881 882 // PostInstall indicates an expected call of PostInstall 883 func (mr *MockComponentMockRecorder) PostInstall(arg0 interface{}) *gomock.Call { 884 mr.mock.ctrl.T.Helper() 885 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PostInstall", reflect.TypeOf((*MockComponent)(nil).PostInstall), arg0) 886 } 887 888 // PostUninstall mocks base method 889 func (m *MockComponent) PostUninstall(arg0 spi.ComponentContext) error { 890 m.ctrl.T.Helper() 891 ret := m.ctrl.Call(m, "PostUninstall", arg0) 892 ret0, _ := ret[0].(error) 893 return ret0 894 } 895 896 // PostUninstall indicates an expected call of PostUninstall 897 func (mr *MockComponentMockRecorder) PostUninstall(arg0 interface{}) *gomock.Call { 898 mr.mock.ctrl.T.Helper() 899 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PostUninstall", reflect.TypeOf((*MockComponent)(nil).PostUninstall), arg0) 900 } 901 902 // PostUpgrade mocks base method 903 func (m *MockComponent) PostUpgrade(arg0 spi.ComponentContext) error { 904 m.ctrl.T.Helper() 905 ret := m.ctrl.Call(m, "PostUpgrade", arg0) 906 ret0, _ := ret[0].(error) 907 return ret0 908 } 909 910 // PostUpgrade indicates an expected call of PostUpgrade 911 func (mr *MockComponentMockRecorder) PostUpgrade(arg0 interface{}) *gomock.Call { 912 mr.mock.ctrl.T.Helper() 913 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PostUpgrade", reflect.TypeOf((*MockComponent)(nil).PostUpgrade), arg0) 914 } 915 916 // PreInstall mocks base method 917 func (m *MockComponent) PreInstall(arg0 spi.ComponentContext) error { 918 m.ctrl.T.Helper() 919 ret := m.ctrl.Call(m, "PreInstall", arg0) 920 ret0, _ := ret[0].(error) 921 return ret0 922 } 923 924 // PreInstall indicates an expected call of PreInstall 925 func (mr *MockComponentMockRecorder) PreInstall(arg0 interface{}) *gomock.Call { 926 mr.mock.ctrl.T.Helper() 927 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PreInstall", reflect.TypeOf((*MockComponent)(nil).PreInstall), arg0) 928 } 929 930 // PreUninstall mocks base method 931 func (m *MockComponent) PreUninstall(arg0 spi.ComponentContext) error { 932 m.ctrl.T.Helper() 933 ret := m.ctrl.Call(m, "PreUninstall", arg0) 934 ret0, _ := ret[0].(error) 935 return ret0 936 } 937 938 // PreUninstall indicates an expected call of PreUninstall 939 func (mr *MockComponentMockRecorder) PreUninstall(arg0 interface{}) *gomock.Call { 940 mr.mock.ctrl.T.Helper() 941 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PreUninstall", reflect.TypeOf((*MockComponent)(nil).PreUninstall), arg0) 942 } 943 944 // PreUpgrade mocks base method 945 func (m *MockComponent) PreUpgrade(arg0 spi.ComponentContext) error { 946 m.ctrl.T.Helper() 947 ret := m.ctrl.Call(m, "PreUpgrade", arg0) 948 ret0, _ := ret[0].(error) 949 return ret0 950 } 951 952 // PreUpgrade indicates an expected call of PreUpgrade 953 func (mr *MockComponentMockRecorder) PreUpgrade(arg0 interface{}) *gomock.Call { 954 mr.mock.ctrl.T.Helper() 955 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PreUpgrade", reflect.TypeOf((*MockComponent)(nil).PreUpgrade), arg0) 956 } 957 958 // Reconcile mocks base method 959 func (m *MockComponent) Reconcile(arg0 spi.ComponentContext) error { 960 m.ctrl.T.Helper() 961 ret := m.ctrl.Call(m, "Reconcile", arg0) 962 ret0, _ := ret[0].(error) 963 return ret0 964 } 965 966 // Reconcile indicates an expected call of Reconcile 967 func (mr *MockComponentMockRecorder) Reconcile(arg0 interface{}) *gomock.Call { 968 mr.mock.ctrl.T.Helper() 969 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Reconcile", reflect.TypeOf((*MockComponent)(nil).Reconcile), arg0) 970 } 971 972 // ShouldInstallBeforeUpgrade mocks base method 973 func (m *MockComponent) ShouldInstallBeforeUpgrade() bool { 974 m.ctrl.T.Helper() 975 ret := m.ctrl.Call(m, "ShouldInstallBeforeUpgrade") 976 ret0, _ := ret[0].(bool) 977 return ret0 978 } 979 980 // ShouldInstallBeforeUpgrade indicates an expected call of ShouldInstallBeforeUpgrade 981 func (mr *MockComponentMockRecorder) ShouldInstallBeforeUpgrade() *gomock.Call { 982 mr.mock.ctrl.T.Helper() 983 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ShouldInstallBeforeUpgrade", reflect.TypeOf((*MockComponent)(nil).ShouldInstallBeforeUpgrade)) 984 } 985 986 // ShouldUseModule mocks base method 987 func (m *MockComponent) ShouldUseModule() bool { 988 m.ctrl.T.Helper() 989 ret := m.ctrl.Call(m, "ShouldUseModule") 990 ret0, _ := ret[0].(bool) 991 return ret0 992 } 993 994 // ShouldUseModule indicates an expected call of ShouldUseModule 995 func (mr *MockComponentMockRecorder) ShouldUseModule() *gomock.Call { 996 mr.mock.ctrl.T.Helper() 997 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ShouldUseModule", reflect.TypeOf((*MockComponent)(nil).ShouldUseModule)) 998 } 999 1000 // Uninstall mocks base method 1001 func (m *MockComponent) Uninstall(arg0 spi.ComponentContext) error { 1002 m.ctrl.T.Helper() 1003 ret := m.ctrl.Call(m, "Uninstall", arg0) 1004 ret0, _ := ret[0].(error) 1005 return ret0 1006 } 1007 1008 // Uninstall indicates an expected call of Uninstall 1009 func (mr *MockComponentMockRecorder) Uninstall(arg0 interface{}) *gomock.Call { 1010 mr.mock.ctrl.T.Helper() 1011 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Uninstall", reflect.TypeOf((*MockComponent)(nil).Uninstall), arg0) 1012 } 1013 1014 // Upgrade mocks base method 1015 func (m *MockComponent) Upgrade(arg0 spi.ComponentContext) error { 1016 m.ctrl.T.Helper() 1017 ret := m.ctrl.Call(m, "Upgrade", arg0) 1018 ret0, _ := ret[0].(error) 1019 return ret0 1020 } 1021 1022 // Upgrade indicates an expected call of Upgrade 1023 func (mr *MockComponentMockRecorder) Upgrade(arg0 interface{}) *gomock.Call { 1024 mr.mock.ctrl.T.Helper() 1025 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Upgrade", reflect.TypeOf((*MockComponent)(nil).Upgrade), arg0) 1026 } 1027 1028 // ValidateInstall mocks base method 1029 func (m *MockComponent) ValidateInstall(arg0 *v1alpha1.Verrazzano) error { 1030 m.ctrl.T.Helper() 1031 ret := m.ctrl.Call(m, "ValidateInstall", arg0) 1032 ret0, _ := ret[0].(error) 1033 return ret0 1034 } 1035 1036 // ValidateInstall indicates an expected call of ValidateInstall 1037 func (mr *MockComponentMockRecorder) ValidateInstall(arg0 interface{}) *gomock.Call { 1038 mr.mock.ctrl.T.Helper() 1039 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateInstall", reflect.TypeOf((*MockComponent)(nil).ValidateInstall), arg0) 1040 } 1041 1042 // ValidateInstallV1Beta1 mocks base method 1043 func (m *MockComponent) ValidateInstallV1Beta1(arg0 *v1beta1.Verrazzano) error { 1044 m.ctrl.T.Helper() 1045 ret := m.ctrl.Call(m, "ValidateInstallV1Beta1", arg0) 1046 ret0, _ := ret[0].(error) 1047 return ret0 1048 } 1049 1050 // ValidateInstallV1Beta1 indicates an expected call of ValidateInstallV1Beta1 1051 func (mr *MockComponentMockRecorder) ValidateInstallV1Beta1(arg0 interface{}) *gomock.Call { 1052 mr.mock.ctrl.T.Helper() 1053 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateInstallV1Beta1", reflect.TypeOf((*MockComponent)(nil).ValidateInstallV1Beta1), arg0) 1054 } 1055 1056 // ValidateUpdate mocks base method 1057 func (m *MockComponent) ValidateUpdate(arg0, arg1 *v1alpha1.Verrazzano) error { 1058 m.ctrl.T.Helper() 1059 ret := m.ctrl.Call(m, "ValidateUpdate", arg0, arg1) 1060 ret0, _ := ret[0].(error) 1061 return ret0 1062 } 1063 1064 // ValidateUpdate indicates an expected call of ValidateUpdate 1065 func (mr *MockComponentMockRecorder) ValidateUpdate(arg0, arg1 interface{}) *gomock.Call { 1066 mr.mock.ctrl.T.Helper() 1067 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateUpdate", reflect.TypeOf((*MockComponent)(nil).ValidateUpdate), arg0, arg1) 1068 } 1069 1070 // ValidateUpdateV1Beta1 mocks base method 1071 func (m *MockComponent) ValidateUpdateV1Beta1(arg0, arg1 *v1beta1.Verrazzano) error { 1072 m.ctrl.T.Helper() 1073 ret := m.ctrl.Call(m, "ValidateUpdateV1Beta1", arg0, arg1) 1074 ret0, _ := ret[0].(error) 1075 return ret0 1076 } 1077 1078 // ValidateUpdateV1Beta1 indicates an expected call of ValidateUpdateV1Beta1 1079 func (mr *MockComponentMockRecorder) ValidateUpdateV1Beta1(arg0, arg1 interface{}) *gomock.Call { 1080 mr.mock.ctrl.T.Helper() 1081 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateUpdateV1Beta1", reflect.TypeOf((*MockComponent)(nil).ValidateUpdateV1Beta1), arg0, arg1) 1082 }