Documentation ¶
Overview ¶
Package testing is a generated GoMock package.
Index ¶
- type MockFilterPlugin
- type MockFilterPluginMockRecorder
- type MockFramework
- func (m *MockFramework) EXPECT() *MockFrameworkMockRecorder
- func (m *MockFramework) RunFilterPlugins(ctx context.Context, bindingSpec *v1alpha2.ResourceBindingSpec, ...) *framework.Result
- func (m *MockFramework) RunScorePlugins(ctx context.Context, spec *v1alpha2.ResourceBindingSpec, ...) (framework.PluginToClusterScores, *framework.Result)
- type MockFrameworkMockRecorder
- type MockPlugin
- type MockPluginMockRecorder
- type MockScoreExtensions
- type MockScoreExtensionsMockRecorder
- type MockScorePlugin
- type MockScorePluginMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockFilterPlugin ¶
type MockFilterPlugin struct {
// contains filtered or unexported fields
}
MockFilterPlugin is a mock of FilterPlugin interface.
func NewMockFilterPlugin ¶
func NewMockFilterPlugin(ctrl *gomock.Controller) *MockFilterPlugin
NewMockFilterPlugin creates a new mock instance.
func (*MockFilterPlugin) EXPECT ¶
func (m *MockFilterPlugin) EXPECT() *MockFilterPluginMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockFilterPlugin) Filter ¶
func (m *MockFilterPlugin) Filter(ctx context.Context, bindingSpec *v1alpha2.ResourceBindingSpec, bindingStatus *v1alpha2.ResourceBindingStatus, cluster *v1alpha1.Cluster) *framework.Result
Filter mocks base method.
type MockFilterPluginMockRecorder ¶
type MockFilterPluginMockRecorder struct {
// contains filtered or unexported fields
}
MockFilterPluginMockRecorder is the mock recorder for MockFilterPlugin.
func (*MockFilterPluginMockRecorder) Filter ¶
func (mr *MockFilterPluginMockRecorder) Filter(ctx, bindingSpec, bindingStatus, cluster interface{}) *gomock.Call
Filter indicates an expected call of Filter.
func (*MockFilterPluginMockRecorder) Name ¶
func (mr *MockFilterPluginMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
type MockFramework ¶
type MockFramework struct {
// contains filtered or unexported fields
}
MockFramework is a mock of Framework interface.
func NewMockFramework ¶
func NewMockFramework(ctrl *gomock.Controller) *MockFramework
NewMockFramework creates a new mock instance.
func (*MockFramework) EXPECT ¶
func (m *MockFramework) EXPECT() *MockFrameworkMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockFramework) RunFilterPlugins ¶
func (m *MockFramework) RunFilterPlugins(ctx context.Context, bindingSpec *v1alpha2.ResourceBindingSpec, bindingStatus *v1alpha2.ResourceBindingStatus, cluster *v1alpha1.Cluster) *framework.Result
RunFilterPlugins mocks base method.
func (*MockFramework) RunScorePlugins ¶
func (m *MockFramework) RunScorePlugins(ctx context.Context, spec *v1alpha2.ResourceBindingSpec, clusters []*v1alpha1.Cluster) (framework.PluginToClusterScores, *framework.Result)
RunScorePlugins mocks base method.
type MockFrameworkMockRecorder ¶
type MockFrameworkMockRecorder struct {
// contains filtered or unexported fields
}
MockFrameworkMockRecorder is the mock recorder for MockFramework.
func (*MockFrameworkMockRecorder) RunFilterPlugins ¶
func (mr *MockFrameworkMockRecorder) RunFilterPlugins(ctx, bindingSpec, bindingStatus, cluster interface{}) *gomock.Call
RunFilterPlugins indicates an expected call of RunFilterPlugins.
func (*MockFrameworkMockRecorder) RunScorePlugins ¶
func (mr *MockFrameworkMockRecorder) RunScorePlugins(ctx, spec, clusters interface{}) *gomock.Call
RunScorePlugins indicates an expected call of RunScorePlugins.
type MockPlugin ¶
type MockPlugin struct {
// contains filtered or unexported fields
}
MockPlugin is a mock of Plugin interface.
func NewMockPlugin ¶
func NewMockPlugin(ctrl *gomock.Controller) *MockPlugin
NewMockPlugin creates a new mock instance.
func (*MockPlugin) EXPECT ¶
func (m *MockPlugin) EXPECT() *MockPluginMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockPluginMockRecorder ¶
type MockPluginMockRecorder struct {
// contains filtered or unexported fields
}
MockPluginMockRecorder is the mock recorder for MockPlugin.
func (*MockPluginMockRecorder) Name ¶
func (mr *MockPluginMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
type MockScoreExtensions ¶
type MockScoreExtensions struct {
// contains filtered or unexported fields
}
MockScoreExtensions is a mock of ScoreExtensions interface.
func NewMockScoreExtensions ¶
func NewMockScoreExtensions(ctrl *gomock.Controller) *MockScoreExtensions
NewMockScoreExtensions creates a new mock instance.
func (*MockScoreExtensions) EXPECT ¶
func (m *MockScoreExtensions) EXPECT() *MockScoreExtensionsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockScoreExtensions) NormalizeScore ¶
func (m *MockScoreExtensions) NormalizeScore(ctx context.Context, scores framework.ClusterScoreList) *framework.Result
NormalizeScore mocks base method.
type MockScoreExtensionsMockRecorder ¶
type MockScoreExtensionsMockRecorder struct {
// contains filtered or unexported fields
}
MockScoreExtensionsMockRecorder is the mock recorder for MockScoreExtensions.
func (*MockScoreExtensionsMockRecorder) NormalizeScore ¶
func (mr *MockScoreExtensionsMockRecorder) NormalizeScore(ctx, scores interface{}) *gomock.Call
NormalizeScore indicates an expected call of NormalizeScore.
type MockScorePlugin ¶
type MockScorePlugin struct {
// contains filtered or unexported fields
}
MockScorePlugin is a mock of ScorePlugin interface.
func NewMockScorePlugin ¶
func NewMockScorePlugin(ctrl *gomock.Controller) *MockScorePlugin
NewMockScorePlugin creates a new mock instance.
func (*MockScorePlugin) EXPECT ¶
func (m *MockScorePlugin) EXPECT() *MockScorePluginMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockScorePlugin) Score ¶
func (m *MockScorePlugin) Score(ctx context.Context, spec *v1alpha2.ResourceBindingSpec, cluster *v1alpha1.Cluster) (int64, *framework.Result)
Score mocks base method.
func (*MockScorePlugin) ScoreExtensions ¶
func (m *MockScorePlugin) ScoreExtensions() framework.ScoreExtensions
ScoreExtensions mocks base method.
type MockScorePluginMockRecorder ¶
type MockScorePluginMockRecorder struct {
// contains filtered or unexported fields
}
MockScorePluginMockRecorder is the mock recorder for MockScorePlugin.
func (*MockScorePluginMockRecorder) Name ¶
func (mr *MockScorePluginMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockScorePluginMockRecorder) Score ¶
func (mr *MockScorePluginMockRecorder) Score(ctx, spec, cluster interface{}) *gomock.Call
Score indicates an expected call of Score.
func (*MockScorePluginMockRecorder) ScoreExtensions ¶
func (mr *MockScorePluginMockRecorder) ScoreExtensions() *gomock.Call
ScoreExtensions indicates an expected call of ScoreExtensions.