Documentation ¶
Overview ¶
Package mock_smi is a generated GoMock package.
Index ¶
- type MockBuilder
- func (m *MockBuilder) AddCluster(cluster string)
- func (m *MockBuilder) AddHTTPRouteGroups(hTTPRouteGroups ...*v1alpha3.HTTPRouteGroup)
- func (m *MockBuilder) AddTrafficSplits(trafficSplits ...*v1alpha20.TrafficSplit)
- func (m *MockBuilder) AddTrafficTargets(trafficTargets ...*v1alpha2.TrafficTarget)
- func (m *MockBuilder) BuildLabelPartitionedSnapshot(labelKey string) (smi.Snapshot, error)
- func (m *MockBuilder) BuildSinglePartitionedSnapshot(snapshotLabels map[string]string) (smi.Snapshot, error)
- func (m *MockBuilder) Clone() smi.Builder
- func (m *MockBuilder) Clusters() []string
- func (m *MockBuilder) EXPECT() *MockBuilderMockRecorder
- func (m *MockBuilder) Generic() resource.ClusterSnapshot
- func (m *MockBuilder) GetHTTPRouteGroups() v1alpha3sets.HTTPRouteGroupSet
- func (m *MockBuilder) GetTrafficSplits() v1alpha2sets0.TrafficSplitSet
- func (m *MockBuilder) GetTrafficTargets() v1alpha2sets.TrafficTargetSet
- func (m *MockBuilder) Merge(other smi.Builder)
- type MockBuilderMockRecorder
- func (mr *MockBuilderMockRecorder) AddCluster(cluster interface{}) *gomock.Call
- func (mr *MockBuilderMockRecorder) AddHTTPRouteGroups(hTTPRouteGroups ...interface{}) *gomock.Call
- func (mr *MockBuilderMockRecorder) AddTrafficSplits(trafficSplits ...interface{}) *gomock.Call
- func (mr *MockBuilderMockRecorder) AddTrafficTargets(trafficTargets ...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) Generic() *gomock.Call
- func (mr *MockBuilderMockRecorder) GetHTTPRouteGroups() *gomock.Call
- func (mr *MockBuilderMockRecorder) GetTrafficSplits() *gomock.Call
- func (mr *MockBuilderMockRecorder) GetTrafficTargets() *gomock.Call
- func (mr *MockBuilderMockRecorder) Merge(other interface{}) *gomock.Call
- type MockLabeledHTTPRouteGroupSet
- func (m *MockLabeledHTTPRouteGroupSet) EXPECT() *MockLabeledHTTPRouteGroupSetMockRecorder
- func (m *MockLabeledHTTPRouteGroupSet) Generic() output.ResourceList
- func (m *MockLabeledHTTPRouteGroupSet) Labels() map[string]string
- func (m *MockLabeledHTTPRouteGroupSet) Set() v1alpha3sets.HTTPRouteGroupSet
- type MockLabeledHTTPRouteGroupSetMockRecorder
- type MockLabeledTrafficSplitSet
- type MockLabeledTrafficSplitSetMockRecorder
- type MockLabeledTrafficTargetSet
- type MockLabeledTrafficTargetSetMockRecorder
- 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) HTTPRouteGroups() []smi.LabeledHTTPRouteGroupSet
- func (m *MockSnapshot) MarshalJSON() ([]byte, error)
- func (m *MockSnapshot) TrafficSplits() []smi.LabeledTrafficSplitSet
- func (m *MockSnapshot) TrafficTargets() []smi.LabeledTrafficTargetSet
- 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) HTTPRouteGroups() *gomock.Call
- func (mr *MockSnapshotMockRecorder) MarshalJSON() *gomock.Call
- func (mr *MockSnapshotMockRecorder) TrafficSplits() *gomock.Call
- func (mr *MockSnapshotMockRecorder) TrafficTargets() *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) AddHTTPRouteGroups ¶
func (m *MockBuilder) AddHTTPRouteGroups(hTTPRouteGroups ...*v1alpha3.HTTPRouteGroup)
AddHTTPRouteGroups mocks base method
func (*MockBuilder) AddTrafficSplits ¶
func (m *MockBuilder) AddTrafficSplits(trafficSplits ...*v1alpha20.TrafficSplit)
AddTrafficSplits mocks base method
func (*MockBuilder) AddTrafficTargets ¶
func (m *MockBuilder) AddTrafficTargets(trafficTargets ...*v1alpha2.TrafficTarget)
AddTrafficTargets mocks base method
func (*MockBuilder) BuildLabelPartitionedSnapshot ¶
func (m *MockBuilder) BuildLabelPartitionedSnapshot(labelKey string) (smi.Snapshot, error)
BuildLabelPartitionedSnapshot mocks base method
func (*MockBuilder) BuildSinglePartitionedSnapshot ¶
func (m *MockBuilder) BuildSinglePartitionedSnapshot(snapshotLabels map[string]string) (smi.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) Generic ¶ added in v0.12.7
func (m *MockBuilder) Generic() resource.ClusterSnapshot
Generic mocks base method
func (*MockBuilder) GetHTTPRouteGroups ¶
func (m *MockBuilder) GetHTTPRouteGroups() v1alpha3sets.HTTPRouteGroupSet
GetHTTPRouteGroups mocks base method
func (*MockBuilder) GetTrafficSplits ¶
func (m *MockBuilder) GetTrafficSplits() v1alpha2sets0.TrafficSplitSet
GetTrafficSplits mocks base method
func (*MockBuilder) GetTrafficTargets ¶
func (m *MockBuilder) GetTrafficTargets() v1alpha2sets.TrafficTargetSet
GetTrafficTargets 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) AddHTTPRouteGroups ¶
func (mr *MockBuilderMockRecorder) AddHTTPRouteGroups(hTTPRouteGroups ...interface{}) *gomock.Call
AddHTTPRouteGroups indicates an expected call of AddHTTPRouteGroups
func (*MockBuilderMockRecorder) AddTrafficSplits ¶
func (mr *MockBuilderMockRecorder) AddTrafficSplits(trafficSplits ...interface{}) *gomock.Call
AddTrafficSplits indicates an expected call of AddTrafficSplits
func (*MockBuilderMockRecorder) AddTrafficTargets ¶
func (mr *MockBuilderMockRecorder) AddTrafficTargets(trafficTargets ...interface{}) *gomock.Call
AddTrafficTargets indicates an expected call of AddTrafficTargets
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) Generic ¶ added in v0.12.7
func (mr *MockBuilderMockRecorder) Generic() *gomock.Call
Generic indicates an expected call of Generic
func (*MockBuilderMockRecorder) GetHTTPRouteGroups ¶
func (mr *MockBuilderMockRecorder) GetHTTPRouteGroups() *gomock.Call
GetHTTPRouteGroups indicates an expected call of GetHTTPRouteGroups
func (*MockBuilderMockRecorder) GetTrafficSplits ¶
func (mr *MockBuilderMockRecorder) GetTrafficSplits() *gomock.Call
GetTrafficSplits indicates an expected call of GetTrafficSplits
func (*MockBuilderMockRecorder) GetTrafficTargets ¶
func (mr *MockBuilderMockRecorder) GetTrafficTargets() *gomock.Call
GetTrafficTargets indicates an expected call of GetTrafficTargets
func (*MockBuilderMockRecorder) Merge ¶
func (mr *MockBuilderMockRecorder) Merge(other interface{}) *gomock.Call
Merge indicates an expected call of Merge
type MockLabeledHTTPRouteGroupSet ¶
type MockLabeledHTTPRouteGroupSet struct {
// contains filtered or unexported fields
}
MockLabeledHTTPRouteGroupSet is a mock of LabeledHTTPRouteGroupSet interface
func NewMockLabeledHTTPRouteGroupSet ¶
func NewMockLabeledHTTPRouteGroupSet(ctrl *gomock.Controller) *MockLabeledHTTPRouteGroupSet
NewMockLabeledHTTPRouteGroupSet creates a new mock instance
func (*MockLabeledHTTPRouteGroupSet) EXPECT ¶
func (m *MockLabeledHTTPRouteGroupSet) EXPECT() *MockLabeledHTTPRouteGroupSetMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockLabeledHTTPRouteGroupSet) Generic ¶
func (m *MockLabeledHTTPRouteGroupSet) Generic() output.ResourceList
Generic mocks base method
func (*MockLabeledHTTPRouteGroupSet) Labels ¶
func (m *MockLabeledHTTPRouteGroupSet) Labels() map[string]string
Labels mocks base method
func (*MockLabeledHTTPRouteGroupSet) Set ¶
func (m *MockLabeledHTTPRouteGroupSet) Set() v1alpha3sets.HTTPRouteGroupSet
Set mocks base method
type MockLabeledHTTPRouteGroupSetMockRecorder ¶
type MockLabeledHTTPRouteGroupSetMockRecorder struct {
// contains filtered or unexported fields
}
MockLabeledHTTPRouteGroupSetMockRecorder is the mock recorder for MockLabeledHTTPRouteGroupSet
func (*MockLabeledHTTPRouteGroupSetMockRecorder) Generic ¶
func (mr *MockLabeledHTTPRouteGroupSetMockRecorder) Generic() *gomock.Call
Generic indicates an expected call of Generic
func (*MockLabeledHTTPRouteGroupSetMockRecorder) Labels ¶
func (mr *MockLabeledHTTPRouteGroupSetMockRecorder) Labels() *gomock.Call
Labels indicates an expected call of Labels
func (*MockLabeledHTTPRouteGroupSetMockRecorder) Set ¶
func (mr *MockLabeledHTTPRouteGroupSetMockRecorder) Set() *gomock.Call
Set indicates an expected call of Set
type MockLabeledTrafficSplitSet ¶
type MockLabeledTrafficSplitSet struct {
// contains filtered or unexported fields
}
MockLabeledTrafficSplitSet is a mock of LabeledTrafficSplitSet interface
func NewMockLabeledTrafficSplitSet ¶
func NewMockLabeledTrafficSplitSet(ctrl *gomock.Controller) *MockLabeledTrafficSplitSet
NewMockLabeledTrafficSplitSet creates a new mock instance
func (*MockLabeledTrafficSplitSet) EXPECT ¶
func (m *MockLabeledTrafficSplitSet) EXPECT() *MockLabeledTrafficSplitSetMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockLabeledTrafficSplitSet) Generic ¶
func (m *MockLabeledTrafficSplitSet) Generic() output.ResourceList
Generic mocks base method
func (*MockLabeledTrafficSplitSet) Labels ¶
func (m *MockLabeledTrafficSplitSet) Labels() map[string]string
Labels mocks base method
func (*MockLabeledTrafficSplitSet) Set ¶
func (m *MockLabeledTrafficSplitSet) Set() v1alpha2sets0.TrafficSplitSet
Set mocks base method
type MockLabeledTrafficSplitSetMockRecorder ¶
type MockLabeledTrafficSplitSetMockRecorder struct {
// contains filtered or unexported fields
}
MockLabeledTrafficSplitSetMockRecorder is the mock recorder for MockLabeledTrafficSplitSet
func (*MockLabeledTrafficSplitSetMockRecorder) Generic ¶
func (mr *MockLabeledTrafficSplitSetMockRecorder) Generic() *gomock.Call
Generic indicates an expected call of Generic
func (*MockLabeledTrafficSplitSetMockRecorder) Labels ¶
func (mr *MockLabeledTrafficSplitSetMockRecorder) Labels() *gomock.Call
Labels indicates an expected call of Labels
func (*MockLabeledTrafficSplitSetMockRecorder) Set ¶
func (mr *MockLabeledTrafficSplitSetMockRecorder) 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 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) HTTPRouteGroups ¶
func (m *MockSnapshot) HTTPRouteGroups() []smi.LabeledHTTPRouteGroupSet
HTTPRouteGroups mocks base method
func (*MockSnapshot) MarshalJSON ¶
func (m *MockSnapshot) MarshalJSON() ([]byte, error)
MarshalJSON mocks base method
func (*MockSnapshot) TrafficSplits ¶
func (m *MockSnapshot) TrafficSplits() []smi.LabeledTrafficSplitSet
TrafficSplits mocks base method
func (*MockSnapshot) TrafficTargets ¶
func (m *MockSnapshot) TrafficTargets() []smi.LabeledTrafficTargetSet
TrafficTargets 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) HTTPRouteGroups ¶
func (mr *MockSnapshotMockRecorder) HTTPRouteGroups() *gomock.Call
HTTPRouteGroups indicates an expected call of HTTPRouteGroups
func (*MockSnapshotMockRecorder) MarshalJSON ¶
func (mr *MockSnapshotMockRecorder) MarshalJSON() *gomock.Call
MarshalJSON indicates an expected call of MarshalJSON
func (*MockSnapshotMockRecorder) TrafficSplits ¶
func (mr *MockSnapshotMockRecorder) TrafficSplits() *gomock.Call
TrafficSplits indicates an expected call of TrafficSplits
func (*MockSnapshotMockRecorder) TrafficTargets ¶
func (mr *MockSnapshotMockRecorder) TrafficTargets() *gomock.Call
TrafficTargets indicates an expected call of TrafficTargets