mocks

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: Apache-2.0 Imports: 10 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 MockCAPIClient

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

MockCAPIClient is a mock of CAPIClient interface.

func NewMockCAPIClient

func NewMockCAPIClient(ctrl *gomock.Controller) *MockCAPIClient

NewMockCAPIClient creates a new mock instance.

func (*MockCAPIClient) EXPECT

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

func (*MockCAPIClient) InstallEtcdadmProviders

func (m *MockCAPIClient) InstallEtcdadmProviders(ctx context.Context, clusterSpec *cluster.Spec, cluster *types.Cluster, provider providers.Provider, installProviders []string) error

InstallEtcdadmProviders mocks base method.

func (*MockCAPIClient) Upgrade

func (m *MockCAPIClient) Upgrade(ctx context.Context, managementCluster *types.Cluster, provider providers.Provider, newSpec *cluster.Spec, changeDiff *clusterapi.CAPIChangeDiff) error

Upgrade mocks base method.

type MockCAPIClientMockRecorder

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

MockCAPIClientMockRecorder is the mock recorder for MockCAPIClient.

func (*MockCAPIClientMockRecorder) InstallEtcdadmProviders

func (mr *MockCAPIClientMockRecorder) InstallEtcdadmProviders(ctx, clusterSpec, cluster, provider, installProviders interface{}) *gomock.Call

InstallEtcdadmProviders indicates an expected call of InstallEtcdadmProviders.

func (*MockCAPIClientMockRecorder) Upgrade

func (mr *MockCAPIClientMockRecorder) Upgrade(ctx, managementCluster, provider, newSpec, changeDiff interface{}) *gomock.Call

Upgrade indicates an expected call of Upgrade.

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) ApplyKubeSpecFromBytes

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

ApplyKubeSpecFromBytes mocks base method.

func (*MockClient) EXPECT

func (m *MockClient) EXPECT() *MockClientMockRecorder

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

func (*MockClient) GetClusterResourceSet

func (m *MockClient) GetClusterResourceSet(ctx context.Context, kubeconfigFile, name, namespace string) (*v1beta1.ClusterResourceSet, error)

GetClusterResourceSet mocks base method.

func (*MockClient) GetConfigMap

func (m *MockClient) GetConfigMap(ctx context.Context, kubeconfigFile, name, namespace string) (*v1.ConfigMap, error)

GetConfigMap mocks base method.

func (*MockClient) GetSecretFromNamespace

func (m *MockClient) GetSecretFromNamespace(ctx context.Context, kubeconfigFile, name, namespace string) (*v1.Secret, error)

GetSecretFromNamespace mocks base method.

type MockClientMockRecorder

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

MockClientMockRecorder is the mock recorder for MockClient.

func (*MockClientMockRecorder) ApplyKubeSpecFromBytes

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

ApplyKubeSpecFromBytes indicates an expected call of ApplyKubeSpecFromBytes.

func (*MockClientMockRecorder) GetClusterResourceSet

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

GetClusterResourceSet indicates an expected call of GetClusterResourceSet.

func (*MockClientMockRecorder) GetConfigMap

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

GetConfigMap indicates an expected call of GetConfigMap.

func (*MockClientMockRecorder) GetSecretFromNamespace

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

GetSecretFromNamespace indicates an expected call of GetSecretFromNamespace.

type MockKubeClient added in v0.9.2

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

MockKubeClient is a mock of KubeClient interface.

func NewMockKubeClient added in v0.9.2

func NewMockKubeClient(ctrl *gomock.Controller) *MockKubeClient

NewMockKubeClient creates a new mock instance.

func (*MockKubeClient) EXPECT added in v0.9.2

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

func (*MockKubeClient) Get added in v0.9.2

func (m *MockKubeClient) Get(ctx context.Context, name, namespace string, obj kubernetes.Object) error

Get mocks base method.

type MockKubeClientMockRecorder added in v0.9.2

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

MockKubeClientMockRecorder is the mock recorder for MockKubeClient.

func (*MockKubeClientMockRecorder) Get added in v0.9.2

func (mr *MockKubeClientMockRecorder) Get(ctx, name, namespace, obj interface{}) *gomock.Call

Get indicates an expected call of Get.

type MockKubectlClient

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

MockKubectlClient is a mock of KubectlClient interface.

func NewMockKubectlClient

func NewMockKubectlClient(ctrl *gomock.Controller) *MockKubectlClient

NewMockKubectlClient creates a new mock instance.

func (*MockKubectlClient) CheckProviderExists

func (m *MockKubectlClient) CheckProviderExists(ctx context.Context, kubeconfigFile, name, namespace string) (bool, error)

CheckProviderExists mocks base method.

func (*MockKubectlClient) EXPECT

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

type MockKubectlClientMockRecorder

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

MockKubectlClientMockRecorder is the mock recorder for MockKubectlClient.

func (*MockKubectlClientMockRecorder) CheckProviderExists

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

CheckProviderExists indicates an expected call of CheckProviderExists.

Jump to

Keyboard shortcuts

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