mocks

package
v0.19.5 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

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 MockClient

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

MockClient is a mock of Client interface.

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance.

func (*MockClient) EXPECT

func (m *MockClient) EXPECT() *MockClientMockRecorder

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

func (*MockClient) GetCategoryKey added in v0.17.0

func (m *MockClient) GetCategoryKey(ctx context.Context, name string) (*v3.CategoryKeyStatus, error)

GetCategoryKey mocks base method.

func (*MockClient) GetCategoryQuery added in v0.17.0

func (m *MockClient) GetCategoryQuery(ctx context.Context, query *v3.CategoryQueryInput) (*v3.CategoryQueryResponse, error)

GetCategoryQuery mocks base method.

func (*MockClient) GetCategoryValue added in v0.17.0

func (m *MockClient) GetCategoryValue(ctx context.Context, name, value string) (*v3.CategoryValueStatus, error)

GetCategoryValue mocks base method.

func (*MockClient) GetCluster

func (m *MockClient) GetCluster(ctx context.Context, uuid string) (*v3.ClusterIntentResponse, error)

GetCluster mocks base method.

func (*MockClient) GetCurrentLoggedInUser

func (m *MockClient) GetCurrentLoggedInUser(ctx context.Context) (*v3.UserIntentResponse, error)

GetCurrentLoggedInUser mocks base method.

func (*MockClient) GetImage

func (m *MockClient) GetImage(ctx context.Context, uuid string) (*v3.ImageIntentResponse, error)

GetImage mocks base method.

func (*MockClient) GetProject added in v0.15.0

func (m *MockClient) GetProject(ctx context.Context, uuid string) (*v3.Project, error)

GetProject mocks base method.

func (*MockClient) GetSubnet

func (m *MockClient) GetSubnet(ctx context.Context, uuid string) (*v3.SubnetIntentResponse, error)

GetSubnet mocks base method.

func (*MockClient) ListCategories added in v0.17.0

func (m *MockClient) ListCategories(ctx context.Context, getEntitiesRequest *v3.CategoryListMetadata) (*v3.CategoryKeyListResponse, error)

ListCategories mocks base method.

func (*MockClient) ListCategoryValues added in v0.17.0

func (m *MockClient) ListCategoryValues(ctx context.Context, name string, getEntitiesRequest *v3.CategoryListMetadata) (*v3.CategoryValueListResponse, error)

ListCategoryValues mocks base method.

func (*MockClient) ListCluster

func (m *MockClient) ListCluster(ctx context.Context, getEntitiesRequest *v3.DSMetadata) (*v3.ClusterListIntentResponse, error)

ListCluster mocks base method.

func (*MockClient) ListImage

func (m *MockClient) ListImage(ctx context.Context, getEntitiesRequest *v3.DSMetadata) (*v3.ImageListIntentResponse, error)

ListImage mocks base method.

func (*MockClient) ListProject added in v0.15.0

func (m *MockClient) ListProject(ctx context.Context, getEntitiesRequest *v3.DSMetadata) (*v3.ProjectListResponse, error)

ListProject mocks base method.

func (*MockClient) ListSubnet

func (m *MockClient) ListSubnet(ctx context.Context, getEntitiesRequest *v3.DSMetadata) (*v3.SubnetListIntentResponse, error)

ListSubnet mocks base method.

type MockClientMockRecorder

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

MockClientMockRecorder is the mock recorder for MockClient.

func (*MockClientMockRecorder) GetCategoryKey added in v0.17.0

func (mr *MockClientMockRecorder) GetCategoryKey(ctx, name interface{}) *gomock.Call

GetCategoryKey indicates an expected call of GetCategoryKey.

func (*MockClientMockRecorder) GetCategoryQuery added in v0.17.0

func (mr *MockClientMockRecorder) GetCategoryQuery(ctx, query interface{}) *gomock.Call

GetCategoryQuery indicates an expected call of GetCategoryQuery.

func (*MockClientMockRecorder) GetCategoryValue added in v0.17.0

func (mr *MockClientMockRecorder) GetCategoryValue(ctx, name, value interface{}) *gomock.Call

GetCategoryValue indicates an expected call of GetCategoryValue.

func (*MockClientMockRecorder) GetCluster

func (mr *MockClientMockRecorder) GetCluster(ctx, uuid interface{}) *gomock.Call

GetCluster indicates an expected call of GetCluster.

func (*MockClientMockRecorder) GetCurrentLoggedInUser

func (mr *MockClientMockRecorder) GetCurrentLoggedInUser(ctx interface{}) *gomock.Call

GetCurrentLoggedInUser indicates an expected call of GetCurrentLoggedInUser.

func (*MockClientMockRecorder) GetImage

func (mr *MockClientMockRecorder) GetImage(ctx, uuid interface{}) *gomock.Call

GetImage indicates an expected call of GetImage.

func (*MockClientMockRecorder) GetProject added in v0.15.0

func (mr *MockClientMockRecorder) GetProject(ctx, uuid interface{}) *gomock.Call

GetProject indicates an expected call of GetProject.

func (*MockClientMockRecorder) GetSubnet

func (mr *MockClientMockRecorder) GetSubnet(ctx, uuid interface{}) *gomock.Call

GetSubnet indicates an expected call of GetSubnet.

func (*MockClientMockRecorder) ListCategories added in v0.17.0

func (mr *MockClientMockRecorder) ListCategories(ctx, getEntitiesRequest interface{}) *gomock.Call

ListCategories indicates an expected call of ListCategories.

func (*MockClientMockRecorder) ListCategoryValues added in v0.17.0

func (mr *MockClientMockRecorder) ListCategoryValues(ctx, name, getEntitiesRequest interface{}) *gomock.Call

ListCategoryValues indicates an expected call of ListCategoryValues.

func (*MockClientMockRecorder) ListCluster

func (mr *MockClientMockRecorder) ListCluster(ctx, getEntitiesRequest interface{}) *gomock.Call

ListCluster indicates an expected call of ListCluster.

func (*MockClientMockRecorder) ListImage

func (mr *MockClientMockRecorder) ListImage(ctx, getEntitiesRequest interface{}) *gomock.Call

ListImage indicates an expected call of ListImage.

func (*MockClientMockRecorder) ListProject added in v0.15.0

func (mr *MockClientMockRecorder) ListProject(ctx, getEntitiesRequest interface{}) *gomock.Call

ListProject indicates an expected call of ListProject.

func (*MockClientMockRecorder) ListSubnet

func (mr *MockClientMockRecorder) ListSubnet(ctx, getEntitiesRequest interface{}) *gomock.Call

ListSubnet indicates an expected call of ListSubnet.

type MockIPValidator added in v0.16.0

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

MockIPValidator is a mock of IPValidator interface.

func NewMockIPValidator added in v0.16.0

func NewMockIPValidator(ctrl *gomock.Controller) *MockIPValidator

NewMockIPValidator creates a new mock instance.

func (*MockIPValidator) EXPECT added in v0.16.0

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

func (*MockIPValidator) ValidateControlPlaneIPUniqueness added in v0.16.0

func (m *MockIPValidator) ValidateControlPlaneIPUniqueness(cluster *v1alpha1.Cluster) error

ValidateControlPlaneIPUniqueness mocks base method.

type MockIPValidatorMockRecorder added in v0.16.0

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

MockIPValidatorMockRecorder is the mock recorder for MockIPValidator.

func (*MockIPValidatorMockRecorder) ValidateControlPlaneIPUniqueness added in v0.16.0

func (mr *MockIPValidatorMockRecorder) ValidateControlPlaneIPUniqueness(cluster interface{}) *gomock.Call

ValidateControlPlaneIPUniqueness indicates an expected call of ValidateControlPlaneIPUniqueness.

type MockProviderKubectlClient added in v0.19.0

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

MockProviderKubectlClient is a mock of ProviderKubectlClient interface.

func NewMockProviderKubectlClient added in v0.19.0

func NewMockProviderKubectlClient(ctrl *gomock.Controller) *MockProviderKubectlClient

NewMockProviderKubectlClient creates a new mock instance.

func (*MockProviderKubectlClient) ApplyKubeSpecFromBytes added in v0.19.0

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

ApplyKubeSpecFromBytes mocks base method.

func (*MockProviderKubectlClient) DeleteEksaNutanixDatacenterConfig added in v0.19.0

func (m *MockProviderKubectlClient) DeleteEksaNutanixDatacenterConfig(ctx context.Context, nutanixDatacenterConfigName, kubeconfigFile, namespace string) error

DeleteEksaNutanixDatacenterConfig mocks base method.

func (*MockProviderKubectlClient) DeleteEksaNutanixMachineConfig added in v0.19.0

func (m *MockProviderKubectlClient) DeleteEksaNutanixMachineConfig(ctx context.Context, nutanixMachineConfigName, kubeconfigFile, namespace string) error

DeleteEksaNutanixMachineConfig mocks base method.

func (*MockProviderKubectlClient) EXPECT added in v0.19.0

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

func (*MockProviderKubectlClient) GetEksaCluster added in v0.19.0

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

GetEksaCluster mocks base method.

func (*MockProviderKubectlClient) GetEksaNutanixDatacenterConfig added in v0.19.0

func (m *MockProviderKubectlClient) GetEksaNutanixDatacenterConfig(ctx context.Context, nutanixDatacenterConfigName, kubeconfigFile, namespace string) (*v1alpha1.NutanixDatacenterConfig, error)

GetEksaNutanixDatacenterConfig mocks base method.

func (*MockProviderKubectlClient) GetEksaNutanixMachineConfig added in v0.19.0

func (m *MockProviderKubectlClient) GetEksaNutanixMachineConfig(ctx context.Context, nutanixMachineConfigName, kubeconfigFile, namespace string) (*v1alpha1.NutanixMachineConfig, error)

GetEksaNutanixMachineConfig mocks base method.

func (*MockProviderKubectlClient) GetEtcdadmCluster added in v0.19.0

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 added in v0.19.0

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

GetKubeadmControlPlane mocks base method.

func (*MockProviderKubectlClient) GetMachineDeployment added in v0.19.0

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

GetMachineDeployment mocks base method.

func (*MockProviderKubectlClient) SearchNutanixDatacenterConfig added in v0.19.0

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

SearchNutanixDatacenterConfig mocks base method.

func (*MockProviderKubectlClient) SearchNutanixMachineConfig added in v0.19.0

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

SearchNutanixMachineConfig mocks base method.

func (*MockProviderKubectlClient) SetEksaControllerEnvVar added in v0.19.0

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

SetEksaControllerEnvVar mocks base method.

func (*MockProviderKubectlClient) UpdateAnnotation added in v0.19.0

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

UpdateAnnotation mocks base method.

type MockProviderKubectlClientMockRecorder added in v0.19.0

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

MockProviderKubectlClientMockRecorder is the mock recorder for MockProviderKubectlClient.

func (*MockProviderKubectlClientMockRecorder) ApplyKubeSpecFromBytes added in v0.19.0

func (mr *MockProviderKubectlClientMockRecorder) ApplyKubeSpecFromBytes(ctx, cluster, data interface{}) *gomock.Call

ApplyKubeSpecFromBytes indicates an expected call of ApplyKubeSpecFromBytes.

func (*MockProviderKubectlClientMockRecorder) DeleteEksaNutanixDatacenterConfig added in v0.19.0

func (mr *MockProviderKubectlClientMockRecorder) DeleteEksaNutanixDatacenterConfig(ctx, nutanixDatacenterConfigName, kubeconfigFile, namespace interface{}) *gomock.Call

DeleteEksaNutanixDatacenterConfig indicates an expected call of DeleteEksaNutanixDatacenterConfig.

func (*MockProviderKubectlClientMockRecorder) DeleteEksaNutanixMachineConfig added in v0.19.0

func (mr *MockProviderKubectlClientMockRecorder) DeleteEksaNutanixMachineConfig(ctx, nutanixMachineConfigName, kubeconfigFile, namespace interface{}) *gomock.Call

DeleteEksaNutanixMachineConfig indicates an expected call of DeleteEksaNutanixMachineConfig.

func (*MockProviderKubectlClientMockRecorder) GetEksaCluster added in v0.19.0

func (mr *MockProviderKubectlClientMockRecorder) GetEksaCluster(ctx, cluster, clusterName interface{}) *gomock.Call

GetEksaCluster indicates an expected call of GetEksaCluster.

func (*MockProviderKubectlClientMockRecorder) GetEksaNutanixDatacenterConfig added in v0.19.0

func (mr *MockProviderKubectlClientMockRecorder) GetEksaNutanixDatacenterConfig(ctx, nutanixDatacenterConfigName, kubeconfigFile, namespace interface{}) *gomock.Call

GetEksaNutanixDatacenterConfig indicates an expected call of GetEksaNutanixDatacenterConfig.

func (*MockProviderKubectlClientMockRecorder) GetEksaNutanixMachineConfig added in v0.19.0

func (mr *MockProviderKubectlClientMockRecorder) GetEksaNutanixMachineConfig(ctx, nutanixMachineConfigName, kubeconfigFile, namespace interface{}) *gomock.Call

GetEksaNutanixMachineConfig indicates an expected call of GetEksaNutanixMachineConfig.

func (*MockProviderKubectlClientMockRecorder) GetEtcdadmCluster added in v0.19.0

func (mr *MockProviderKubectlClientMockRecorder) GetEtcdadmCluster(ctx, cluster, clusterName interface{}, opts ...interface{}) *gomock.Call

GetEtcdadmCluster indicates an expected call of GetEtcdadmCluster.

func (*MockProviderKubectlClientMockRecorder) GetKubeadmControlPlane added in v0.19.0

func (mr *MockProviderKubectlClientMockRecorder) GetKubeadmControlPlane(ctx, cluster, clusterName interface{}, opts ...interface{}) *gomock.Call

GetKubeadmControlPlane indicates an expected call of GetKubeadmControlPlane.

func (*MockProviderKubectlClientMockRecorder) GetMachineDeployment added in v0.19.0

func (mr *MockProviderKubectlClientMockRecorder) GetMachineDeployment(ctx, workerNodeGroupName interface{}, opts ...interface{}) *gomock.Call

GetMachineDeployment indicates an expected call of GetMachineDeployment.

func (*MockProviderKubectlClientMockRecorder) SearchNutanixDatacenterConfig added in v0.19.0

func (mr *MockProviderKubectlClientMockRecorder) SearchNutanixDatacenterConfig(ctx, name, kubeconfigFile, namespace interface{}) *gomock.Call

SearchNutanixDatacenterConfig indicates an expected call of SearchNutanixDatacenterConfig.

func (*MockProviderKubectlClientMockRecorder) SearchNutanixMachineConfig added in v0.19.0

func (mr *MockProviderKubectlClientMockRecorder) SearchNutanixMachineConfig(ctx, name, kubeconfigFile, namespace interface{}) *gomock.Call

SearchNutanixMachineConfig indicates an expected call of SearchNutanixMachineConfig.

func (*MockProviderKubectlClientMockRecorder) SetEksaControllerEnvVar added in v0.19.0

func (mr *MockProviderKubectlClientMockRecorder) SetEksaControllerEnvVar(ctx, envVar, envVarVal, kubeconfig interface{}) *gomock.Call

SetEksaControllerEnvVar indicates an expected call of SetEksaControllerEnvVar.

func (*MockProviderKubectlClientMockRecorder) UpdateAnnotation added in v0.19.0

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

UpdateAnnotation indicates an expected call of UpdateAnnotation.

type MockRoundTripper

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

MockRoundTripper is a mock of RoundTripper interface.

func NewMockRoundTripper

func NewMockRoundTripper(ctrl *gomock.Controller) *MockRoundTripper

NewMockRoundTripper creates a new mock instance.

func (*MockRoundTripper) EXPECT

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

func (*MockRoundTripper) RoundTrip

func (m *MockRoundTripper) RoundTrip(arg0 *http.Request) (*http.Response, error)

RoundTrip mocks base method.

type MockRoundTripperMockRecorder

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

MockRoundTripperMockRecorder is the mock recorder for MockRoundTripper.

func (*MockRoundTripperMockRecorder) RoundTrip

func (mr *MockRoundTripperMockRecorder) RoundTrip(arg0 interface{}) *gomock.Call

RoundTrip indicates an expected call of RoundTrip.

Jump to

Keyboard shortcuts

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