mocks

package
v0.21.3 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: Apache-2.0 Imports: 9 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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDockerExecutable

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

MockDockerExecutable is a mock of DockerExecutable interface.

func NewMockDockerExecutable

func NewMockDockerExecutable(ctrl *gomock.Controller) *MockDockerExecutable

NewMockDockerExecutable creates a new mock instance.

func (*MockDockerExecutable) AllocatedMemory

func (m *MockDockerExecutable) AllocatedMemory(arg0 context.Context) (uint64, error)

AllocatedMemory mocks base method.

func (*MockDockerExecutable) EXPECT

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

func (*MockDockerExecutable) Version

func (m *MockDockerExecutable) Version(arg0 context.Context) (int, error)

Version mocks base method.

type MockDockerExecutableMockRecorder

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

MockDockerExecutableMockRecorder is the mock recorder for MockDockerExecutable.

func (*MockDockerExecutableMockRecorder) AllocatedMemory

func (mr *MockDockerExecutableMockRecorder) AllocatedMemory(arg0 interface{}) *gomock.Call

AllocatedMemory indicates an expected call of AllocatedMemory.

func (*MockDockerExecutableMockRecorder) Version

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

Version indicates an expected call of Version.

type MockKubectlClient added in v0.6.0

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

MockKubectlClient is a mock of KubectlClient interface.

func NewMockKubectlClient added in v0.6.0

func NewMockKubectlClient(ctrl *gomock.Controller) *MockKubectlClient

NewMockKubectlClient creates a new mock instance.

func (*MockKubectlClient) EXPECT added in v0.6.0

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

func (*MockKubectlClient) GetBundles added in v0.15.0

func (m *MockKubectlClient) GetBundles(ctx context.Context, kubeconfigFile, name, namespace string) (*v1alpha10.Bundles, error)

GetBundles mocks base method.

func (*MockKubectlClient) GetClusters added in v0.6.0

func (m *MockKubectlClient) GetClusters(ctx context.Context, cluster *types.Cluster) ([]types.CAPICluster, error)

GetClusters mocks base method.

func (*MockKubectlClient) GetEksaAWSIamConfig added in v0.6.0

func (m *MockKubectlClient) GetEksaAWSIamConfig(ctx context.Context, awsIamConfigName, kubeconfigFile, namespace string) (*v1alpha1.AWSIamConfig, error)

GetEksaAWSIamConfig mocks base method.

func (*MockKubectlClient) GetEksaCluster added in v0.6.0

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

GetEksaCluster mocks base method.

func (*MockKubectlClient) GetEksaFluxConfig added in v0.9.0

func (m *MockKubectlClient) GetEksaFluxConfig(ctx context.Context, fluxConfigName, kubeconfigFile, namespace string) (*v1alpha1.FluxConfig, error)

GetEksaFluxConfig mocks base method.

func (*MockKubectlClient) GetEksaGitOpsConfig added in v0.6.0

func (m *MockKubectlClient) GetEksaGitOpsConfig(ctx context.Context, gitOpsConfigName, kubeconfigFile, namespace string) (*v1alpha1.GitOpsConfig, error)

GetEksaGitOpsConfig mocks base method.

func (*MockKubectlClient) GetEksaOIDCConfig added in v0.6.0

func (m *MockKubectlClient) GetEksaOIDCConfig(ctx context.Context, oidcConfigName, kubeconfigFile, namespace string) (*v1alpha1.OIDCConfig, error)

GetEksaOIDCConfig mocks base method.

func (*MockKubectlClient) GetEksaTinkerbellDatacenterConfig added in v0.12.0

func (m *MockKubectlClient) GetEksaTinkerbellDatacenterConfig(ctx context.Context, tinkerbellDatacenterConfigName, kubeconfigFile, namespace string) (*v1alpha1.TinkerbellDatacenterConfig, error)

GetEksaTinkerbellDatacenterConfig mocks base method.

func (*MockKubectlClient) GetEksaTinkerbellMachineConfig added in v0.12.0

func (m *MockKubectlClient) GetEksaTinkerbellMachineConfig(ctx context.Context, tinkerbellMachineConfigName, kubeconfigFile, namespace string) (*v1alpha1.TinkerbellMachineConfig, error)

GetEksaTinkerbellMachineConfig mocks base method.

func (*MockKubectlClient) GetEksaVSphereDatacenterConfig added in v0.6.0

func (m *MockKubectlClient) GetEksaVSphereDatacenterConfig(ctx context.Context, vsphereDatacenterConfigName, kubeconfigFile, namespace string) (*v1alpha1.VSphereDatacenterConfig, error)

GetEksaVSphereDatacenterConfig mocks base method.

func (*MockKubectlClient) GetObject added in v0.12.0

func (m *MockKubectlClient) GetObject(ctx context.Context, resourceType, name, namespace, kubeconfig string, obj runtime.Object) error

GetObject mocks base method.

func (*MockKubectlClient) List added in v0.16.0

func (m *MockKubectlClient) List(ctx context.Context, kubeconfig string, list kubernetes.ObjectList) error

List mocks base method.

func (*MockKubectlClient) SearchIdentityProviderConfig added in v0.6.0

func (m *MockKubectlClient) SearchIdentityProviderConfig(ctx context.Context, ipName, kind, kubeconfigFile, namespace string) ([]*v1alpha1.VSphereDatacenterConfig, error)

SearchIdentityProviderConfig mocks base method.

func (*MockKubectlClient) ValidateClustersCRD added in v0.6.0

func (m *MockKubectlClient) ValidateClustersCRD(ctx context.Context, cluster *types.Cluster) error

ValidateClustersCRD mocks base method.

func (*MockKubectlClient) ValidateControlPlaneNodes added in v0.6.0

func (m *MockKubectlClient) ValidateControlPlaneNodes(ctx context.Context, cluster *types.Cluster, clusterName string) error

ValidateControlPlaneNodes mocks base method.

func (*MockKubectlClient) ValidateEKSAClustersCRD added in v0.6.0

func (m *MockKubectlClient) ValidateEKSAClustersCRD(ctx context.Context, cluster *types.Cluster) error

ValidateEKSAClustersCRD mocks base method.

func (*MockKubectlClient) ValidateNodes added in v0.6.0

func (m *MockKubectlClient) ValidateNodes(ctx context.Context, kubeconfig string) error

ValidateNodes mocks base method.

func (*MockKubectlClient) ValidateWorkerNodes added in v0.6.0

func (m *MockKubectlClient) ValidateWorkerNodes(ctx context.Context, clusterName, kubeconfig string) error

ValidateWorkerNodes mocks base method.

func (*MockKubectlClient) Version added in v0.6.0

Version mocks base method.

type MockKubectlClientMockRecorder added in v0.6.0

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

MockKubectlClientMockRecorder is the mock recorder for MockKubectlClient.

func (*MockKubectlClientMockRecorder) GetBundles added in v0.15.0

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

GetBundles indicates an expected call of GetBundles.

func (*MockKubectlClientMockRecorder) GetClusters added in v0.6.0

func (mr *MockKubectlClientMockRecorder) GetClusters(ctx, cluster interface{}) *gomock.Call

GetClusters indicates an expected call of GetClusters.

func (*MockKubectlClientMockRecorder) GetEksaAWSIamConfig added in v0.6.0

func (mr *MockKubectlClientMockRecorder) GetEksaAWSIamConfig(ctx, awsIamConfigName, kubeconfigFile, namespace interface{}) *gomock.Call

GetEksaAWSIamConfig indicates an expected call of GetEksaAWSIamConfig.

func (*MockKubectlClientMockRecorder) GetEksaCluster added in v0.6.0

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

GetEksaCluster indicates an expected call of GetEksaCluster.

func (*MockKubectlClientMockRecorder) GetEksaFluxConfig added in v0.9.0

func (mr *MockKubectlClientMockRecorder) GetEksaFluxConfig(ctx, fluxConfigName, kubeconfigFile, namespace interface{}) *gomock.Call

GetEksaFluxConfig indicates an expected call of GetEksaFluxConfig.

func (*MockKubectlClientMockRecorder) GetEksaGitOpsConfig added in v0.6.0

func (mr *MockKubectlClientMockRecorder) GetEksaGitOpsConfig(ctx, gitOpsConfigName, kubeconfigFile, namespace interface{}) *gomock.Call

GetEksaGitOpsConfig indicates an expected call of GetEksaGitOpsConfig.

func (*MockKubectlClientMockRecorder) GetEksaOIDCConfig added in v0.6.0

func (mr *MockKubectlClientMockRecorder) GetEksaOIDCConfig(ctx, oidcConfigName, kubeconfigFile, namespace interface{}) *gomock.Call

GetEksaOIDCConfig indicates an expected call of GetEksaOIDCConfig.

func (*MockKubectlClientMockRecorder) GetEksaTinkerbellDatacenterConfig added in v0.12.0

func (mr *MockKubectlClientMockRecorder) GetEksaTinkerbellDatacenterConfig(ctx, tinkerbellDatacenterConfigName, kubeconfigFile, namespace interface{}) *gomock.Call

GetEksaTinkerbellDatacenterConfig indicates an expected call of GetEksaTinkerbellDatacenterConfig.

func (*MockKubectlClientMockRecorder) GetEksaTinkerbellMachineConfig added in v0.12.0

func (mr *MockKubectlClientMockRecorder) GetEksaTinkerbellMachineConfig(ctx, tinkerbellMachineConfigName, kubeconfigFile, namespace interface{}) *gomock.Call

GetEksaTinkerbellMachineConfig indicates an expected call of GetEksaTinkerbellMachineConfig.

func (*MockKubectlClientMockRecorder) GetEksaVSphereDatacenterConfig added in v0.6.0

func (mr *MockKubectlClientMockRecorder) GetEksaVSphereDatacenterConfig(ctx, vsphereDatacenterConfigName, kubeconfigFile, namespace interface{}) *gomock.Call

GetEksaVSphereDatacenterConfig indicates an expected call of GetEksaVSphereDatacenterConfig.

func (*MockKubectlClientMockRecorder) GetObject added in v0.12.0

func (mr *MockKubectlClientMockRecorder) GetObject(ctx, resourceType, name, namespace, kubeconfig, obj interface{}) *gomock.Call

GetObject indicates an expected call of GetObject.

func (*MockKubectlClientMockRecorder) List added in v0.16.0

func (mr *MockKubectlClientMockRecorder) List(ctx, kubeconfig, list interface{}) *gomock.Call

List indicates an expected call of List.

func (*MockKubectlClientMockRecorder) SearchIdentityProviderConfig added in v0.6.0

func (mr *MockKubectlClientMockRecorder) SearchIdentityProviderConfig(ctx, ipName, kind, kubeconfigFile, namespace interface{}) *gomock.Call

SearchIdentityProviderConfig indicates an expected call of SearchIdentityProviderConfig.

func (*MockKubectlClientMockRecorder) ValidateClustersCRD added in v0.6.0

func (mr *MockKubectlClientMockRecorder) ValidateClustersCRD(ctx, cluster interface{}) *gomock.Call

ValidateClustersCRD indicates an expected call of ValidateClustersCRD.

func (*MockKubectlClientMockRecorder) ValidateControlPlaneNodes added in v0.6.0

func (mr *MockKubectlClientMockRecorder) ValidateControlPlaneNodes(ctx, cluster, clusterName interface{}) *gomock.Call

ValidateControlPlaneNodes indicates an expected call of ValidateControlPlaneNodes.

func (*MockKubectlClientMockRecorder) ValidateEKSAClustersCRD added in v0.6.0

func (mr *MockKubectlClientMockRecorder) ValidateEKSAClustersCRD(ctx, cluster interface{}) *gomock.Call

ValidateEKSAClustersCRD indicates an expected call of ValidateEKSAClustersCRD.

func (*MockKubectlClientMockRecorder) ValidateNodes added in v0.6.0

func (mr *MockKubectlClientMockRecorder) ValidateNodes(ctx, kubeconfig interface{}) *gomock.Call

ValidateNodes indicates an expected call of ValidateNodes.

func (*MockKubectlClientMockRecorder) ValidateWorkerNodes added in v0.6.0

func (mr *MockKubectlClientMockRecorder) ValidateWorkerNodes(ctx, clusterName, kubeconfig interface{}) *gomock.Call

ValidateWorkerNodes indicates an expected call of ValidateWorkerNodes.

func (*MockKubectlClientMockRecorder) Version added in v0.6.0

func (mr *MockKubectlClientMockRecorder) Version(ctx, cluster interface{}) *gomock.Call

Version indicates an expected call of Version.

type MockTlsValidator added in v0.8.0

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

MockTlsValidator is a mock of TlsValidator interface.

func NewMockTlsValidator added in v0.8.0

func NewMockTlsValidator(ctrl *gomock.Controller) *MockTlsValidator

NewMockTlsValidator creates a new mock instance.

func (*MockTlsValidator) EXPECT added in v0.8.0

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

func (*MockTlsValidator) IsSignedByUnknownAuthority added in v0.11.0

func (m *MockTlsValidator) IsSignedByUnknownAuthority(host, port string) (bool, error)

IsSignedByUnknownAuthority mocks base method.

func (*MockTlsValidator) ValidateCert added in v0.8.0

func (m *MockTlsValidator) ValidateCert(host, port, caCertContent string) error

ValidateCert mocks base method.

type MockTlsValidatorMockRecorder added in v0.8.0

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

MockTlsValidatorMockRecorder is the mock recorder for MockTlsValidator.

func (*MockTlsValidatorMockRecorder) IsSignedByUnknownAuthority added in v0.11.0

func (mr *MockTlsValidatorMockRecorder) IsSignedByUnknownAuthority(host, port interface{}) *gomock.Call

IsSignedByUnknownAuthority indicates an expected call of IsSignedByUnknownAuthority.

func (*MockTlsValidatorMockRecorder) ValidateCert added in v0.8.0

func (mr *MockTlsValidatorMockRecorder) ValidateCert(host, port, caCertContent interface{}) *gomock.Call

ValidateCert indicates an expected call of ValidateCert.

Jump to

Keyboard shortcuts

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