mock_scalers

package
v2.7.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mock_scalers is a generated GoMock package.

Index

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

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.

func (*MockPushScaler) IsActive

func (m *MockPushScaler) IsActive(ctx context.Context) (bool, error)

IsActive mocks base method.

func (*MockPushScaler) Run

func (m *MockPushScaler) Run(ctx context.Context, active chan<- bool)

Run 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.

func (*MockScaler) IsActive

func (m *MockScaler) IsActive(ctx context.Context) (bool, error)

IsActive 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.

Jump to

Keyboard shortcuts

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