Documentation ¶
Overview ¶
Package mock_discovery is a generated GoMock package.
Index ¶
- type MockBuilder
- func (m *MockBuilder) AddCluster(cluster string)
- func (m *MockBuilder) AddMeshes(meshes ...*v1alpha2.Mesh)
- func (m *MockBuilder) AddTrafficTargets(trafficTargets ...*v1alpha2.TrafficTarget)
- func (m *MockBuilder) AddWorkloads(workloads ...*v1alpha2.Workload)
- func (m *MockBuilder) BuildLabelPartitionedSnapshot(labelKey string) (discovery.Snapshot, error)
- func (m *MockBuilder) BuildSinglePartitionedSnapshot(snapshotLabels map[string]string) (discovery.Snapshot, error)
- func (m *MockBuilder) Clone() discovery.Builder
- func (m *MockBuilder) Clusters() []string
- func (m *MockBuilder) EXPECT() *MockBuilderMockRecorder
- func (m *MockBuilder) GetMeshes() v1alpha2sets.MeshSet
- func (m *MockBuilder) GetTrafficTargets() v1alpha2sets.TrafficTargetSet
- func (m *MockBuilder) GetWorkloads() v1alpha2sets.WorkloadSet
- func (m *MockBuilder) Merge(other discovery.Builder)
- type MockBuilderMockRecorder
- func (mr *MockBuilderMockRecorder) AddCluster(cluster interface{}) *gomock.Call
- func (mr *MockBuilderMockRecorder) AddMeshes(meshes ...interface{}) *gomock.Call
- func (mr *MockBuilderMockRecorder) AddTrafficTargets(trafficTargets ...interface{}) *gomock.Call
- func (mr *MockBuilderMockRecorder) AddWorkloads(workloads ...interface{}) *gomock.Call
- func (mr *MockBuilderMockRecorder) BuildLabelPartitionedSnapshot(labelKey interface{}) *gomock.Call
- func (mr *MockBuilderMockRecorder) BuildSinglePartitionedSnapshot(snapshotLabels interface{}) *gomock.Call
- func (mr *MockBuilderMockRecorder) Clone() *gomock.Call
- func (mr *MockBuilderMockRecorder) Clusters() *gomock.Call
- func (mr *MockBuilderMockRecorder) GetMeshes() *gomock.Call
- func (mr *MockBuilderMockRecorder) GetTrafficTargets() *gomock.Call
- func (mr *MockBuilderMockRecorder) GetWorkloads() *gomock.Call
- func (mr *MockBuilderMockRecorder) Merge(other interface{}) *gomock.Call
- type MockLabeledMeshSet
- type MockLabeledMeshSetMockRecorder
- type MockLabeledTrafficTargetSet
- type MockLabeledTrafficTargetSetMockRecorder
- type MockLabeledWorkloadSet
- type MockLabeledWorkloadSetMockRecorder
- type MockSnapshot
- func (m *MockSnapshot) ApplyLocalCluster(ctx context.Context, clusterClient client.Client, ...)
- func (m *MockSnapshot) ApplyMultiCluster(ctx context.Context, multiClusterClient multicluster.Client, ...)
- func (m *MockSnapshot) EXPECT() *MockSnapshotMockRecorder
- func (m *MockSnapshot) MarshalJSON() ([]byte, error)
- func (m *MockSnapshot) Meshes() []discovery.LabeledMeshSet
- func (m *MockSnapshot) TrafficTargets() []discovery.LabeledTrafficTargetSet
- func (m *MockSnapshot) Workloads() []discovery.LabeledWorkloadSet
- type MockSnapshotMockRecorder
- func (mr *MockSnapshotMockRecorder) ApplyLocalCluster(ctx, clusterClient, errHandler interface{}) *gomock.Call
- func (mr *MockSnapshotMockRecorder) ApplyMultiCluster(ctx, multiClusterClient, errHandler interface{}) *gomock.Call
- func (mr *MockSnapshotMockRecorder) MarshalJSON() *gomock.Call
- func (mr *MockSnapshotMockRecorder) Meshes() *gomock.Call
- func (mr *MockSnapshotMockRecorder) TrafficTargets() *gomock.Call
- func (mr *MockSnapshotMockRecorder) Workloads() *gomock.Call
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) AddMeshes ¶
func (m *MockBuilder) AddMeshes(meshes ...*v1alpha2.Mesh)
AddMeshes mocks base method
func (*MockBuilder) AddTrafficTargets ¶
func (m *MockBuilder) AddTrafficTargets(trafficTargets ...*v1alpha2.TrafficTarget)
AddTrafficTargets mocks base method
func (*MockBuilder) AddWorkloads ¶
func (m *MockBuilder) AddWorkloads(workloads ...*v1alpha2.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) EXPECT ¶
func (m *MockBuilder) EXPECT() *MockBuilderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockBuilder) GetMeshes ¶
func (m *MockBuilder) GetMeshes() v1alpha2sets.MeshSet
GetMeshes mocks base method
func (*MockBuilder) GetTrafficTargets ¶
func (m *MockBuilder) GetTrafficTargets() v1alpha2sets.TrafficTargetSet
GetTrafficTargets mocks base method
func (*MockBuilder) GetWorkloads ¶
func (m *MockBuilder) GetWorkloads() v1alpha2sets.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) AddMeshes ¶
func (mr *MockBuilderMockRecorder) AddMeshes(meshes ...interface{}) *gomock.Call
AddMeshes indicates an expected call of AddMeshes
func (*MockBuilderMockRecorder) AddTrafficTargets ¶
func (mr *MockBuilderMockRecorder) AddTrafficTargets(trafficTargets ...interface{}) *gomock.Call
AddTrafficTargets indicates an expected call of AddTrafficTargets
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) GetMeshes ¶
func (mr *MockBuilderMockRecorder) GetMeshes() *gomock.Call
GetMeshes indicates an expected call of GetMeshes
func (*MockBuilderMockRecorder) GetTrafficTargets ¶
func (mr *MockBuilderMockRecorder) GetTrafficTargets() *gomock.Call
GetTrafficTargets indicates an expected call of GetTrafficTargets
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 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 ¶
func (m *MockLabeledMeshSet) EXPECT() *MockLabeledMeshSetMockRecorder
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 ¶
func (m *MockLabeledMeshSet) Set() v1alpha2sets.MeshSet
Set mocks base method
type MockLabeledMeshSetMockRecorder ¶
type MockLabeledMeshSetMockRecorder struct {
// contains filtered or unexported fields
}
MockLabeledMeshSetMockRecorder is the mock recorder for MockLabeledMeshSet
func (*MockLabeledMeshSetMockRecorder) Generic ¶
func (mr *MockLabeledMeshSetMockRecorder) Generic() *gomock.Call
Generic indicates an expected call of Generic
func (*MockLabeledMeshSetMockRecorder) Labels ¶
func (mr *MockLabeledMeshSetMockRecorder) Labels() *gomock.Call
Labels indicates an expected call of Labels
func (*MockLabeledMeshSetMockRecorder) Set ¶
func (mr *MockLabeledMeshSetMockRecorder) Set() *gomock.Call
Set indicates an expected call of Set
type MockLabeledTrafficTargetSet ¶
type MockLabeledTrafficTargetSet struct {
// contains filtered or unexported fields
}
MockLabeledTrafficTargetSet is a mock of LabeledTrafficTargetSet interface
func NewMockLabeledTrafficTargetSet ¶
func NewMockLabeledTrafficTargetSet(ctrl *gomock.Controller) *MockLabeledTrafficTargetSet
NewMockLabeledTrafficTargetSet creates a new mock instance
func (*MockLabeledTrafficTargetSet) EXPECT ¶
func (m *MockLabeledTrafficTargetSet) EXPECT() *MockLabeledTrafficTargetSetMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockLabeledTrafficTargetSet) Generic ¶
func (m *MockLabeledTrafficTargetSet) Generic() output.ResourceList
Generic mocks base method
func (*MockLabeledTrafficTargetSet) Labels ¶
func (m *MockLabeledTrafficTargetSet) Labels() map[string]string
Labels mocks base method
func (*MockLabeledTrafficTargetSet) Set ¶
func (m *MockLabeledTrafficTargetSet) Set() v1alpha2sets.TrafficTargetSet
Set mocks base method
type MockLabeledTrafficTargetSetMockRecorder ¶
type MockLabeledTrafficTargetSetMockRecorder struct {
// contains filtered or unexported fields
}
MockLabeledTrafficTargetSetMockRecorder is the mock recorder for MockLabeledTrafficTargetSet
func (*MockLabeledTrafficTargetSetMockRecorder) Generic ¶
func (mr *MockLabeledTrafficTargetSetMockRecorder) Generic() *gomock.Call
Generic indicates an expected call of Generic
func (*MockLabeledTrafficTargetSetMockRecorder) Labels ¶
func (mr *MockLabeledTrafficTargetSetMockRecorder) Labels() *gomock.Call
Labels indicates an expected call of Labels
func (*MockLabeledTrafficTargetSetMockRecorder) Set ¶
func (mr *MockLabeledTrafficTargetSetMockRecorder) Set() *gomock.Call
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 ¶
func (m *MockLabeledWorkloadSet) EXPECT() *MockLabeledWorkloadSetMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockLabeledWorkloadSet) Generic ¶
func (m *MockLabeledWorkloadSet) Generic() output.ResourceList
Generic mocks base method
func (*MockLabeledWorkloadSet) Labels ¶
func (m *MockLabeledWorkloadSet) Labels() map[string]string
Labels mocks base method
func (*MockLabeledWorkloadSet) Set ¶
func (m *MockLabeledWorkloadSet) Set() v1alpha2sets.WorkloadSet
Set mocks base method
type MockLabeledWorkloadSetMockRecorder ¶
type MockLabeledWorkloadSetMockRecorder struct {
// contains filtered or unexported fields
}
MockLabeledWorkloadSetMockRecorder is the mock recorder for MockLabeledWorkloadSet
func (*MockLabeledWorkloadSetMockRecorder) Generic ¶
func (mr *MockLabeledWorkloadSetMockRecorder) Generic() *gomock.Call
Generic indicates an expected call of Generic
func (*MockLabeledWorkloadSetMockRecorder) Labels ¶
func (mr *MockLabeledWorkloadSetMockRecorder) Labels() *gomock.Call
Labels indicates an expected call of Labels
func (*MockLabeledWorkloadSetMockRecorder) Set ¶
func (mr *MockLabeledWorkloadSetMockRecorder) Set() *gomock.Call
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 ¶
func (m *MockSnapshot) EXPECT() *MockSnapshotMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
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) TrafficTargets ¶
func (m *MockSnapshot) TrafficTargets() []discovery.LabeledTrafficTargetSet
TrafficTargets 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) 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) TrafficTargets ¶
func (mr *MockSnapshotMockRecorder) TrafficTargets() *gomock.Call
TrafficTargets indicates an expected call of TrafficTargets
func (*MockSnapshotMockRecorder) Workloads ¶
func (mr *MockSnapshotMockRecorder) Workloads() *gomock.Call
Workloads indicates an expected call of Workloads