mocks

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: Apache-2.0 Imports: 14 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 MockReader

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

MockReader is a mock of Reader interface.

func NewMockReader

func NewMockReader(ctrl *gomock.Controller) *MockReader

NewMockReader creates a new mock instance.

func (*MockReader) EXPECT

func (m *MockReader) EXPECT() *MockReaderMockRecorder

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

func (*MockReader) Get

func (m *MockReader) Get(arg0 context.Context, arg1 types.NamespacedName, arg2 client.Object) error

Get mocks base method.

func (*MockReader) List

func (m *MockReader) List(arg0 context.Context, arg1 client.ObjectList, arg2 ...client.ListOption) error

List mocks base method.

type MockReaderMockRecorder

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

MockReaderMockRecorder is the mock recorder for MockReader.

func (*MockReaderMockRecorder) Get

func (mr *MockReaderMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockReaderMockRecorder) List

func (mr *MockReaderMockRecorder) List(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

List indicates an expected call of List.

type MockResourceFetcher

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

MockResourceFetcher is a mock of ResourceFetcher interface.

func NewMockResourceFetcher

func NewMockResourceFetcher(ctrl *gomock.Controller) *MockResourceFetcher

NewMockResourceFetcher creates a new mock instance.

func (*MockResourceFetcher) AWSIamConfig

func (m *MockResourceFetcher) AWSIamConfig(arg0 context.Context, arg1 *v1alpha1.Ref, arg2 string) (*v1alpha1.AWSIamConfig, error)

AWSIamConfig mocks base method.

func (*MockResourceFetcher) ControlPlane

ControlPlane mocks base method.

func (*MockResourceFetcher) EXPECT

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

func (*MockResourceFetcher) Etcd

Etcd mocks base method.

func (*MockResourceFetcher) ExistingCloudStackControlPlaneMachineConfig

func (m *MockResourceFetcher) ExistingCloudStackControlPlaneMachineConfig(arg0 context.Context, arg1 *v1alpha1.Cluster) (*v1alpha1.CloudStackMachineConfig, error)

ExistingCloudStackControlPlaneMachineConfig mocks base method.

func (*MockResourceFetcher) ExistingCloudStackDatacenterConfig

ExistingCloudStackDatacenterConfig mocks base method.

func (*MockResourceFetcher) ExistingCloudStackEtcdMachineConfig

func (m *MockResourceFetcher) ExistingCloudStackEtcdMachineConfig(arg0 context.Context, arg1 *v1alpha1.Cluster) (*v1alpha1.CloudStackMachineConfig, error)

ExistingCloudStackEtcdMachineConfig mocks base method.

func (*MockResourceFetcher) ExistingCloudStackWorkerMachineConfig

func (m *MockResourceFetcher) ExistingCloudStackWorkerMachineConfig(arg0 context.Context, arg1 *v1alpha1.Cluster, arg2 v1alpha1.WorkerNodeGroupConfiguration) (*v1alpha1.CloudStackMachineConfig, error)

ExistingCloudStackWorkerMachineConfig mocks base method.

func (*MockResourceFetcher) ExistingControlPlaneKindNodeImage

func (m *MockResourceFetcher) ExistingControlPlaneKindNodeImage(arg0 context.Context, arg1 *v1alpha1.Cluster) (string, error)

ExistingControlPlaneKindNodeImage mocks base method.

func (*MockResourceFetcher) ExistingKubeVersion

func (m *MockResourceFetcher) ExistingKubeVersion(arg0 context.Context, arg1 *v1alpha1.Cluster) (string, error)

ExistingKubeVersion mocks base method.

func (*MockResourceFetcher) ExistingVSphereControlPlaneMachineConfig

func (m *MockResourceFetcher) ExistingVSphereControlPlaneMachineConfig(arg0 context.Context, arg1 *v1alpha1.Cluster) (*v1alpha1.VSphereMachineConfig, error)

ExistingVSphereControlPlaneMachineConfig mocks base method.

func (*MockResourceFetcher) ExistingVSphereDatacenterConfig

ExistingVSphereDatacenterConfig mocks base method.

func (*MockResourceFetcher) ExistingVSphereEtcdMachineConfig

func (m *MockResourceFetcher) ExistingVSphereEtcdMachineConfig(arg0 context.Context, arg1 *v1alpha1.Cluster) (*v1alpha1.VSphereMachineConfig, error)

ExistingVSphereEtcdMachineConfig mocks base method.

func (*MockResourceFetcher) ExistingVSphereWorkerMachineConfig

func (m *MockResourceFetcher) ExistingVSphereWorkerMachineConfig(arg0 context.Context, arg1 *v1alpha1.Cluster, arg2 v1alpha1.WorkerNodeGroupConfiguration) (*v1alpha1.VSphereMachineConfig, error)

ExistingVSphereWorkerMachineConfig mocks base method.

func (*MockResourceFetcher) ExistingWorkerKindNodeImage

func (m *MockResourceFetcher) ExistingWorkerKindNodeImage(arg0 context.Context, arg1 *v1alpha1.Cluster, arg2 v1alpha1.WorkerNodeGroupConfiguration) (string, error)

ExistingWorkerKindNodeImage mocks base method.

func (*MockResourceFetcher) ExistingWorkerNodeGroupConfig

ExistingWorkerNodeGroupConfig mocks base method.

func (*MockResourceFetcher) Fetch

func (m *MockResourceFetcher) Fetch(arg0 context.Context, arg1, arg2, arg3, arg4 string) (*unstructured.Unstructured, error)

Fetch mocks base method.

func (*MockResourceFetcher) FetchAppliedSpec

func (m *MockResourceFetcher) FetchAppliedSpec(arg0 context.Context, arg1 *v1alpha1.Cluster) (*cluster.Spec, error)

FetchAppliedSpec mocks base method.

func (*MockResourceFetcher) FetchCluster

func (m *MockResourceFetcher) FetchCluster(arg0 context.Context, arg1 types.NamespacedName) (*v1alpha1.Cluster, error)

FetchCluster mocks base method.

func (*MockResourceFetcher) FetchObject

func (m *MockResourceFetcher) FetchObject(arg0 context.Context, arg1 types.NamespacedName, arg2 client.Object) error

FetchObject mocks base method.

func (*MockResourceFetcher) FetchObjectByName

func (m *MockResourceFetcher) FetchObjectByName(arg0 context.Context, arg1, arg2 string, arg3 client.Object) error

FetchObjectByName mocks base method.

func (*MockResourceFetcher) KubeadmConfigTemplate

KubeadmConfigTemplate mocks base method.

func (*MockResourceFetcher) MachineDeployment

MachineDeployment mocks base method.

func (*MockResourceFetcher) OIDCConfig

func (m *MockResourceFetcher) OIDCConfig(arg0 context.Context, arg1 *v1alpha1.Ref, arg2 string) (*v1alpha1.OIDCConfig, error)

OIDCConfig mocks base method.

func (*MockResourceFetcher) VSphereCredentials

func (m *MockResourceFetcher) VSphereCredentials(arg0 context.Context) (*v1.Secret, error)

VSphereCredentials mocks base method.

func (*MockResourceFetcher) VSphereWorkerMachineTemplate

VSphereWorkerMachineTemplate mocks base method.

type MockResourceFetcherMockRecorder

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

MockResourceFetcherMockRecorder is the mock recorder for MockResourceFetcher.

func (*MockResourceFetcherMockRecorder) AWSIamConfig

func (mr *MockResourceFetcherMockRecorder) AWSIamConfig(arg0, arg1, arg2 interface{}) *gomock.Call

AWSIamConfig indicates an expected call of AWSIamConfig.

func (*MockResourceFetcherMockRecorder) ControlPlane

func (mr *MockResourceFetcherMockRecorder) ControlPlane(arg0, arg1 interface{}) *gomock.Call

ControlPlane indicates an expected call of ControlPlane.

func (*MockResourceFetcherMockRecorder) Etcd

func (mr *MockResourceFetcherMockRecorder) Etcd(arg0, arg1 interface{}) *gomock.Call

Etcd indicates an expected call of Etcd.

func (*MockResourceFetcherMockRecorder) ExistingCloudStackControlPlaneMachineConfig

func (mr *MockResourceFetcherMockRecorder) ExistingCloudStackControlPlaneMachineConfig(arg0, arg1 interface{}) *gomock.Call

ExistingCloudStackControlPlaneMachineConfig indicates an expected call of ExistingCloudStackControlPlaneMachineConfig.

func (*MockResourceFetcherMockRecorder) ExistingCloudStackDatacenterConfig

func (mr *MockResourceFetcherMockRecorder) ExistingCloudStackDatacenterConfig(arg0, arg1, arg2 interface{}) *gomock.Call

ExistingCloudStackDatacenterConfig indicates an expected call of ExistingCloudStackDatacenterConfig.

func (*MockResourceFetcherMockRecorder) ExistingCloudStackEtcdMachineConfig

func (mr *MockResourceFetcherMockRecorder) ExistingCloudStackEtcdMachineConfig(arg0, arg1 interface{}) *gomock.Call

ExistingCloudStackEtcdMachineConfig indicates an expected call of ExistingCloudStackEtcdMachineConfig.

func (*MockResourceFetcherMockRecorder) ExistingCloudStackWorkerMachineConfig

func (mr *MockResourceFetcherMockRecorder) ExistingCloudStackWorkerMachineConfig(arg0, arg1, arg2 interface{}) *gomock.Call

ExistingCloudStackWorkerMachineConfig indicates an expected call of ExistingCloudStackWorkerMachineConfig.

func (*MockResourceFetcherMockRecorder) ExistingControlPlaneKindNodeImage

func (mr *MockResourceFetcherMockRecorder) ExistingControlPlaneKindNodeImage(arg0, arg1 interface{}) *gomock.Call

ExistingControlPlaneKindNodeImage indicates an expected call of ExistingControlPlaneKindNodeImage.

func (*MockResourceFetcherMockRecorder) ExistingKubeVersion

func (mr *MockResourceFetcherMockRecorder) ExistingKubeVersion(arg0, arg1 interface{}) *gomock.Call

ExistingKubeVersion indicates an expected call of ExistingKubeVersion.

func (*MockResourceFetcherMockRecorder) ExistingVSphereControlPlaneMachineConfig

func (mr *MockResourceFetcherMockRecorder) ExistingVSphereControlPlaneMachineConfig(arg0, arg1 interface{}) *gomock.Call

ExistingVSphereControlPlaneMachineConfig indicates an expected call of ExistingVSphereControlPlaneMachineConfig.

func (*MockResourceFetcherMockRecorder) ExistingVSphereDatacenterConfig

func (mr *MockResourceFetcherMockRecorder) ExistingVSphereDatacenterConfig(arg0, arg1, arg2 interface{}) *gomock.Call

ExistingVSphereDatacenterConfig indicates an expected call of ExistingVSphereDatacenterConfig.

func (*MockResourceFetcherMockRecorder) ExistingVSphereEtcdMachineConfig

func (mr *MockResourceFetcherMockRecorder) ExistingVSphereEtcdMachineConfig(arg0, arg1 interface{}) *gomock.Call

ExistingVSphereEtcdMachineConfig indicates an expected call of ExistingVSphereEtcdMachineConfig.

func (*MockResourceFetcherMockRecorder) ExistingVSphereWorkerMachineConfig

func (mr *MockResourceFetcherMockRecorder) ExistingVSphereWorkerMachineConfig(arg0, arg1, arg2 interface{}) *gomock.Call

ExistingVSphereWorkerMachineConfig indicates an expected call of ExistingVSphereWorkerMachineConfig.

func (*MockResourceFetcherMockRecorder) ExistingWorkerKindNodeImage

func (mr *MockResourceFetcherMockRecorder) ExistingWorkerKindNodeImage(arg0, arg1, arg2 interface{}) *gomock.Call

ExistingWorkerKindNodeImage indicates an expected call of ExistingWorkerKindNodeImage.

func (*MockResourceFetcherMockRecorder) ExistingWorkerNodeGroupConfig

func (mr *MockResourceFetcherMockRecorder) ExistingWorkerNodeGroupConfig(arg0, arg1, arg2 interface{}) *gomock.Call

ExistingWorkerNodeGroupConfig indicates an expected call of ExistingWorkerNodeGroupConfig.

func (*MockResourceFetcherMockRecorder) Fetch

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

Fetch indicates an expected call of Fetch.

func (*MockResourceFetcherMockRecorder) FetchAppliedSpec

func (mr *MockResourceFetcherMockRecorder) FetchAppliedSpec(arg0, arg1 interface{}) *gomock.Call

FetchAppliedSpec indicates an expected call of FetchAppliedSpec.

func (*MockResourceFetcherMockRecorder) FetchCluster

func (mr *MockResourceFetcherMockRecorder) FetchCluster(arg0, arg1 interface{}) *gomock.Call

FetchCluster indicates an expected call of FetchCluster.

func (*MockResourceFetcherMockRecorder) FetchObject

func (mr *MockResourceFetcherMockRecorder) FetchObject(arg0, arg1, arg2 interface{}) *gomock.Call

FetchObject indicates an expected call of FetchObject.

func (*MockResourceFetcherMockRecorder) FetchObjectByName

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

FetchObjectByName indicates an expected call of FetchObjectByName.

func (*MockResourceFetcherMockRecorder) KubeadmConfigTemplate

func (mr *MockResourceFetcherMockRecorder) KubeadmConfigTemplate(arg0, arg1, arg2 interface{}) *gomock.Call

KubeadmConfigTemplate indicates an expected call of KubeadmConfigTemplate.

func (*MockResourceFetcherMockRecorder) MachineDeployment

func (mr *MockResourceFetcherMockRecorder) MachineDeployment(arg0, arg1, arg2 interface{}) *gomock.Call

MachineDeployment indicates an expected call of MachineDeployment.

func (*MockResourceFetcherMockRecorder) OIDCConfig

func (mr *MockResourceFetcherMockRecorder) OIDCConfig(arg0, arg1, arg2 interface{}) *gomock.Call

OIDCConfig indicates an expected call of OIDCConfig.

func (*MockResourceFetcherMockRecorder) VSphereCredentials

func (mr *MockResourceFetcherMockRecorder) VSphereCredentials(arg0 interface{}) *gomock.Call

VSphereCredentials indicates an expected call of VSphereCredentials.

func (*MockResourceFetcherMockRecorder) VSphereWorkerMachineTemplate

func (mr *MockResourceFetcherMockRecorder) VSphereWorkerMachineTemplate(arg0, arg1, arg2 interface{}) *gomock.Call

VSphereWorkerMachineTemplate indicates an expected call of VSphereWorkerMachineTemplate.

type MockResourceUpdater

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

MockResourceUpdater is a mock of ResourceUpdater interface.

func NewMockResourceUpdater

func NewMockResourceUpdater(ctrl *gomock.Controller) *MockResourceUpdater

NewMockResourceUpdater creates a new mock instance.

func (*MockResourceUpdater) ApplyPatch

func (m *MockResourceUpdater) ApplyPatch(arg0 context.Context, arg1 client.Object, arg2 bool) error

ApplyPatch mocks base method.

func (*MockResourceUpdater) ApplyTemplate

func (m *MockResourceUpdater) ApplyTemplate(arg0 context.Context, arg1 *unstructured.Unstructured, arg2 map[string]interface{}, arg3 bool) error

ApplyTemplate mocks base method.

func (*MockResourceUpdater) ApplyUpdatedTemplate

func (m *MockResourceUpdater) ApplyUpdatedTemplate(arg0 context.Context, arg1 *unstructured.Unstructured, arg2 bool) error

ApplyUpdatedTemplate mocks base method.

func (*MockResourceUpdater) CreateResource

func (m *MockResourceUpdater) CreateResource(arg0 context.Context, arg1 *unstructured.Unstructured, arg2 bool) error

CreateResource mocks base method.

func (*MockResourceUpdater) EXPECT

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

func (*MockResourceUpdater) ForceApplyTemplate

func (m *MockResourceUpdater) ForceApplyTemplate(arg0 context.Context, arg1 *unstructured.Unstructured, arg2 bool) error

ForceApplyTemplate mocks base method.

func (*MockResourceUpdater) UpdateTemplate

func (m *MockResourceUpdater) UpdateTemplate(arg0 *unstructured.Unstructured, arg1 map[string]interface{}) (bool, error)

UpdateTemplate mocks base method.

type MockResourceUpdaterMockRecorder

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

MockResourceUpdaterMockRecorder is the mock recorder for MockResourceUpdater.

func (*MockResourceUpdaterMockRecorder) ApplyPatch

func (mr *MockResourceUpdaterMockRecorder) ApplyPatch(arg0, arg1, arg2 interface{}) *gomock.Call

ApplyPatch indicates an expected call of ApplyPatch.

func (*MockResourceUpdaterMockRecorder) ApplyTemplate

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

ApplyTemplate indicates an expected call of ApplyTemplate.

func (*MockResourceUpdaterMockRecorder) ApplyUpdatedTemplate

func (mr *MockResourceUpdaterMockRecorder) ApplyUpdatedTemplate(arg0, arg1, arg2 interface{}) *gomock.Call

ApplyUpdatedTemplate indicates an expected call of ApplyUpdatedTemplate.

func (*MockResourceUpdaterMockRecorder) CreateResource

func (mr *MockResourceUpdaterMockRecorder) CreateResource(arg0, arg1, arg2 interface{}) *gomock.Call

CreateResource indicates an expected call of CreateResource.

func (*MockResourceUpdaterMockRecorder) ForceApplyTemplate

func (mr *MockResourceUpdaterMockRecorder) ForceApplyTemplate(arg0, arg1, arg2 interface{}) *gomock.Call

ForceApplyTemplate indicates an expected call of ForceApplyTemplate.

func (*MockResourceUpdaterMockRecorder) UpdateTemplate

func (mr *MockResourceUpdaterMockRecorder) UpdateTemplate(arg0, arg1 interface{}) *gomock.Call

UpdateTemplate indicates an expected call of UpdateTemplate.

Jump to

Keyboard shortcuts

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