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: 6 Imported by: 0

Documentation

Overview

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 MockClusterClient

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

MockClusterClient is a mock of ClusterClient interface.

func NewMockClusterClient

func NewMockClusterClient(ctrl *gomock.Controller) *MockClusterClient

NewMockClusterClient creates a new mock instance.

func (*MockClusterClient) Apply added in v0.15.2

func (m *MockClusterClient) Apply(arg0 context.Context, arg1 *types.Cluster, arg2 []byte) error

Apply mocks base method.

func (*MockClusterClient) CreateBootstrapCluster

func (m *MockClusterClient) CreateBootstrapCluster(arg0 context.Context, arg1 *cluster.Spec, arg2 ...bootstrapper.BootstrapClusterClientOption) (string, error)

CreateBootstrapCluster mocks base method.

func (*MockClusterClient) CreateNamespace

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

CreateNamespace mocks base method.

func (*MockClusterClient) DeleteKindCluster added in v0.15.2

func (m *MockClusterClient) DeleteKindCluster(arg0 context.Context, arg1 *types.Cluster) error

DeleteKindCluster mocks base method.

func (*MockClusterClient) EXPECT

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

func (*MockClusterClient) GetCAPIClusterCRD added in v0.15.2

func (m *MockClusterClient) GetCAPIClusterCRD(arg0 context.Context, arg1 *types.Cluster) error

GetCAPIClusterCRD mocks base method.

func (*MockClusterClient) GetCAPIClusters added in v0.15.2

func (m *MockClusterClient) GetCAPIClusters(arg0 context.Context, arg1 *types.Cluster) ([]types.CAPICluster, error)

GetCAPIClusters mocks base method.

func (*MockClusterClient) GetKindClusterKubeconfig added in v0.15.2

func (m *MockClusterClient) GetKindClusterKubeconfig(arg0 context.Context, arg1 string) (string, error)

GetKindClusterKubeconfig mocks base method.

func (*MockClusterClient) KindClusterExists added in v0.15.2

func (m *MockClusterClient) KindClusterExists(arg0 context.Context, arg1 string) (bool, error)

KindClusterExists mocks base method.

func (*MockClusterClient) WithEnv

WithEnv mocks base method.

func (*MockClusterClient) WithExtraDockerMounts

func (m *MockClusterClient) WithExtraDockerMounts() bootstrapper.BootstrapClusterClientOption

WithExtraDockerMounts mocks base method.

func (*MockClusterClient) WithExtraPortMappings added in v0.9.0

func (m *MockClusterClient) WithExtraPortMappings(arg0 []int) bootstrapper.BootstrapClusterClientOption

WithExtraPortMappings mocks base method.

type MockClusterClientMockRecorder

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

MockClusterClientMockRecorder is the mock recorder for MockClusterClient.

func (*MockClusterClientMockRecorder) Apply added in v0.15.2

func (mr *MockClusterClientMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call

Apply indicates an expected call of Apply.

func (*MockClusterClientMockRecorder) CreateBootstrapCluster

func (mr *MockClusterClientMockRecorder) CreateBootstrapCluster(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

CreateBootstrapCluster indicates an expected call of CreateBootstrapCluster.

func (*MockClusterClientMockRecorder) CreateNamespace

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

CreateNamespace indicates an expected call of CreateNamespace.

func (*MockClusterClientMockRecorder) DeleteKindCluster added in v0.15.2

func (mr *MockClusterClientMockRecorder) DeleteKindCluster(arg0, arg1 interface{}) *gomock.Call

DeleteKindCluster indicates an expected call of DeleteKindCluster.

func (*MockClusterClientMockRecorder) GetCAPIClusterCRD added in v0.15.2

func (mr *MockClusterClientMockRecorder) GetCAPIClusterCRD(arg0, arg1 interface{}) *gomock.Call

GetCAPIClusterCRD indicates an expected call of GetCAPIClusterCRD.

func (*MockClusterClientMockRecorder) GetCAPIClusters added in v0.15.2

func (mr *MockClusterClientMockRecorder) GetCAPIClusters(arg0, arg1 interface{}) *gomock.Call

GetCAPIClusters indicates an expected call of GetCAPIClusters.

func (*MockClusterClientMockRecorder) GetKindClusterKubeconfig added in v0.15.2

func (mr *MockClusterClientMockRecorder) GetKindClusterKubeconfig(arg0, arg1 interface{}) *gomock.Call

GetKindClusterKubeconfig indicates an expected call of GetKindClusterKubeconfig.

func (*MockClusterClientMockRecorder) KindClusterExists added in v0.15.2

func (mr *MockClusterClientMockRecorder) KindClusterExists(arg0, arg1 interface{}) *gomock.Call

KindClusterExists indicates an expected call of KindClusterExists.

func (*MockClusterClientMockRecorder) WithEnv

func (mr *MockClusterClientMockRecorder) WithEnv(arg0 interface{}) *gomock.Call

WithEnv indicates an expected call of WithEnv.

func (*MockClusterClientMockRecorder) WithExtraDockerMounts

func (mr *MockClusterClientMockRecorder) WithExtraDockerMounts() *gomock.Call

WithExtraDockerMounts indicates an expected call of WithExtraDockerMounts.

func (*MockClusterClientMockRecorder) WithExtraPortMappings added in v0.9.0

func (mr *MockClusterClientMockRecorder) WithExtraPortMappings(arg0 interface{}) *gomock.Call

WithExtraPortMappings indicates an expected call of WithExtraPortMappings.

type MockKindClient added in v0.15.2

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

MockKindClient is a mock of KindClient interface.

func NewMockKindClient added in v0.15.2

func NewMockKindClient(ctrl *gomock.Controller) *MockKindClient

NewMockKindClient creates a new mock instance.

func (*MockKindClient) ClusterExists added in v0.15.2

func (m *MockKindClient) ClusterExists(arg0 context.Context, arg1 string) (bool, error)

ClusterExists mocks base method.

func (*MockKindClient) CreateBootstrapCluster added in v0.15.2

func (m *MockKindClient) CreateBootstrapCluster(arg0 context.Context, arg1 *cluster.Spec, arg2 ...bootstrapper.BootstrapClusterClientOption) (string, error)

CreateBootstrapCluster mocks base method.

func (*MockKindClient) DeleteBootstrapCluster added in v0.15.2

func (m *MockKindClient) DeleteBootstrapCluster(arg0 context.Context, arg1 *types.Cluster) error

DeleteBootstrapCluster mocks base method.

func (*MockKindClient) EXPECT added in v0.15.2

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

func (*MockKindClient) GetKubeconfig added in v0.15.2

func (m *MockKindClient) GetKubeconfig(arg0 context.Context, arg1 string) (string, error)

GetKubeconfig mocks base method.

func (*MockKindClient) WithEnv added in v0.15.2

WithEnv mocks base method.

func (*MockKindClient) WithExtraDockerMounts added in v0.15.2

func (m *MockKindClient) WithExtraDockerMounts() bootstrapper.BootstrapClusterClientOption

WithExtraDockerMounts mocks base method.

func (*MockKindClient) WithExtraPortMappings added in v0.15.2

func (m *MockKindClient) WithExtraPortMappings(arg0 []int) bootstrapper.BootstrapClusterClientOption

WithExtraPortMappings mocks base method.

type MockKindClientMockRecorder added in v0.15.2

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

MockKindClientMockRecorder is the mock recorder for MockKindClient.

func (*MockKindClientMockRecorder) ClusterExists added in v0.15.2

func (mr *MockKindClientMockRecorder) ClusterExists(arg0, arg1 interface{}) *gomock.Call

ClusterExists indicates an expected call of ClusterExists.

func (*MockKindClientMockRecorder) CreateBootstrapCluster added in v0.15.2

func (mr *MockKindClientMockRecorder) CreateBootstrapCluster(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

CreateBootstrapCluster indicates an expected call of CreateBootstrapCluster.

func (*MockKindClientMockRecorder) DeleteBootstrapCluster added in v0.15.2

func (mr *MockKindClientMockRecorder) DeleteBootstrapCluster(arg0, arg1 interface{}) *gomock.Call

DeleteBootstrapCluster indicates an expected call of DeleteBootstrapCluster.

func (*MockKindClientMockRecorder) GetKubeconfig added in v0.15.2

func (mr *MockKindClientMockRecorder) GetKubeconfig(arg0, arg1 interface{}) *gomock.Call

GetKubeconfig indicates an expected call of GetKubeconfig.

func (*MockKindClientMockRecorder) WithEnv added in v0.15.2

func (mr *MockKindClientMockRecorder) WithEnv(arg0 interface{}) *gomock.Call

WithEnv indicates an expected call of WithEnv.

func (*MockKindClientMockRecorder) WithExtraDockerMounts added in v0.15.2

func (mr *MockKindClientMockRecorder) WithExtraDockerMounts() *gomock.Call

WithExtraDockerMounts indicates an expected call of WithExtraDockerMounts.

func (*MockKindClientMockRecorder) WithExtraPortMappings added in v0.15.2

func (mr *MockKindClientMockRecorder) WithExtraPortMappings(arg0 interface{}) *gomock.Call

WithExtraPortMappings indicates an expected call of WithExtraPortMappings.

type MockKubernetesClient added in v0.15.2

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

MockKubernetesClient is a mock of KubernetesClient interface.

func NewMockKubernetesClient added in v0.15.2

func NewMockKubernetesClient(ctrl *gomock.Controller) *MockKubernetesClient

NewMockKubernetesClient creates a new mock instance.

func (*MockKubernetesClient) ApplyKubeSpecFromBytes added in v0.15.2

func (m *MockKubernetesClient) ApplyKubeSpecFromBytes(arg0 context.Context, arg1 *types.Cluster, arg2 []byte) error

ApplyKubeSpecFromBytes mocks base method.

func (*MockKubernetesClient) CreateNamespaceIfNotPresent added in v0.15.2

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

CreateNamespaceIfNotPresent mocks base method.

func (*MockKubernetesClient) EXPECT added in v0.15.2

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

func (*MockKubernetesClient) GetClusters added in v0.15.2

func (m *MockKubernetesClient) GetClusters(arg0 context.Context, arg1 *types.Cluster) ([]types.CAPICluster, error)

GetClusters mocks base method.

func (*MockKubernetesClient) ValidateClustersCRD added in v0.15.2

func (m *MockKubernetesClient) ValidateClustersCRD(arg0 context.Context, arg1 *types.Cluster) error

ValidateClustersCRD mocks base method.

type MockKubernetesClientMockRecorder added in v0.15.2

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

MockKubernetesClientMockRecorder is the mock recorder for MockKubernetesClient.

func (*MockKubernetesClientMockRecorder) ApplyKubeSpecFromBytes added in v0.15.2

func (mr *MockKubernetesClientMockRecorder) ApplyKubeSpecFromBytes(arg0, arg1, arg2 interface{}) *gomock.Call

ApplyKubeSpecFromBytes indicates an expected call of ApplyKubeSpecFromBytes.

func (*MockKubernetesClientMockRecorder) CreateNamespaceIfNotPresent added in v0.15.2

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

CreateNamespaceIfNotPresent indicates an expected call of CreateNamespaceIfNotPresent.

func (*MockKubernetesClientMockRecorder) GetClusters added in v0.15.2

func (mr *MockKubernetesClientMockRecorder) GetClusters(arg0, arg1 interface{}) *gomock.Call

GetClusters indicates an expected call of GetClusters.

func (*MockKubernetesClientMockRecorder) ValidateClustersCRD added in v0.15.2

func (mr *MockKubernetesClientMockRecorder) ValidateClustersCRD(arg0, arg1 interface{}) *gomock.Call

ValidateClustersCRD indicates an expected call of ValidateClustersCRD.

Jump to

Keyboard shortcuts

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