mocks

package
v0.16.3 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 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(arg0 string) (string, error)

GetManagementApiEndpoint mocks base method.

func (*MockProviderCmkClient) ValidateAccountPresent

func (m *MockProviderCmkClient) ValidateAccountPresent(arg0 context.Context, arg1, arg2, arg3 string) error

ValidateAccountPresent mocks base method.

func (*MockProviderCmkClient) ValidateAffinityGroupsPresent

func (m *MockProviderCmkClient) ValidateAffinityGroupsPresent(arg0 context.Context, arg1, arg2, arg3 string, arg4 []string) error

ValidateAffinityGroupsPresent mocks base method.

func (*MockProviderCmkClient) ValidateDiskOfferingPresent added in v0.9.0

func (m *MockProviderCmkClient) ValidateDiskOfferingPresent(arg0 context.Context, arg1, arg2 string, arg3 v1alpha1.CloudStackResourceDiskOffering) error

ValidateDiskOfferingPresent mocks base method.

func (*MockProviderCmkClient) ValidateDomainAndGetId added in v0.11.0

func (m *MockProviderCmkClient) ValidateDomainAndGetId(arg0 context.Context, arg1, arg2 string) (string, error)

ValidateDomainAndGetId mocks base method.

func (*MockProviderCmkClient) ValidateNetworkPresent

func (m *MockProviderCmkClient) ValidateNetworkPresent(arg0 context.Context, arg1, arg2 string, arg3 v1alpha1.CloudStackResourceIdentifier, arg4, arg5 string) error

ValidateNetworkPresent mocks base method.

func (*MockProviderCmkClient) ValidateServiceOfferingPresent

func (m *MockProviderCmkClient) ValidateServiceOfferingPresent(arg0 context.Context, arg1, arg2 string, arg3 v1alpha1.CloudStackResourceIdentifier) error

ValidateServiceOfferingPresent mocks base method.

func (*MockProviderCmkClient) ValidateTemplatePresent

func (m *MockProviderCmkClient) ValidateTemplatePresent(arg0 context.Context, arg1, arg2, arg3, arg4 string, arg5 v1alpha1.CloudStackResourceIdentifier) error

ValidateTemplatePresent mocks base method.

func (*MockProviderCmkClient) ValidateZoneAndGetId added in v0.11.0

func (m *MockProviderCmkClient) ValidateZoneAndGetId(arg0 context.Context, arg1 string, arg2 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(arg0 interface{}) *gomock.Call

GetManagementApiEndpoint indicates an expected call of GetManagementApiEndpoint.

func (*MockProviderCmkClientMockRecorder) ValidateAccountPresent

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

ValidateAccountPresent indicates an expected call of ValidateAccountPresent.

func (*MockProviderCmkClientMockRecorder) ValidateAffinityGroupsPresent

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

ValidateAffinityGroupsPresent indicates an expected call of ValidateAffinityGroupsPresent.

func (*MockProviderCmkClientMockRecorder) ValidateDiskOfferingPresent added in v0.9.0

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

ValidateDiskOfferingPresent indicates an expected call of ValidateDiskOfferingPresent.

func (*MockProviderCmkClientMockRecorder) ValidateDomainAndGetId added in v0.11.0

func (mr *MockProviderCmkClientMockRecorder) ValidateDomainAndGetId(arg0, arg1, arg2 interface{}) *gomock.Call

ValidateDomainAndGetId indicates an expected call of ValidateDomainAndGetId.

func (*MockProviderCmkClientMockRecorder) ValidateNetworkPresent

func (mr *MockProviderCmkClientMockRecorder) ValidateNetworkPresent(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call

ValidateNetworkPresent indicates an expected call of ValidateNetworkPresent.

func (*MockProviderCmkClientMockRecorder) ValidateServiceOfferingPresent

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

ValidateServiceOfferingPresent indicates an expected call of ValidateServiceOfferingPresent.

func (*MockProviderCmkClientMockRecorder) ValidateTemplatePresent

func (mr *MockProviderCmkClientMockRecorder) ValidateTemplatePresent(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call

ValidateTemplatePresent indicates an expected call of ValidateTemplatePresent.

func (*MockProviderCmkClientMockRecorder) ValidateZoneAndGetId added in v0.11.0

func (mr *MockProviderCmkClientMockRecorder) ValidateZoneAndGetId(arg0, arg1, arg2 interface{}) *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(arg0 context.Context, arg1 *types.Cluster, arg2 []byte) error

ApplyKubeSpecFromBytes mocks base method.

func (*MockProviderKubectlClient) CreateNamespaceIfNotPresent added in v0.11.0

func (m *MockProviderKubectlClient) CreateNamespaceIfNotPresent(arg0 context.Context, arg1, arg2 string) error

CreateNamespaceIfNotPresent mocks base method.

func (*MockProviderKubectlClient) DeleteEksaCloudStackDatacenterConfig

func (m *MockProviderKubectlClient) DeleteEksaCloudStackDatacenterConfig(arg0 context.Context, arg1, arg2, arg3 string) error

DeleteEksaCloudStackDatacenterConfig mocks base method.

func (*MockProviderKubectlClient) DeleteEksaCloudStackMachineConfig

func (m *MockProviderKubectlClient) DeleteEksaCloudStackMachineConfig(arg0 context.Context, arg1, arg2, arg3 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(arg0 context.Context, arg1, arg2, arg3 string) (*v1alpha1.CloudStackDatacenterConfig, error)

GetEksaCloudStackDatacenterConfig mocks base method.

func (*MockProviderKubectlClient) GetEksaCloudStackMachineConfig

func (m *MockProviderKubectlClient) GetEksaCloudStackMachineConfig(arg0 context.Context, arg1, arg2, arg3 string) (*v1alpha1.CloudStackMachineConfig, error)

GetEksaCloudStackMachineConfig mocks base method.

func (*MockProviderKubectlClient) GetEksaCluster

func (m *MockProviderKubectlClient) GetEksaCluster(arg0 context.Context, arg1 *types.Cluster, arg2 string) (*v1alpha1.Cluster, error)

GetEksaCluster mocks base method.

func (*MockProviderKubectlClient) GetEtcdadmCluster

func (m *MockProviderKubectlClient) GetEtcdadmCluster(arg0 context.Context, arg1 *types.Cluster, arg2 string, arg3 ...executables.KubectlOpt) (*v1beta1.EtcdadmCluster, error)

GetEtcdadmCluster mocks base method.

func (*MockProviderKubectlClient) GetKubeadmControlPlane

func (m *MockProviderKubectlClient) GetKubeadmControlPlane(arg0 context.Context, arg1 *types.Cluster, arg2 string, arg3 ...executables.KubectlOpt) (*v1beta11.KubeadmControlPlane, error)

GetKubeadmControlPlane mocks base method.

func (*MockProviderKubectlClient) GetMachineDeployment

func (m *MockProviderKubectlClient) GetMachineDeployment(arg0 context.Context, arg1 string, arg2 ...executables.KubectlOpt) (*v1beta10.MachineDeployment, error)

GetMachineDeployment mocks base method.

func (*MockProviderKubectlClient) GetSecretFromNamespace added in v0.11.0

func (m *MockProviderKubectlClient) GetSecretFromNamespace(arg0 context.Context, arg1, arg2, arg3 string) (*v1.Secret, error)

GetSecretFromNamespace mocks base method.

func (*MockProviderKubectlClient) LoadSecret

func (m *MockProviderKubectlClient) LoadSecret(arg0 context.Context, arg1, arg2, arg3, arg4 string) error

LoadSecret mocks base method.

func (*MockProviderKubectlClient) SearchCloudStackDatacenterConfig

func (m *MockProviderKubectlClient) SearchCloudStackDatacenterConfig(arg0 context.Context, arg1, arg2, arg3 string) ([]*v1alpha1.CloudStackDatacenterConfig, error)

SearchCloudStackDatacenterConfig mocks base method.

func (*MockProviderKubectlClient) SearchCloudStackMachineConfig

func (m *MockProviderKubectlClient) SearchCloudStackMachineConfig(arg0 context.Context, arg1, arg2, arg3 string) ([]*v1alpha1.CloudStackMachineConfig, error)

SearchCloudStackMachineConfig mocks base method.

func (*MockProviderKubectlClient) SetEksaControllerEnvVar added in v0.9.0

func (m *MockProviderKubectlClient) SetEksaControllerEnvVar(arg0 context.Context, arg1, arg2, arg3 string) error

SetEksaControllerEnvVar mocks base method.

func (*MockProviderKubectlClient) UpdateAnnotation

func (m *MockProviderKubectlClient) UpdateAnnotation(arg0 context.Context, arg1, arg2 string, arg3 map[string]string, arg4 ...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(arg0, arg1, arg2 interface{}) *gomock.Call

ApplyKubeSpecFromBytes indicates an expected call of ApplyKubeSpecFromBytes.

func (*MockProviderKubectlClientMockRecorder) CreateNamespaceIfNotPresent added in v0.11.0

func (mr *MockProviderKubectlClientMockRecorder) CreateNamespaceIfNotPresent(arg0, arg1, arg2 interface{}) *gomock.Call

CreateNamespaceIfNotPresent indicates an expected call of CreateNamespaceIfNotPresent.

func (*MockProviderKubectlClientMockRecorder) DeleteEksaCloudStackDatacenterConfig

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

DeleteEksaCloudStackDatacenterConfig indicates an expected call of DeleteEksaCloudStackDatacenterConfig.

func (*MockProviderKubectlClientMockRecorder) DeleteEksaCloudStackMachineConfig

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

DeleteEksaCloudStackMachineConfig indicates an expected call of DeleteEksaCloudStackMachineConfig.

func (*MockProviderKubectlClientMockRecorder) GetEksaCloudStackDatacenterConfig

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

GetEksaCloudStackDatacenterConfig indicates an expected call of GetEksaCloudStackDatacenterConfig.

func (*MockProviderKubectlClientMockRecorder) GetEksaCloudStackMachineConfig

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

GetEksaCloudStackMachineConfig indicates an expected call of GetEksaCloudStackMachineConfig.

func (*MockProviderKubectlClientMockRecorder) GetEksaCluster

func (mr *MockProviderKubectlClientMockRecorder) GetEksaCluster(arg0, arg1, arg2 interface{}) *gomock.Call

GetEksaCluster indicates an expected call of GetEksaCluster.

func (*MockProviderKubectlClientMockRecorder) GetEtcdadmCluster

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

GetEtcdadmCluster indicates an expected call of GetEtcdadmCluster.

func (*MockProviderKubectlClientMockRecorder) GetKubeadmControlPlane

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

GetKubeadmControlPlane indicates an expected call of GetKubeadmControlPlane.

func (*MockProviderKubectlClientMockRecorder) GetMachineDeployment

func (mr *MockProviderKubectlClientMockRecorder) GetMachineDeployment(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

GetMachineDeployment indicates an expected call of GetMachineDeployment.

func (*MockProviderKubectlClientMockRecorder) GetSecretFromNamespace added in v0.11.0

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

GetSecretFromNamespace indicates an expected call of GetSecretFromNamespace.

func (*MockProviderKubectlClientMockRecorder) LoadSecret

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

LoadSecret indicates an expected call of LoadSecret.

func (*MockProviderKubectlClientMockRecorder) SearchCloudStackDatacenterConfig

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

SearchCloudStackDatacenterConfig indicates an expected call of SearchCloudStackDatacenterConfig.

func (*MockProviderKubectlClientMockRecorder) SearchCloudStackMachineConfig

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

SearchCloudStackMachineConfig indicates an expected call of SearchCloudStackMachineConfig.

func (*MockProviderKubectlClientMockRecorder) SetEksaControllerEnvVar added in v0.9.0

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

SetEksaControllerEnvVar indicates an expected call of SetEksaControllerEnvVar.

func (*MockProviderKubectlClientMockRecorder) UpdateAnnotation

func (mr *MockProviderKubectlClientMockRecorder) UpdateAnnotation(arg0, arg1, arg2, arg3 interface{}, arg4 ...interface{}) *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