mocks

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2021 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 MockClusterResourceSetManager added in v0.6.0

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

MockClusterResourceSetManager is a mock of ClusterResourceSetManager interface.

func NewMockClusterResourceSetManager added in v0.6.0

func NewMockClusterResourceSetManager(ctrl *gomock.Controller) *MockClusterResourceSetManager

NewMockClusterResourceSetManager creates a new mock instance.

func (*MockClusterResourceSetManager) EXPECT added in v0.6.0

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

func (*MockClusterResourceSetManager) ForceUpdate added in v0.6.0

func (m *MockClusterResourceSetManager) ForceUpdate(arg0 context.Context, arg1, arg2 string, arg3, arg4 *types.Cluster) error

ForceUpdate mocks base method.

type MockClusterResourceSetManagerMockRecorder added in v0.6.0

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

MockClusterResourceSetManagerMockRecorder is the mock recorder for MockClusterResourceSetManager.

func (*MockClusterResourceSetManagerMockRecorder) ForceUpdate added in v0.6.0

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

ForceUpdate indicates an expected call of ForceUpdate.

type MockProviderGovcClient

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

MockProviderGovcClient is a mock of ProviderGovcClient interface.

func NewMockProviderGovcClient

func NewMockProviderGovcClient(ctrl *gomock.Controller) *MockProviderGovcClient

NewMockProviderGovcClient creates a new mock instance.

func (*MockProviderGovcClient) AddTag

func (m *MockProviderGovcClient) AddTag(arg0 context.Context, arg1, arg2 string) error

AddTag mocks base method.

func (*MockProviderGovcClient) CreateCategoryForVM

func (m *MockProviderGovcClient) CreateCategoryForVM(arg0 context.Context, arg1 string) error

CreateCategoryForVM mocks base method.

func (*MockProviderGovcClient) CreateLibrary

func (m *MockProviderGovcClient) CreateLibrary(arg0 context.Context, arg1, arg2 string) error

CreateLibrary mocks base method.

func (*MockProviderGovcClient) CreateTag

func (m *MockProviderGovcClient) CreateTag(arg0 context.Context, arg1, arg2 string) error

CreateTag mocks base method.

func (*MockProviderGovcClient) DeleteLibraryElement added in v0.6.0

func (m *MockProviderGovcClient) DeleteLibraryElement(arg0 context.Context, arg1 string) error

DeleteLibraryElement mocks base method.

func (*MockProviderGovcClient) DeployTemplateFromLibrary

func (m *MockProviderGovcClient) DeployTemplateFromLibrary(arg0 context.Context, arg1, arg2, arg3, arg4, arg5 string, arg6 bool) error

DeployTemplateFromLibrary mocks base method.

func (*MockProviderGovcClient) EXPECT

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

func (*MockProviderGovcClient) GetLibraryElementContentVersion added in v0.6.0

func (m *MockProviderGovcClient) GetLibraryElementContentVersion(arg0 context.Context, arg1 string) (string, error)

GetLibraryElementContentVersion mocks base method.

func (*MockProviderGovcClient) GetTags

func (m *MockProviderGovcClient) GetTags(arg0 context.Context, arg1 string) ([]string, error)

GetTags mocks base method.

func (*MockProviderGovcClient) GetWorkloadAvailableSpace

func (m *MockProviderGovcClient) GetWorkloadAvailableSpace(arg0 context.Context, arg1 *v1alpha1.VSphereMachineConfig) (float64, error)

GetWorkloadAvailableSpace mocks base method.

func (*MockProviderGovcClient) ImportTemplate

func (m *MockProviderGovcClient) ImportTemplate(arg0 context.Context, arg1, arg2, arg3 string) error

ImportTemplate mocks base method.

func (*MockProviderGovcClient) LibraryElementExists

func (m *MockProviderGovcClient) LibraryElementExists(arg0 context.Context, arg1 string) (bool, error)

LibraryElementExists mocks base method.

func (*MockProviderGovcClient) ListCategories

func (m *MockProviderGovcClient) ListCategories(arg0 context.Context) ([]string, error)

ListCategories mocks base method.

func (*MockProviderGovcClient) ListTags

func (m *MockProviderGovcClient) ListTags(arg0 context.Context) ([]string, error)

ListTags mocks base method.

func (*MockProviderGovcClient) SearchTemplate

func (m *MockProviderGovcClient) SearchTemplate(arg0 context.Context, arg1 string, arg2 *v1alpha1.VSphereMachineConfig) (string, error)

SearchTemplate mocks base method.

func (*MockProviderGovcClient) TemplateHasSnapshot

func (m *MockProviderGovcClient) TemplateHasSnapshot(arg0 context.Context, arg1 string) (bool, error)

TemplateHasSnapshot mocks base method.

func (*MockProviderGovcClient) ValidateVCenterSetup

func (m *MockProviderGovcClient) ValidateVCenterSetup(arg0 context.Context, arg1 *v1alpha1.VSphereDatacenterConfig, arg2 *bool) error

ValidateVCenterSetup mocks base method.

func (*MockProviderGovcClient) ValidateVCenterSetupMachineConfig

func (m *MockProviderGovcClient) ValidateVCenterSetupMachineConfig(arg0 context.Context, arg1 *v1alpha1.VSphereDatacenterConfig, arg2 *v1alpha1.VSphereMachineConfig, arg3 *bool) error

ValidateVCenterSetupMachineConfig mocks base method.

type MockProviderGovcClientMockRecorder

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

MockProviderGovcClientMockRecorder is the mock recorder for MockProviderGovcClient.

func (*MockProviderGovcClientMockRecorder) AddTag

func (mr *MockProviderGovcClientMockRecorder) AddTag(arg0, arg1, arg2 interface{}) *gomock.Call

AddTag indicates an expected call of AddTag.

func (*MockProviderGovcClientMockRecorder) CreateCategoryForVM

func (mr *MockProviderGovcClientMockRecorder) CreateCategoryForVM(arg0, arg1 interface{}) *gomock.Call

CreateCategoryForVM indicates an expected call of CreateCategoryForVM.

func (*MockProviderGovcClientMockRecorder) CreateLibrary

func (mr *MockProviderGovcClientMockRecorder) CreateLibrary(arg0, arg1, arg2 interface{}) *gomock.Call

CreateLibrary indicates an expected call of CreateLibrary.

func (*MockProviderGovcClientMockRecorder) CreateTag

func (mr *MockProviderGovcClientMockRecorder) CreateTag(arg0, arg1, arg2 interface{}) *gomock.Call

CreateTag indicates an expected call of CreateTag.

func (*MockProviderGovcClientMockRecorder) DeleteLibraryElement added in v0.6.0

func (mr *MockProviderGovcClientMockRecorder) DeleteLibraryElement(arg0, arg1 interface{}) *gomock.Call

DeleteLibraryElement indicates an expected call of DeleteLibraryElement.

func (*MockProviderGovcClientMockRecorder) DeployTemplateFromLibrary

func (mr *MockProviderGovcClientMockRecorder) DeployTemplateFromLibrary(arg0, arg1, arg2, arg3, arg4, arg5, arg6 interface{}) *gomock.Call

DeployTemplateFromLibrary indicates an expected call of DeployTemplateFromLibrary.

func (*MockProviderGovcClientMockRecorder) GetLibraryElementContentVersion added in v0.6.0

func (mr *MockProviderGovcClientMockRecorder) GetLibraryElementContentVersion(arg0, arg1 interface{}) *gomock.Call

GetLibraryElementContentVersion indicates an expected call of GetLibraryElementContentVersion.

func (*MockProviderGovcClientMockRecorder) GetTags

func (mr *MockProviderGovcClientMockRecorder) GetTags(arg0, arg1 interface{}) *gomock.Call

GetTags indicates an expected call of GetTags.

func (*MockProviderGovcClientMockRecorder) GetWorkloadAvailableSpace

func (mr *MockProviderGovcClientMockRecorder) GetWorkloadAvailableSpace(arg0, arg1 interface{}) *gomock.Call

GetWorkloadAvailableSpace indicates an expected call of GetWorkloadAvailableSpace.

func (*MockProviderGovcClientMockRecorder) ImportTemplate

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

ImportTemplate indicates an expected call of ImportTemplate.

func (*MockProviderGovcClientMockRecorder) LibraryElementExists

func (mr *MockProviderGovcClientMockRecorder) LibraryElementExists(arg0, arg1 interface{}) *gomock.Call

LibraryElementExists indicates an expected call of LibraryElementExists.

func (*MockProviderGovcClientMockRecorder) ListCategories

func (mr *MockProviderGovcClientMockRecorder) ListCategories(arg0 interface{}) *gomock.Call

ListCategories indicates an expected call of ListCategories.

func (*MockProviderGovcClientMockRecorder) ListTags

func (mr *MockProviderGovcClientMockRecorder) ListTags(arg0 interface{}) *gomock.Call

ListTags indicates an expected call of ListTags.

func (*MockProviderGovcClientMockRecorder) SearchTemplate

func (mr *MockProviderGovcClientMockRecorder) SearchTemplate(arg0, arg1, arg2 interface{}) *gomock.Call

SearchTemplate indicates an expected call of SearchTemplate.

func (*MockProviderGovcClientMockRecorder) TemplateHasSnapshot

func (mr *MockProviderGovcClientMockRecorder) TemplateHasSnapshot(arg0, arg1 interface{}) *gomock.Call

TemplateHasSnapshot indicates an expected call of TemplateHasSnapshot.

func (*MockProviderGovcClientMockRecorder) ValidateVCenterSetup

func (mr *MockProviderGovcClientMockRecorder) ValidateVCenterSetup(arg0, arg1, arg2 interface{}) *gomock.Call

ValidateVCenterSetup indicates an expected call of ValidateVCenterSetup.

func (*MockProviderGovcClientMockRecorder) ValidateVCenterSetupMachineConfig

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

ValidateVCenterSetupMachineConfig indicates an expected call of ValidateVCenterSetupMachineConfig.

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) ApplyTolerationsFromTaintsToDaemonSet added in v0.6.1

func (m *MockProviderKubectlClient) ApplyTolerationsFromTaintsToDaemonSet(arg0 context.Context, arg1, arg2 []v1.Taint, arg3, arg4 string) error

ApplyTolerationsFromTaintsToDaemonSet mocks base method.

func (*MockProviderKubectlClient) CreateNamespace

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

CreateNamespace mocks base method.

func (*MockProviderKubectlClient) DeleteEksaVSphereDatacenterConfig added in v0.6.0

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

DeleteEksaVSphereDatacenterConfig mocks base method.

func (*MockProviderKubectlClient) DeleteEksaVSphereMachineConfig added in v0.6.0

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

DeleteEksaVSphereMachineConfig mocks base method.

func (*MockProviderKubectlClient) EXPECT

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

func (*MockProviderKubectlClient) GetEksaCluster

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

GetEksaCluster mocks base method.

func (*MockProviderKubectlClient) GetEksaVSphereDatacenterConfig

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

GetEksaVSphereDatacenterConfig mocks base method.

func (*MockProviderKubectlClient) GetEksaVSphereMachineConfig

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

GetEksaVSphereMachineConfig mocks base method.

func (*MockProviderKubectlClient) GetEtcdadmCluster

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

GetEtcdadmCluster mocks base method.

func (*MockProviderKubectlClient) GetKubeadmControlPlane

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

GetKubeadmControlPlane mocks base method.

func (*MockProviderKubectlClient) GetMachineDeployment

func (m *MockProviderKubectlClient) GetMachineDeployment(arg0 context.Context, arg1 *types.Cluster, arg2 string, arg3 ...executables.KubectlOpt) (*v1alpha30.MachineDeployment, error)

GetMachineDeployment mocks base method.

func (*MockProviderKubectlClient) GetSecret

func (m *MockProviderKubectlClient) GetSecret(arg0 context.Context, arg1 string, arg2 ...executables.KubectlOpt) (*v1.Secret, error)

GetSecret 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) SearchVsphereDatacenterConfig added in v0.6.0

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

SearchVsphereDatacenterConfig mocks base method.

func (*MockProviderKubectlClient) SearchVsphereMachineConfig added in v0.6.0

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

SearchVsphereMachineConfig mocks base method.

func (*MockProviderKubectlClient) SetDaemonSetImage added in v0.6.0

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

SetDaemonSetImage 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) ApplyTolerationsFromTaintsToDaemonSet added in v0.6.1

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

ApplyTolerationsFromTaintsToDaemonSet indicates an expected call of ApplyTolerationsFromTaintsToDaemonSet.

func (*MockProviderKubectlClientMockRecorder) CreateNamespace

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

CreateNamespace indicates an expected call of CreateNamespace.

func (*MockProviderKubectlClientMockRecorder) DeleteEksaVSphereDatacenterConfig added in v0.6.0

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

DeleteEksaVSphereDatacenterConfig indicates an expected call of DeleteEksaVSphereDatacenterConfig.

func (*MockProviderKubectlClientMockRecorder) DeleteEksaVSphereMachineConfig added in v0.6.0

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

DeleteEksaVSphereMachineConfig indicates an expected call of DeleteEksaVSphereMachineConfig.

func (*MockProviderKubectlClientMockRecorder) GetEksaCluster

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

GetEksaCluster indicates an expected call of GetEksaCluster.

func (*MockProviderKubectlClientMockRecorder) GetEksaVSphereDatacenterConfig

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

GetEksaVSphereDatacenterConfig indicates an expected call of GetEksaVSphereDatacenterConfig.

func (*MockProviderKubectlClientMockRecorder) GetEksaVSphereMachineConfig

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

GetEksaVSphereMachineConfig indicates an expected call of GetEksaVSphereMachineConfig.

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, arg2 interface{}, arg3 ...interface{}) *gomock.Call

GetMachineDeployment indicates an expected call of GetMachineDeployment.

func (*MockProviderKubectlClientMockRecorder) GetSecret

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

GetSecret indicates an expected call of GetSecret.

func (*MockProviderKubectlClientMockRecorder) LoadSecret

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

LoadSecret indicates an expected call of LoadSecret.

func (*MockProviderKubectlClientMockRecorder) SearchVsphereDatacenterConfig added in v0.6.0

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

SearchVsphereDatacenterConfig indicates an expected call of SearchVsphereDatacenterConfig.

func (*MockProviderKubectlClientMockRecorder) SearchVsphereMachineConfig added in v0.6.0

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

SearchVsphereMachineConfig indicates an expected call of SearchVsphereMachineConfig.

func (*MockProviderKubectlClientMockRecorder) SetDaemonSetImage added in v0.6.0

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

SetDaemonSetImage indicates an expected call of SetDaemonSetImage.

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