mock_discovery

package
v1.1.0-beta36 Latest Latest
Warning

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

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

Documentation

Overview

Package mock_discovery 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) AddDestinations added in v1.0.0

func (m *MockBuilder) AddDestinations(destinations ...*v1.Destination)

AddDestinations mocks base method.

func (*MockBuilder) AddMeshes

func (m *MockBuilder) AddMeshes(meshes ...*v1.Mesh)

AddMeshes mocks base method.

func (*MockBuilder) AddWorkloads

func (m *MockBuilder) AddWorkloads(workloads ...*v1.Workload)

AddWorkloads mocks base method.

func (*MockBuilder) BuildLabelPartitionedSnapshot

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

BuildLabelPartitionedSnapshot mocks base method.

func (*MockBuilder) BuildSinglePartitionedSnapshot

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

BuildSinglePartitionedSnapshot mocks base method.

func (*MockBuilder) Clone

func (m *MockBuilder) Clone() discovery.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) GetDestinations added in v1.0.0

func (m *MockBuilder) GetDestinations() v1sets.DestinationSet

GetDestinations mocks base method.

func (*MockBuilder) GetMeshes

func (m *MockBuilder) GetMeshes() v1sets.MeshSet

GetMeshes mocks base method.

func (*MockBuilder) GetWorkloads

func (m *MockBuilder) GetWorkloads() v1sets.WorkloadSet

GetWorkloads mocks base method.

func (*MockBuilder) Merge

func (m *MockBuilder) Merge(other discovery.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) AddDestinations added in v1.0.0

func (mr *MockBuilderMockRecorder) AddDestinations(destinations ...interface{}) *gomock.Call

AddDestinations indicates an expected call of AddDestinations.

func (*MockBuilderMockRecorder) AddMeshes

func (mr *MockBuilderMockRecorder) AddMeshes(meshes ...interface{}) *gomock.Call

AddMeshes indicates an expected call of AddMeshes.

func (*MockBuilderMockRecorder) AddWorkloads

func (mr *MockBuilderMockRecorder) AddWorkloads(workloads ...interface{}) *gomock.Call

AddWorkloads indicates an expected call of AddWorkloads.

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) GetDestinations added in v1.0.0

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

GetDestinations indicates an expected call of GetDestinations.

func (*MockBuilderMockRecorder) GetMeshes

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

GetMeshes indicates an expected call of GetMeshes.

func (*MockBuilderMockRecorder) GetWorkloads

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

GetWorkloads indicates an expected call of GetWorkloads.

func (*MockBuilderMockRecorder) Merge

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

Merge indicates an expected call of Merge.

type MockLabeledDestinationSet added in v1.0.0

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

MockLabeledDestinationSet is a mock of LabeledDestinationSet interface.

func NewMockLabeledDestinationSet added in v1.0.0

func NewMockLabeledDestinationSet(ctrl *gomock.Controller) *MockLabeledDestinationSet

NewMockLabeledDestinationSet creates a new mock instance.

func (*MockLabeledDestinationSet) EXPECT added in v1.0.0

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

func (*MockLabeledDestinationSet) Generic added in v1.0.0

Generic mocks base method.

func (*MockLabeledDestinationSet) Labels added in v1.0.0

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

Labels mocks base method.

func (*MockLabeledDestinationSet) Set added in v1.0.0

Set mocks base method.

type MockLabeledDestinationSetMockRecorder added in v1.0.0

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

MockLabeledDestinationSetMockRecorder is the mock recorder for MockLabeledDestinationSet.

func (*MockLabeledDestinationSetMockRecorder) Generic added in v1.0.0

Generic indicates an expected call of Generic.

func (*MockLabeledDestinationSetMockRecorder) Labels added in v1.0.0

Labels indicates an expected call of Labels.

func (*MockLabeledDestinationSetMockRecorder) Set added in v1.0.0

Set indicates an expected call of Set.

type MockLabeledMeshSet

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

MockLabeledMeshSet is a mock of LabeledMeshSet interface.

func NewMockLabeledMeshSet

func NewMockLabeledMeshSet(ctrl *gomock.Controller) *MockLabeledMeshSet

NewMockLabeledMeshSet creates a new mock instance.

func (*MockLabeledMeshSet) EXPECT

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

func (*MockLabeledMeshSet) Generic

func (m *MockLabeledMeshSet) Generic() output.ResourceList

Generic mocks base method.

func (*MockLabeledMeshSet) Labels

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

Labels mocks base method.

func (*MockLabeledMeshSet) Set

Set mocks base method.

type MockLabeledMeshSetMockRecorder

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

MockLabeledMeshSetMockRecorder is the mock recorder for MockLabeledMeshSet.

func (*MockLabeledMeshSetMockRecorder) Generic

Generic indicates an expected call of Generic.

func (*MockLabeledMeshSetMockRecorder) Labels

Labels indicates an expected call of Labels.

func (*MockLabeledMeshSetMockRecorder) Set

Set indicates an expected call of Set.

type MockLabeledWorkloadSet

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

MockLabeledWorkloadSet is a mock of LabeledWorkloadSet interface.

func NewMockLabeledWorkloadSet

func NewMockLabeledWorkloadSet(ctrl *gomock.Controller) *MockLabeledWorkloadSet

NewMockLabeledWorkloadSet creates a new mock instance.

func (*MockLabeledWorkloadSet) EXPECT

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

func (*MockLabeledWorkloadSet) Generic

Generic mocks base method.

func (*MockLabeledWorkloadSet) Labels

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

Labels mocks base method.

func (*MockLabeledWorkloadSet) Set

Set mocks base method.

type MockLabeledWorkloadSetMockRecorder

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

MockLabeledWorkloadSetMockRecorder is the mock recorder for MockLabeledWorkloadSet.

func (*MockLabeledWorkloadSetMockRecorder) Generic

Generic indicates an expected call of Generic.

func (*MockLabeledWorkloadSetMockRecorder) Labels

Labels indicates an expected call of Labels.

func (*MockLabeledWorkloadSetMockRecorder) 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) Destinations added in v1.0.0

func (m *MockSnapshot) Destinations() []discovery.LabeledDestinationSet

Destinations 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) Meshes

func (m *MockSnapshot) Meshes() []discovery.LabeledMeshSet

Meshes mocks base method.

func (*MockSnapshot) Workloads

func (m *MockSnapshot) Workloads() []discovery.LabeledWorkloadSet

Workloads 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) Destinations added in v1.0.0

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

Destinations indicates an expected call of Destinations.

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

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

Meshes indicates an expected call of Meshes.

func (*MockSnapshotMockRecorder) Workloads

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

Workloads indicates an expected call of Workloads.

Jump to

Keyboard shortcuts

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