mock_local

package
v1.1.0-beta31 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package mock_local is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBuilder

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

MockBuilder is a mock of Builder interface.

func NewMockBuilder

func NewMockBuilder(ctrl *gomock.Controller) *MockBuilder

NewMockBuilder creates a new mock instance.

func (*MockBuilder) AddCluster

func (m *MockBuilder) AddCluster(cluster string)

AddCluster mocks base method.

func (*MockBuilder) AddSecrets

func (m *MockBuilder) AddSecrets(secrets ...*v1.Secret)

AddSecrets mocks base method.

func (*MockBuilder) BuildLabelPartitionedSnapshot

func (m *MockBuilder) BuildLabelPartitionedSnapshot(labelKey string) (local.Snapshot, error)

BuildLabelPartitionedSnapshot mocks base method.

func (*MockBuilder) BuildSinglePartitionedSnapshot

func (m *MockBuilder) BuildSinglePartitionedSnapshot(snapshotLabels map[string]string) (local.Snapshot, error)

BuildSinglePartitionedSnapshot mocks base method.

func (*MockBuilder) Clone

func (m *MockBuilder) Clone() local.Builder

Clone mocks base method.

func (*MockBuilder) Clusters

func (m *MockBuilder) Clusters() []string

Clusters mocks base method.

func (*MockBuilder) EXPECT

func (m *MockBuilder) EXPECT() *MockBuilderMockRecorder

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

func (*MockBuilder) ForEachObject added in v1.1.0

func (m *MockBuilder) ForEachObject(handleObject func(string, schema.GroupVersionKind, resource.TypedObject))

ForEachObject mocks base method.

func (*MockBuilder) Generic added in v0.12.7

func (m *MockBuilder) Generic() resource.ClusterSnapshot

Generic mocks base method.

func (*MockBuilder) GetSecrets

func (m *MockBuilder) GetSecrets() v1sets.SecretSet

GetSecrets mocks base method.

func (*MockBuilder) Merge

func (m *MockBuilder) Merge(other local.Builder)

Merge mocks base method.

type MockBuilderMockRecorder

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

MockBuilderMockRecorder is the mock recorder for MockBuilder.

func (*MockBuilderMockRecorder) AddCluster

func (mr *MockBuilderMockRecorder) AddCluster(cluster interface{}) *gomock.Call

AddCluster indicates an expected call of AddCluster.

func (*MockBuilderMockRecorder) AddSecrets

func (mr *MockBuilderMockRecorder) AddSecrets(secrets ...interface{}) *gomock.Call

AddSecrets indicates an expected call of AddSecrets.

func (*MockBuilderMockRecorder) BuildLabelPartitionedSnapshot

func (mr *MockBuilderMockRecorder) BuildLabelPartitionedSnapshot(labelKey interface{}) *gomock.Call

BuildLabelPartitionedSnapshot indicates an expected call of BuildLabelPartitionedSnapshot.

func (*MockBuilderMockRecorder) BuildSinglePartitionedSnapshot

func (mr *MockBuilderMockRecorder) BuildSinglePartitionedSnapshot(snapshotLabels interface{}) *gomock.Call

BuildSinglePartitionedSnapshot indicates an expected call of BuildSinglePartitionedSnapshot.

func (*MockBuilderMockRecorder) Clone

func (mr *MockBuilderMockRecorder) Clone() *gomock.Call

Clone indicates an expected call of Clone.

func (*MockBuilderMockRecorder) Clusters

func (mr *MockBuilderMockRecorder) Clusters() *gomock.Call

Clusters indicates an expected call of Clusters.

func (*MockBuilderMockRecorder) ForEachObject added in v1.1.0

func (mr *MockBuilderMockRecorder) ForEachObject(handleObject interface{}) *gomock.Call

ForEachObject indicates an expected call of ForEachObject.

func (*MockBuilderMockRecorder) Generic added in v0.12.7

func (mr *MockBuilderMockRecorder) Generic() *gomock.Call

Generic indicates an expected call of Generic.

func (*MockBuilderMockRecorder) GetSecrets

func (mr *MockBuilderMockRecorder) GetSecrets() *gomock.Call

GetSecrets indicates an expected call of GetSecrets.

func (*MockBuilderMockRecorder) Merge

func (mr *MockBuilderMockRecorder) Merge(other interface{}) *gomock.Call

Merge indicates an expected call of Merge.

type MockLabeledSecretSet

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

MockLabeledSecretSet is a mock of LabeledSecretSet interface.

func NewMockLabeledSecretSet

func NewMockLabeledSecretSet(ctrl *gomock.Controller) *MockLabeledSecretSet

NewMockLabeledSecretSet creates a new mock instance.

func (*MockLabeledSecretSet) EXPECT

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

func (*MockLabeledSecretSet) Generic

Generic mocks base method.

func (*MockLabeledSecretSet) Labels

func (m *MockLabeledSecretSet) Labels() map[string]string

Labels mocks base method.

func (*MockLabeledSecretSet) Set

Set mocks base method.

type MockLabeledSecretSetMockRecorder

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

MockLabeledSecretSetMockRecorder is the mock recorder for MockLabeledSecretSet.

func (*MockLabeledSecretSetMockRecorder) Generic

Generic indicates an expected call of Generic.

func (*MockLabeledSecretSetMockRecorder) Labels

Labels indicates an expected call of Labels.

func (*MockLabeledSecretSetMockRecorder) Set

Set indicates an expected call of Set.

type MockSnapshot

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

MockSnapshot is a mock of Snapshot interface.

func NewMockSnapshot

func NewMockSnapshot(ctrl *gomock.Controller) *MockSnapshot

NewMockSnapshot creates a new mock instance.

func (*MockSnapshot) ApplyLocalCluster

func (m *MockSnapshot) ApplyLocalCluster(ctx context.Context, clusterClient client.Client, errHandler output.ErrorHandler)

ApplyLocalCluster mocks base method.

func (*MockSnapshot) ApplyMultiCluster

func (m *MockSnapshot) ApplyMultiCluster(ctx context.Context, multiClusterClient multicluster.Client, errHandler output.ErrorHandler)

ApplyMultiCluster mocks base method.

func (*MockSnapshot) EXPECT

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

func (*MockSnapshot) ForEachObject added in v1.1.0

func (m *MockSnapshot) ForEachObject(handleObject func(string, schema.GroupVersionKind, resource.TypedObject))

ForEachObject mocks base method.

func (*MockSnapshot) Generic added in v1.1.0

func (m *MockSnapshot) Generic() resource.ClusterSnapshot

Generic mocks base method.

func (*MockSnapshot) MarshalJSON

func (m *MockSnapshot) MarshalJSON() ([]byte, error)

MarshalJSON mocks base method.

func (*MockSnapshot) Secrets

func (m *MockSnapshot) Secrets() []local.LabeledSecretSet

Secrets mocks base method.

type MockSnapshotMockRecorder

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

MockSnapshotMockRecorder is the mock recorder for MockSnapshot.

func (*MockSnapshotMockRecorder) ApplyLocalCluster

func (mr *MockSnapshotMockRecorder) ApplyLocalCluster(ctx, clusterClient, errHandler interface{}) *gomock.Call

ApplyLocalCluster indicates an expected call of ApplyLocalCluster.

func (*MockSnapshotMockRecorder) ApplyMultiCluster

func (mr *MockSnapshotMockRecorder) ApplyMultiCluster(ctx, multiClusterClient, errHandler interface{}) *gomock.Call

ApplyMultiCluster indicates an expected call of ApplyMultiCluster.

func (*MockSnapshotMockRecorder) ForEachObject added in v1.1.0

func (mr *MockSnapshotMockRecorder) ForEachObject(handleObject interface{}) *gomock.Call

ForEachObject indicates an expected call of ForEachObject.

func (*MockSnapshotMockRecorder) Generic added in v1.1.0

func (mr *MockSnapshotMockRecorder) Generic() *gomock.Call

Generic indicates an expected call of Generic.

func (*MockSnapshotMockRecorder) MarshalJSON

func (mr *MockSnapshotMockRecorder) MarshalJSON() *gomock.Call

MarshalJSON indicates an expected call of MarshalJSON.

func (*MockSnapshotMockRecorder) Secrets

func (mr *MockSnapshotMockRecorder) Secrets() *gomock.Call

Secrets indicates an expected call of Secrets.

Jump to

Keyboard shortcuts

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