Documentation ¶
Overview ¶
Package mock_scalers is a generated GoMock package.
Index ¶
- type MockPushScaler
- func (m *MockPushScaler) Close(ctx context.Context) error
- func (m *MockPushScaler) EXPECT() *MockPushScalerMockRecorder
- func (m *MockPushScaler) GetMetricSpecForScaling(ctx context.Context) []v2beta2.MetricSpec
- func (m *MockPushScaler) GetMetrics(ctx context.Context, metricName string, metricSelector labels.Selector) ([]external_metrics.ExternalMetricValue, error)
- func (m *MockPushScaler) IsActive(ctx context.Context) (bool, error)
- func (m *MockPushScaler) Run(ctx context.Context, active chan<- bool)
- type MockPushScalerMockRecorder
- func (mr *MockPushScalerMockRecorder) Close(ctx interface{}) *gomock.Call
- func (mr *MockPushScalerMockRecorder) GetMetricSpecForScaling(ctx interface{}) *gomock.Call
- func (mr *MockPushScalerMockRecorder) GetMetrics(ctx, metricName, metricSelector interface{}) *gomock.Call
- func (mr *MockPushScalerMockRecorder) IsActive(ctx interface{}) *gomock.Call
- func (mr *MockPushScalerMockRecorder) Run(ctx, active interface{}) *gomock.Call
- type MockScaler
- func (m *MockScaler) Close(ctx context.Context) error
- func (m *MockScaler) EXPECT() *MockScalerMockRecorder
- func (m *MockScaler) GetMetricSpecForScaling(ctx context.Context) []v2beta2.MetricSpec
- func (m *MockScaler) GetMetrics(ctx context.Context, metricName string, metricSelector labels.Selector) ([]external_metrics.ExternalMetricValue, error)
- func (m *MockScaler) IsActive(ctx context.Context) (bool, error)
- type MockScalerMockRecorder
- func (mr *MockScalerMockRecorder) Close(ctx interface{}) *gomock.Call
- func (mr *MockScalerMockRecorder) GetMetricSpecForScaling(ctx interface{}) *gomock.Call
- func (mr *MockScalerMockRecorder) GetMetrics(ctx, metricName, metricSelector interface{}) *gomock.Call
- func (mr *MockScalerMockRecorder) IsActive(ctx interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockPushScaler ¶
type MockPushScaler struct {
// contains filtered or unexported fields
}
MockPushScaler is a mock of PushScaler interface.
func NewMockPushScaler ¶
func NewMockPushScaler(ctrl *gomock.Controller) *MockPushScaler
NewMockPushScaler creates a new mock instance.
func (*MockPushScaler) Close ¶
func (m *MockPushScaler) Close(ctx context.Context) error
Close mocks base method.
func (*MockPushScaler) EXPECT ¶
func (m *MockPushScaler) EXPECT() *MockPushScalerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPushScaler) GetMetricSpecForScaling ¶
func (m *MockPushScaler) GetMetricSpecForScaling(ctx context.Context) []v2beta2.MetricSpec
GetMetricSpecForScaling mocks base method.
func (*MockPushScaler) GetMetrics ¶
func (m *MockPushScaler) GetMetrics(ctx context.Context, metricName string, metricSelector labels.Selector) ([]external_metrics.ExternalMetricValue, error)
GetMetrics mocks base method.
type MockPushScalerMockRecorder ¶
type MockPushScalerMockRecorder struct {
// contains filtered or unexported fields
}
MockPushScalerMockRecorder is the mock recorder for MockPushScaler.
func (*MockPushScalerMockRecorder) Close ¶
func (mr *MockPushScalerMockRecorder) Close(ctx interface{}) *gomock.Call
Close indicates an expected call of Close.
func (*MockPushScalerMockRecorder) GetMetricSpecForScaling ¶
func (mr *MockPushScalerMockRecorder) GetMetricSpecForScaling(ctx interface{}) *gomock.Call
GetMetricSpecForScaling indicates an expected call of GetMetricSpecForScaling.
func (*MockPushScalerMockRecorder) GetMetrics ¶
func (mr *MockPushScalerMockRecorder) GetMetrics(ctx, metricName, metricSelector interface{}) *gomock.Call
GetMetrics indicates an expected call of GetMetrics.
func (*MockPushScalerMockRecorder) IsActive ¶
func (mr *MockPushScalerMockRecorder) IsActive(ctx interface{}) *gomock.Call
IsActive indicates an expected call of IsActive.
func (*MockPushScalerMockRecorder) Run ¶
func (mr *MockPushScalerMockRecorder) Run(ctx, active interface{}) *gomock.Call
Run indicates an expected call of Run.
type MockScaler ¶
type MockScaler struct {
// contains filtered or unexported fields
}
MockScaler is a mock of Scaler interface.
func NewMockScaler ¶
func NewMockScaler(ctrl *gomock.Controller) *MockScaler
NewMockScaler creates a new mock instance.
func (*MockScaler) Close ¶
func (m *MockScaler) Close(ctx context.Context) error
Close mocks base method.
func (*MockScaler) EXPECT ¶
func (m *MockScaler) EXPECT() *MockScalerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockScaler) GetMetricSpecForScaling ¶
func (m *MockScaler) GetMetricSpecForScaling(ctx context.Context) []v2beta2.MetricSpec
GetMetricSpecForScaling mocks base method.
func (*MockScaler) GetMetrics ¶
func (m *MockScaler) GetMetrics(ctx context.Context, metricName string, metricSelector labels.Selector) ([]external_metrics.ExternalMetricValue, error)
GetMetrics mocks base method.
type MockScalerMockRecorder ¶
type MockScalerMockRecorder struct {
// contains filtered or unexported fields
}
MockScalerMockRecorder is the mock recorder for MockScaler.
func (*MockScalerMockRecorder) Close ¶
func (mr *MockScalerMockRecorder) Close(ctx interface{}) *gomock.Call
Close indicates an expected call of Close.
func (*MockScalerMockRecorder) GetMetricSpecForScaling ¶
func (mr *MockScalerMockRecorder) GetMetricSpecForScaling(ctx interface{}) *gomock.Call
GetMetricSpecForScaling indicates an expected call of GetMetricSpecForScaling.
func (*MockScalerMockRecorder) GetMetrics ¶
func (mr *MockScalerMockRecorder) GetMetrics(ctx, metricName, metricSelector interface{}) *gomock.Call
GetMetrics indicates an expected call of GetMetrics.
func (*MockScalerMockRecorder) IsActive ¶
func (mr *MockScalerMockRecorder) IsActive(ctx interface{}) *gomock.Call
IsActive indicates an expected call of IsActive.