mocks

package
v0.25.4 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2026 License: Apache-2.0 Imports: 10 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 MockProviderCmkClient

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

MockProviderCmkClient is a mock of ProviderCmkClient interface.

func NewMockProviderCmkClient

func NewMockProviderCmkClient(ctrl *gomock.Controller) *MockProviderCmkClient

NewMockProviderCmkClient creates a new mock instance.

func (*MockProviderCmkClient) EXPECT

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

func (*MockProviderCmkClient) GetManagementApiEndpoint added in v0.11.0

func (m *MockProviderCmkClient) GetManagementApiEndpoint(profile string) (string, error)

GetManagementApiEndpoint mocks base method.

func (*MockProviderCmkClient) ValidateAccountPresent

func (m *MockProviderCmkClient) ValidateAccountPresent(ctx context.Context, profile, account, domainId string) error

ValidateAccountPresent mocks base method.

func (*MockProviderCmkClient) ValidateAffinityGroupsPresent

func (m *MockProviderCmkClient) ValidateAffinityGroupsPresent(ctx context.Context, profile, domainId, account string, affinityGroupIds []string) error

ValidateAffinityGroupsPresent mocks base method.

func (*MockProviderCmkClient) ValidateDiskOfferingPresent added in v0.9.0

func (m *MockProviderCmkClient) ValidateDiskOfferingPresent(ctx context.Context, profile, zoneId string, diskOffering v1alpha1.CloudStackResourceDiskOffering) error

ValidateDiskOfferingPresent mocks base method.

func (*MockProviderCmkClient) ValidateDomainAndGetId added in v0.11.0

func (m *MockProviderCmkClient) ValidateDomainAndGetId(ctx context.Context, profile, domain string) (string, error)

ValidateDomainAndGetId mocks base method.

func (*MockProviderCmkClient) ValidateNetworkPresent

func (m *MockProviderCmkClient) ValidateNetworkPresent(ctx context.Context, profile, domainId string, network v1alpha1.CloudStackResourceIdentifier, zoneId, account string) error

ValidateNetworkPresent mocks base method.

func (*MockProviderCmkClient) ValidateServiceOfferingPresent

func (m *MockProviderCmkClient) ValidateServiceOfferingPresent(ctx context.Context, profile, zoneId string, serviceOffering v1alpha1.CloudStackResourceIdentifier) error

ValidateServiceOfferingPresent mocks base method.

func (*MockProviderCmkClient) ValidateTemplatePresent

func (m *MockProviderCmkClient) ValidateTemplatePresent(ctx context.Context, profile, domainId, zoneId, account string, template v1alpha1.CloudStackResourceIdentifier) error

ValidateTemplatePresent mocks base method.

func (*MockProviderCmkClient) ValidateZoneAndGetId added in v0.11.0

func (m *MockProviderCmkClient) ValidateZoneAndGetId(ctx context.Context, profile string, zone v1alpha1.CloudStackZone) (string, error)

ValidateZoneAndGetId mocks base method.

type MockProviderCmkClientMockRecorder

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

MockProviderCmkClientMockRecorder is the mock recorder for MockProviderCmkClient.

func (*MockProviderCmkClientMockRecorder) GetManagementApiEndpoint added in v0.11.0

func (mr *MockProviderCmkClientMockRecorder) GetManagementApiEndpoint(profile any) *gomock.Call

GetManagementApiEndpoint indicates an expected call of GetManagementApiEndpoint.

func (*MockProviderCmkClientMockRecorder) ValidateAccountPresent

func (mr *MockProviderCmkClientMockRecorder) ValidateAccountPresent(ctx, profile, account, domainId any) *gomock.Call

ValidateAccountPresent indicates an expected call of ValidateAccountPresent.

func (*MockProviderCmkClientMockRecorder) ValidateAffinityGroupsPresent

func (mr *MockProviderCmkClientMockRecorder) ValidateAffinityGroupsPresent(ctx, profile, domainId, account, affinityGroupIds any) *gomock.Call

ValidateAffinityGroupsPresent indicates an expected call of ValidateAffinityGroupsPresent.

func (*MockProviderCmkClientMockRecorder) ValidateDiskOfferingPresent added in v0.9.0

func (mr *MockProviderCmkClientMockRecorder) ValidateDiskOfferingPresent(ctx, profile, zoneId, diskOffering any) *gomock.Call

ValidateDiskOfferingPresent indicates an expected call of ValidateDiskOfferingPresent.

func (*MockProviderCmkClientMockRecorder) ValidateDomainAndGetId added in v0.11.0

func (mr *MockProviderCmkClientMockRecorder) ValidateDomainAndGetId(ctx, profile, domain any) *gomock.Call

ValidateDomainAndGetId indicates an expected call of ValidateDomainAndGetId.

func (*MockProviderCmkClientMockRecorder) ValidateNetworkPresent

func (mr *MockProviderCmkClientMockRecorder) ValidateNetworkPresent(ctx, profile, domainId, network, zoneId, account any) *gomock.Call

ValidateNetworkPresent indicates an expected call of ValidateNetworkPresent.

func (*MockProviderCmkClientMockRecorder) ValidateServiceOfferingPresent

func (mr *MockProviderCmkClientMockRecorder) ValidateServiceOfferingPresent(ctx, profile, zoneId, serviceOffering any) *gomock.Call

ValidateServiceOfferingPresent indicates an expected call of ValidateServiceOfferingPresent.

func (*MockProviderCmkClientMockRecorder) ValidateTemplatePresent

func (mr *MockProviderCmkClientMockRecorder) ValidateTemplatePresent(ctx, profile, domainId, zoneId, account, template any) *gomock.Call

ValidateTemplatePresent indicates an expected call of ValidateTemplatePresent.

func (*MockProviderCmkClientMockRecorder) ValidateZoneAndGetId added in v0.11.0

func (mr *MockProviderCmkClientMockRecorder) ValidateZoneAndGetId(ctx, profile, zone any) *gomock.Call

ValidateZoneAndGetId indicates an expected call of ValidateZoneAndGetId.

type MockProviderKubectlClient

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

MockProviderKubectlClient is a mock of ProviderKubectlClient interface.

func NewMockProviderKubectlClient

func NewMockProviderKubectlClient(ctrl *gomock.Controller) *MockProviderKubectlClient

NewMockProviderKubectlClient creates a new mock instance.

func (*MockProviderKubectlClient) ApplyKubeSpecFromBytes

func (m *MockProviderKubectlClient) ApplyKubeSpecFromBytes(ctx context.Context, cluster *types.Cluster, data []byte) error

ApplyKubeSpecFromBytes mocks base method.

func (*MockProviderKubectlClient) CreateNamespaceIfNotPresent added in v0.11.0

func (m *MockProviderKubectlClient) CreateNamespaceIfNotPresent(ctx context.Context, kubeconfig, namespace string) error

CreateNamespaceIfNotPresent mocks base method.

func (*MockProviderKubectlClient) DeleteEksaCloudStackDatacenterConfig

func (m *MockProviderKubectlClient) DeleteEksaCloudStackDatacenterConfig(ctx context.Context, cloudstackDatacenterConfigName, kubeconfigFile, namespace string) error

DeleteEksaCloudStackDatacenterConfig mocks base method.

func (*MockProviderKubectlClient) DeleteEksaCloudStackMachineConfig

func (m *MockProviderKubectlClient) DeleteEksaCloudStackMachineConfig(ctx context.Context, cloudstackMachineConfigName, kubeconfigFile, namespace string) error

DeleteEksaCloudStackMachineConfig mocks base method.

func (*MockProviderKubectlClient) EXPECT

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

func (*MockProviderKubectlClient) GetEksaCloudStackDatacenterConfig

func (m *MockProviderKubectlClient) GetEksaCloudStackDatacenterConfig(ctx context.Context, cloudstackDatacenterConfigName, kubeconfigFile, namespace string) (*v1alpha1.CloudStackDatacenterConfig, error)

GetEksaCloudStackDatacenterConfig mocks base method.

func (*MockProviderKubectlClient) GetEksaCloudStackMachineConfig

func (m *MockProviderKubectlClient) GetEksaCloudStackMachineConfig(ctx context.Context, cloudstackMachineConfigName, kubeconfigFile, namespace string) (*v1alpha1.CloudStackMachineConfig, error)

GetEksaCloudStackMachineConfig mocks base method.

func (*MockProviderKubectlClient) GetEksaCluster

func (m *MockProviderKubectlClient) GetEksaCluster(ctx context.Context, cluster *types.Cluster, clusterName string) (*v1alpha1.Cluster, error)

GetEksaCluster mocks base method.

func (*MockProviderKubectlClient) GetEtcdadmCluster

func (m *MockProviderKubectlClient) GetEtcdadmCluster(ctx context.Context, cluster *types.Cluster, clusterName string, opts ...executables.KubectlOpt) (*v1beta1.EtcdadmCluster, error)

GetEtcdadmCluster mocks base method.

func (*MockProviderKubectlClient) GetKubeadmControlPlane

func (m *MockProviderKubectlClient) GetKubeadmControlPlane(ctx context.Context, cluster *types.Cluster, clusterName string, opts ...executables.KubectlOpt) (*v1beta2.KubeadmControlPlane, error)

GetKubeadmControlPlane mocks base method.

func (*MockProviderKubectlClient) GetMachineDeployment

func (m *MockProviderKubectlClient) GetMachineDeployment(ctx context.Context, workerNodeGroupName string, opts ...executables.KubectlOpt) (*v1beta20.MachineDeployment, error)

GetMachineDeployment mocks base method.

func (*MockProviderKubectlClient) GetSecretFromNamespace added in v0.11.0

func (m *MockProviderKubectlClient) GetSecretFromNamespace(ctx context.Context, kubeconfigFile, name, namespace string) (*v1.Secret, error)

GetSecretFromNamespace mocks base method.

func (*MockProviderKubectlClient) LoadSecret

func (m *MockProviderKubectlClient) LoadSecret(ctx context.Context, secretObject, secretObjType, secretObjectName, kubeConfFile string) error

LoadSecret mocks base method.

func (*MockProviderKubectlClient) SearchCloudStackDatacenterConfig

func (m *MockProviderKubectlClient) SearchCloudStackDatacenterConfig(ctx context.Context, name, kubeconfigFile, namespace string) ([]*v1alpha1.CloudStackDatacenterConfig, error)

SearchCloudStackDatacenterConfig mocks base method.

func (*MockProviderKubectlClient) SearchCloudStackMachineConfig

func (m *MockProviderKubectlClient) SearchCloudStackMachineConfig(ctx context.Context, name, kubeconfigFile, namespace string) ([]*v1alpha1.CloudStackMachineConfig, error)

SearchCloudStackMachineConfig mocks base method.

func (*MockProviderKubectlClient) SetEksaControllerEnvVar added in v0.9.0

func (m *MockProviderKubectlClient) SetEksaControllerEnvVar(ctx context.Context, envVar, envVarVal, kubeconfig string) error

SetEksaControllerEnvVar mocks base method.

func (*MockProviderKubectlClient) UpdateAnnotation

func (m *MockProviderKubectlClient) UpdateAnnotation(ctx context.Context, resourceType, objectName string, annotations map[string]string, opts ...executables.KubectlOpt) error

UpdateAnnotation mocks base method.

type MockProviderKubectlClientMockRecorder

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

MockProviderKubectlClientMockRecorder is the mock recorder for MockProviderKubectlClient.

func (*MockProviderKubectlClientMockRecorder) ApplyKubeSpecFromBytes

func (mr *MockProviderKubectlClientMockRecorder) ApplyKubeSpecFromBytes(ctx, cluster, data any) *gomock.Call

ApplyKubeSpecFromBytes indicates an expected call of ApplyKubeSpecFromBytes.

func (*MockProviderKubectlClientMockRecorder) CreateNamespaceIfNotPresent added in v0.11.0

func (mr *MockProviderKubectlClientMockRecorder) CreateNamespaceIfNotPresent(ctx, kubeconfig, namespace any) *gomock.Call

CreateNamespaceIfNotPresent indicates an expected call of CreateNamespaceIfNotPresent.

func (*MockProviderKubectlClientMockRecorder) DeleteEksaCloudStackDatacenterConfig

func (mr *MockProviderKubectlClientMockRecorder) DeleteEksaCloudStackDatacenterConfig(ctx, cloudstackDatacenterConfigName, kubeconfigFile, namespace any) *gomock.Call

DeleteEksaCloudStackDatacenterConfig indicates an expected call of DeleteEksaCloudStackDatacenterConfig.

func (*MockProviderKubectlClientMockRecorder) DeleteEksaCloudStackMachineConfig

func (mr *MockProviderKubectlClientMockRecorder) DeleteEksaCloudStackMachineConfig(ctx, cloudstackMachineConfigName, kubeconfigFile, namespace any) *gomock.Call

DeleteEksaCloudStackMachineConfig indicates an expected call of DeleteEksaCloudStackMachineConfig.

func (*MockProviderKubectlClientMockRecorder) GetEksaCloudStackDatacenterConfig

func (mr *MockProviderKubectlClientMockRecorder) GetEksaCloudStackDatacenterConfig(ctx, cloudstackDatacenterConfigName, kubeconfigFile, namespace any) *gomock.Call

GetEksaCloudStackDatacenterConfig indicates an expected call of GetEksaCloudStackDatacenterConfig.

func (*MockProviderKubectlClientMockRecorder) GetEksaCloudStackMachineConfig

func (mr *MockProviderKubectlClientMockRecorder) GetEksaCloudStackMachineConfig(ctx, cloudstackMachineConfigName, kubeconfigFile, namespace any) *gomock.Call

GetEksaCloudStackMachineConfig indicates an expected call of GetEksaCloudStackMachineConfig.

func (*MockProviderKubectlClientMockRecorder) GetEksaCluster

func (mr *MockProviderKubectlClientMockRecorder) GetEksaCluster(ctx, cluster, clusterName any) *gomock.Call

GetEksaCluster indicates an expected call of GetEksaCluster.

func (*MockProviderKubectlClientMockRecorder) GetEtcdadmCluster

func (mr *MockProviderKubectlClientMockRecorder) GetEtcdadmCluster(ctx, cluster, clusterName any, opts ...any) *gomock.Call

GetEtcdadmCluster indicates an expected call of GetEtcdadmCluster.

func (*MockProviderKubectlClientMockRecorder) GetKubeadmControlPlane

func (mr *MockProviderKubectlClientMockRecorder) GetKubeadmControlPlane(ctx, cluster, clusterName any, opts ...any) *gomock.Call

GetKubeadmControlPlane indicates an expected call of GetKubeadmControlPlane.

func (*MockProviderKubectlClientMockRecorder) GetMachineDeployment

func (mr *MockProviderKubectlClientMockRecorder) GetMachineDeployment(ctx, workerNodeGroupName any, opts ...any) *gomock.Call

GetMachineDeployment indicates an expected call of GetMachineDeployment.

func (*MockProviderKubectlClientMockRecorder) GetSecretFromNamespace added in v0.11.0

func (mr *MockProviderKubectlClientMockRecorder) GetSecretFromNamespace(ctx, kubeconfigFile, name, namespace any) *gomock.Call

GetSecretFromNamespace indicates an expected call of GetSecretFromNamespace.

func (*MockProviderKubectlClientMockRecorder) LoadSecret

func (mr *MockProviderKubectlClientMockRecorder) LoadSecret(ctx, secretObject, secretObjType, secretObjectName, kubeConfFile any) *gomock.Call

LoadSecret indicates an expected call of LoadSecret.

func (*MockProviderKubectlClientMockRecorder) SearchCloudStackDatacenterConfig

func (mr *MockProviderKubectlClientMockRecorder) SearchCloudStackDatacenterConfig(ctx, name, kubeconfigFile, namespace any) *gomock.Call

SearchCloudStackDatacenterConfig indicates an expected call of SearchCloudStackDatacenterConfig.

func (*MockProviderKubectlClientMockRecorder) SearchCloudStackMachineConfig

func (mr *MockProviderKubectlClientMockRecorder) SearchCloudStackMachineConfig(ctx, name, kubeconfigFile, namespace any) *gomock.Call

SearchCloudStackMachineConfig indicates an expected call of SearchCloudStackMachineConfig.

func (*MockProviderKubectlClientMockRecorder) SetEksaControllerEnvVar added in v0.9.0

func (mr *MockProviderKubectlClientMockRecorder) SetEksaControllerEnvVar(ctx, envVar, envVarVal, kubeconfig any) *gomock.Call

SetEksaControllerEnvVar indicates an expected call of SetEksaControllerEnvVar.

func (*MockProviderKubectlClientMockRecorder) UpdateAnnotation

func (mr *MockProviderKubectlClientMockRecorder) UpdateAnnotation(ctx, resourceType, objectName, annotations any, opts ...any) *gomock.Call

UpdateAnnotation indicates an expected call of UpdateAnnotation.

Jump to

Keyboard shortcuts

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