mocks

package
v0.20.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDatacenterConfig

type MockDatacenterConfig struct {
	// contains filtered or unexported fields
}

MockDatacenterConfig is a mock of DatacenterConfig interface.

func NewMockDatacenterConfig

func NewMockDatacenterConfig(ctrl *gomock.Controller) *MockDatacenterConfig

NewMockDatacenterConfig creates a new mock instance.

func (*MockDatacenterConfig) ClearPauseAnnotation

func (m *MockDatacenterConfig) ClearPauseAnnotation()

ClearPauseAnnotation mocks base method.

func (*MockDatacenterConfig) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockDatacenterConfig) Kind

func (m *MockDatacenterConfig) Kind() string

Kind mocks base method.

func (*MockDatacenterConfig) Marshallable added in v0.6.0

func (m *MockDatacenterConfig) Marshallable() v1alpha1.Marshallable

Marshallable mocks base method.

func (*MockDatacenterConfig) PauseReconcile

func (m *MockDatacenterConfig) PauseReconcile()

PauseReconcile mocks base method.

type MockDatacenterConfigMockRecorder

type MockDatacenterConfigMockRecorder struct {
	// contains filtered or unexported fields
}

MockDatacenterConfigMockRecorder is the mock recorder for MockDatacenterConfig.

func (*MockDatacenterConfigMockRecorder) ClearPauseAnnotation

func (mr *MockDatacenterConfigMockRecorder) ClearPauseAnnotation() *gomock.Call

ClearPauseAnnotation indicates an expected call of ClearPauseAnnotation.

func (*MockDatacenterConfigMockRecorder) Kind

Kind indicates an expected call of Kind.

func (*MockDatacenterConfigMockRecorder) Marshallable added in v0.6.0

func (mr *MockDatacenterConfigMockRecorder) Marshallable() *gomock.Call

Marshallable indicates an expected call of Marshallable.

func (*MockDatacenterConfigMockRecorder) PauseReconcile

func (mr *MockDatacenterConfigMockRecorder) PauseReconcile() *gomock.Call

PauseReconcile indicates an expected call of PauseReconcile.

type MockMachineConfig

type MockMachineConfig struct {
	// contains filtered or unexported fields
}

MockMachineConfig is a mock of MachineConfig interface.

func NewMockMachineConfig

func NewMockMachineConfig(ctrl *gomock.Controller) *MockMachineConfig

NewMockMachineConfig creates a new mock instance.

func (*MockMachineConfig) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockMachineConfig) GetName added in v0.6.0

func (m *MockMachineConfig) GetName() string

GetName mocks base method.

func (*MockMachineConfig) GetNamespace added in v0.6.0

func (m *MockMachineConfig) GetNamespace() string

GetNamespace mocks base method.

func (*MockMachineConfig) Marshallable added in v0.6.0

func (m *MockMachineConfig) Marshallable() v1alpha1.Marshallable

Marshallable mocks base method.

func (*MockMachineConfig) OSFamily added in v0.6.0

func (m *MockMachineConfig) OSFamily() v1alpha1.OSFamily

OSFamily mocks base method.

type MockMachineConfigMockRecorder

type MockMachineConfigMockRecorder struct {
	// contains filtered or unexported fields
}

MockMachineConfigMockRecorder is the mock recorder for MockMachineConfig.

func (*MockMachineConfigMockRecorder) GetName added in v0.6.0

func (mr *MockMachineConfigMockRecorder) GetName() *gomock.Call

GetName indicates an expected call of GetName.

func (*MockMachineConfigMockRecorder) GetNamespace added in v0.6.0

func (mr *MockMachineConfigMockRecorder) GetNamespace() *gomock.Call

GetNamespace indicates an expected call of GetNamespace.

func (*MockMachineConfigMockRecorder) Marshallable added in v0.6.0

func (mr *MockMachineConfigMockRecorder) Marshallable() *gomock.Call

Marshallable indicates an expected call of Marshallable.

func (*MockMachineConfigMockRecorder) OSFamily added in v0.6.0

func (mr *MockMachineConfigMockRecorder) OSFamily() *gomock.Call

OSFamily indicates an expected call of OSFamily.

type MockProvider

type MockProvider struct {
	// contains filtered or unexported fields
}

MockProvider is a mock of Provider interface.

func NewMockProvider

func NewMockProvider(ctrl *gomock.Controller) *MockProvider

NewMockProvider creates a new mock instance.

func (*MockProvider) BootstrapClusterOpts

func (m *MockProvider) BootstrapClusterOpts(arg0 *cluster.Spec) ([]bootstrapper.BootstrapClusterOption, error)

BootstrapClusterOpts mocks base method.

func (*MockProvider) ChangeDiff added in v0.6.0

ChangeDiff mocks base method.

func (*MockProvider) DatacenterConfig

func (m *MockProvider) DatacenterConfig(arg0 *cluster.Spec) providers.DatacenterConfig

DatacenterConfig mocks base method.

func (*MockProvider) DatacenterResourceType

func (m *MockProvider) DatacenterResourceType() string

DatacenterResourceType mocks base method.

func (*MockProvider) DeleteResources added in v0.6.0

func (m *MockProvider) DeleteResources(arg0 context.Context, arg1 *cluster.Spec) error

DeleteResources mocks base method.

func (*MockProvider) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockProvider) EnvMap

func (m *MockProvider) EnvMap(arg0 *cluster.ManagementComponents, arg1 *cluster.Spec) (map[string]string, error)

EnvMap mocks base method.

func (*MockProvider) GenerateCAPISpecForCreate added in v0.6.0

func (m *MockProvider) GenerateCAPISpecForCreate(arg0 context.Context, arg1 *types.Cluster, arg2 *cluster.Spec) ([]byte, []byte, error)

GenerateCAPISpecForCreate mocks base method.

func (*MockProvider) GenerateCAPISpecForUpgrade added in v0.6.0

func (m *MockProvider) GenerateCAPISpecForUpgrade(arg0 context.Context, arg1, arg2 *types.Cluster, arg3, arg4 *cluster.Spec) ([]byte, []byte, error)

GenerateCAPISpecForUpgrade mocks base method.

func (*MockProvider) GetDeployments

func (m *MockProvider) GetDeployments() map[string][]string

GetDeployments mocks base method.

func (*MockProvider) GetInfrastructureBundle

func (m *MockProvider) GetInfrastructureBundle(arg0 *cluster.ManagementComponents) *types.InfrastructureBundle

GetInfrastructureBundle mocks base method.

func (*MockProvider) InstallCustomProviderComponents added in v0.9.0

func (m *MockProvider) InstallCustomProviderComponents(arg0 context.Context, arg1 string) error

InstallCustomProviderComponents mocks base method.

func (*MockProvider) MachineConfigs

func (m *MockProvider) MachineConfigs(arg0 *cluster.Spec) []providers.MachineConfig

MachineConfigs mocks base method.

func (*MockProvider) MachineResourceType

func (m *MockProvider) MachineResourceType() string

MachineResourceType mocks base method.

func (*MockProvider) Name

func (m *MockProvider) Name() string

Name mocks base method.

func (*MockProvider) PostBootstrapDeleteForUpgrade added in v0.11.0

func (m *MockProvider) PostBootstrapDeleteForUpgrade(arg0 context.Context, arg1 *types.Cluster) error

PostBootstrapDeleteForUpgrade mocks base method.

func (*MockProvider) PostBootstrapSetup added in v0.8.0

func (m *MockProvider) PostBootstrapSetup(arg0 context.Context, arg1 *v1alpha1.Cluster, arg2 *types.Cluster) error

PostBootstrapSetup mocks base method.

func (*MockProvider) PostBootstrapSetupUpgrade added in v0.9.2

func (m *MockProvider) PostBootstrapSetupUpgrade(arg0 context.Context, arg1 *v1alpha1.Cluster, arg2 *types.Cluster) error

PostBootstrapSetupUpgrade mocks base method.

func (*MockProvider) PostClusterDeleteValidate added in v0.9.0

func (m *MockProvider) PostClusterDeleteValidate(arg0 context.Context, arg1 *types.Cluster) error

PostClusterDeleteValidate mocks base method.

func (*MockProvider) PostMoveManagementToBootstrap added in v0.12.0

func (m *MockProvider) PostMoveManagementToBootstrap(arg0 context.Context, arg1 *types.Cluster) error

PostMoveManagementToBootstrap mocks base method.

func (*MockProvider) PostWorkloadInit added in v0.9.2

func (m *MockProvider) PostWorkloadInit(arg0 context.Context, arg1 *types.Cluster, arg2 *cluster.Spec) error

PostWorkloadInit mocks base method.

func (*MockProvider) PreCAPIInstallOnBootstrap added in v0.9.0

func (m *MockProvider) PreCAPIInstallOnBootstrap(arg0 context.Context, arg1 *types.Cluster, arg2 *cluster.Spec) error

PreCAPIInstallOnBootstrap mocks base method.

func (*MockProvider) PreCoreComponentsUpgrade added in v0.15.0

func (m *MockProvider) PreCoreComponentsUpgrade(arg0 context.Context, arg1 *types.Cluster, arg2 *cluster.ManagementComponents, arg3 *cluster.Spec) error

PreCoreComponentsUpgrade mocks base method.

func (*MockProvider) RunPostControlPlaneUpgrade added in v0.6.1

func (m *MockProvider) RunPostControlPlaneUpgrade(arg0 context.Context, arg1, arg2 *cluster.Spec, arg3, arg4 *types.Cluster) error

RunPostControlPlaneUpgrade mocks base method.

func (*MockProvider) SetupAndValidateCreateCluster

func (m *MockProvider) SetupAndValidateCreateCluster(arg0 context.Context, arg1 *cluster.Spec) error

SetupAndValidateCreateCluster mocks base method.

func (*MockProvider) SetupAndValidateDeleteCluster

func (m *MockProvider) SetupAndValidateDeleteCluster(arg0 context.Context, arg1 *types.Cluster, arg2 *cluster.Spec) error

SetupAndValidateDeleteCluster mocks base method.

func (*MockProvider) SetupAndValidateUpgradeCluster

func (m *MockProvider) SetupAndValidateUpgradeCluster(arg0 context.Context, arg1 *types.Cluster, arg2, arg3 *cluster.Spec) error

SetupAndValidateUpgradeCluster mocks base method.

func (*MockProvider) SetupAndValidateUpgradeManagementComponents added in v0.19.0

func (m *MockProvider) SetupAndValidateUpgradeManagementComponents(arg0 context.Context, arg1 *cluster.Spec) error

SetupAndValidateUpgradeManagementComponents mocks base method.

func (*MockProvider) UpdateKubeConfig

func (m *MockProvider) UpdateKubeConfig(arg0 *[]byte, arg1 string) error

UpdateKubeConfig mocks base method.

func (*MockProvider) UpdateSecrets

func (m *MockProvider) UpdateSecrets(arg0 context.Context, arg1 *types.Cluster, arg2 *cluster.Spec) error

UpdateSecrets mocks base method.

func (*MockProvider) UpgradeNeeded added in v0.6.0

func (m *MockProvider) UpgradeNeeded(arg0 context.Context, arg1, arg2 *cluster.Spec, arg3 *types.Cluster) (bool, error)

UpgradeNeeded mocks base method.

func (*MockProvider) ValidateNewSpec

func (m *MockProvider) ValidateNewSpec(arg0 context.Context, arg1 *types.Cluster, arg2 *cluster.Spec) error

ValidateNewSpec mocks base method.

func (*MockProvider) Version

func (m *MockProvider) Version(arg0 *cluster.ManagementComponents) string

Version mocks base method.

type MockProviderMockRecorder

type MockProviderMockRecorder struct {
	// contains filtered or unexported fields
}

MockProviderMockRecorder is the mock recorder for MockProvider.

func (*MockProviderMockRecorder) BootstrapClusterOpts

func (mr *MockProviderMockRecorder) BootstrapClusterOpts(arg0 interface{}) *gomock.Call

BootstrapClusterOpts indicates an expected call of BootstrapClusterOpts.

func (*MockProviderMockRecorder) ChangeDiff added in v0.6.0

func (mr *MockProviderMockRecorder) ChangeDiff(arg0, arg1 interface{}) *gomock.Call

ChangeDiff indicates an expected call of ChangeDiff.

func (*MockProviderMockRecorder) DatacenterConfig

func (mr *MockProviderMockRecorder) DatacenterConfig(arg0 interface{}) *gomock.Call

DatacenterConfig indicates an expected call of DatacenterConfig.

func (*MockProviderMockRecorder) DatacenterResourceType

func (mr *MockProviderMockRecorder) DatacenterResourceType() *gomock.Call

DatacenterResourceType indicates an expected call of DatacenterResourceType.

func (*MockProviderMockRecorder) DeleteResources added in v0.6.0

func (mr *MockProviderMockRecorder) DeleteResources(arg0, arg1 interface{}) *gomock.Call

DeleteResources indicates an expected call of DeleteResources.

func (*MockProviderMockRecorder) EnvMap

func (mr *MockProviderMockRecorder) EnvMap(arg0, arg1 interface{}) *gomock.Call

EnvMap indicates an expected call of EnvMap.

func (*MockProviderMockRecorder) GenerateCAPISpecForCreate added in v0.6.0

func (mr *MockProviderMockRecorder) GenerateCAPISpecForCreate(arg0, arg1, arg2 interface{}) *gomock.Call

GenerateCAPISpecForCreate indicates an expected call of GenerateCAPISpecForCreate.

func (*MockProviderMockRecorder) GenerateCAPISpecForUpgrade added in v0.6.0

func (mr *MockProviderMockRecorder) GenerateCAPISpecForUpgrade(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

GenerateCAPISpecForUpgrade indicates an expected call of GenerateCAPISpecForUpgrade.

func (*MockProviderMockRecorder) GetDeployments

func (mr *MockProviderMockRecorder) GetDeployments() *gomock.Call

GetDeployments indicates an expected call of GetDeployments.

func (*MockProviderMockRecorder) GetInfrastructureBundle

func (mr *MockProviderMockRecorder) GetInfrastructureBundle(arg0 interface{}) *gomock.Call

GetInfrastructureBundle indicates an expected call of GetInfrastructureBundle.

func (*MockProviderMockRecorder) InstallCustomProviderComponents added in v0.9.0

func (mr *MockProviderMockRecorder) InstallCustomProviderComponents(arg0, arg1 interface{}) *gomock.Call

InstallCustomProviderComponents indicates an expected call of InstallCustomProviderComponents.

func (*MockProviderMockRecorder) MachineConfigs

func (mr *MockProviderMockRecorder) MachineConfigs(arg0 interface{}) *gomock.Call

MachineConfigs indicates an expected call of MachineConfigs.

func (*MockProviderMockRecorder) MachineResourceType

func (mr *MockProviderMockRecorder) MachineResourceType() *gomock.Call

MachineResourceType indicates an expected call of MachineResourceType.

func (*MockProviderMockRecorder) Name

func (mr *MockProviderMockRecorder) Name() *gomock.Call

Name indicates an expected call of Name.

func (*MockProviderMockRecorder) PostBootstrapDeleteForUpgrade added in v0.11.0

func (mr *MockProviderMockRecorder) PostBootstrapDeleteForUpgrade(arg0, arg1 interface{}) *gomock.Call

PostBootstrapDeleteForUpgrade indicates an expected call of PostBootstrapDeleteForUpgrade.

func (*MockProviderMockRecorder) PostBootstrapSetup added in v0.8.0

func (mr *MockProviderMockRecorder) PostBootstrapSetup(arg0, arg1, arg2 interface{}) *gomock.Call

PostBootstrapSetup indicates an expected call of PostBootstrapSetup.

func (*MockProviderMockRecorder) PostBootstrapSetupUpgrade added in v0.9.2

func (mr *MockProviderMockRecorder) PostBootstrapSetupUpgrade(arg0, arg1, arg2 interface{}) *gomock.Call

PostBootstrapSetupUpgrade indicates an expected call of PostBootstrapSetupUpgrade.

func (*MockProviderMockRecorder) PostClusterDeleteValidate added in v0.9.0

func (mr *MockProviderMockRecorder) PostClusterDeleteValidate(arg0, arg1 interface{}) *gomock.Call

PostClusterDeleteValidate indicates an expected call of PostClusterDeleteValidate.

func (*MockProviderMockRecorder) PostMoveManagementToBootstrap added in v0.12.0

func (mr *MockProviderMockRecorder) PostMoveManagementToBootstrap(arg0, arg1 interface{}) *gomock.Call

PostMoveManagementToBootstrap indicates an expected call of PostMoveManagementToBootstrap.

func (*MockProviderMockRecorder) PostWorkloadInit added in v0.9.2

func (mr *MockProviderMockRecorder) PostWorkloadInit(arg0, arg1, arg2 interface{}) *gomock.Call

PostWorkloadInit indicates an expected call of PostWorkloadInit.

func (*MockProviderMockRecorder) PreCAPIInstallOnBootstrap added in v0.9.0

func (mr *MockProviderMockRecorder) PreCAPIInstallOnBootstrap(arg0, arg1, arg2 interface{}) *gomock.Call

PreCAPIInstallOnBootstrap indicates an expected call of PreCAPIInstallOnBootstrap.

func (*MockProviderMockRecorder) PreCoreComponentsUpgrade added in v0.15.0

func (mr *MockProviderMockRecorder) PreCoreComponentsUpgrade(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

PreCoreComponentsUpgrade indicates an expected call of PreCoreComponentsUpgrade.

func (*MockProviderMockRecorder) RunPostControlPlaneUpgrade added in v0.6.1

func (mr *MockProviderMockRecorder) RunPostControlPlaneUpgrade(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

RunPostControlPlaneUpgrade indicates an expected call of RunPostControlPlaneUpgrade.

func (*MockProviderMockRecorder) SetupAndValidateCreateCluster

func (mr *MockProviderMockRecorder) SetupAndValidateCreateCluster(arg0, arg1 interface{}) *gomock.Call

SetupAndValidateCreateCluster indicates an expected call of SetupAndValidateCreateCluster.

func (*MockProviderMockRecorder) SetupAndValidateDeleteCluster

func (mr *MockProviderMockRecorder) SetupAndValidateDeleteCluster(arg0, arg1, arg2 interface{}) *gomock.Call

SetupAndValidateDeleteCluster indicates an expected call of SetupAndValidateDeleteCluster.

func (*MockProviderMockRecorder) SetupAndValidateUpgradeCluster

func (mr *MockProviderMockRecorder) SetupAndValidateUpgradeCluster(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

SetupAndValidateUpgradeCluster indicates an expected call of SetupAndValidateUpgradeCluster.

func (*MockProviderMockRecorder) SetupAndValidateUpgradeManagementComponents added in v0.19.0

func (mr *MockProviderMockRecorder) SetupAndValidateUpgradeManagementComponents(arg0, arg1 interface{}) *gomock.Call

SetupAndValidateUpgradeManagementComponents indicates an expected call of SetupAndValidateUpgradeManagementComponents.

func (*MockProviderMockRecorder) UpdateKubeConfig

func (mr *MockProviderMockRecorder) UpdateKubeConfig(arg0, arg1 interface{}) *gomock.Call

UpdateKubeConfig indicates an expected call of UpdateKubeConfig.

func (*MockProviderMockRecorder) UpdateSecrets

func (mr *MockProviderMockRecorder) UpdateSecrets(arg0, arg1, arg2 interface{}) *gomock.Call

UpdateSecrets indicates an expected call of UpdateSecrets.

func (*MockProviderMockRecorder) UpgradeNeeded added in v0.6.0

func (mr *MockProviderMockRecorder) UpgradeNeeded(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

UpgradeNeeded indicates an expected call of UpgradeNeeded.

func (*MockProviderMockRecorder) ValidateNewSpec

func (mr *MockProviderMockRecorder) ValidateNewSpec(arg0, arg1, arg2 interface{}) *gomock.Call

ValidateNewSpec indicates an expected call of ValidateNewSpec.

func (*MockProviderMockRecorder) Version

func (mr *MockProviderMockRecorder) Version(arg0 interface{}) *gomock.Call

Version indicates an expected call of Version.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL