mocks

package
v0.14.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClassificationEngine added in v0.5.0

type MockClassificationEngine struct {
	// contains filtered or unexported fields
}

MockClassificationEngine is a mock of ClassificationEngine interface.

func NewMockClassificationEngine added in v0.5.0

func NewMockClassificationEngine(ctrl *gomock.Controller) *MockClassificationEngine

NewMockClassificationEngine creates a new mock instance.

func (*MockClassificationEngine) EXPECT added in v0.5.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockClassificationEngine) GetClassifier added in v0.5.0

func (m *MockClassificationEngine) GetClassifier(classifierID iface.ClassifierID) iface.Classifier

GetClassifier mocks base method.

func (*MockClassificationEngine) RegisterClassifier added in v0.5.0

func (m *MockClassificationEngine) RegisterClassifier(classifier iface.Classifier) error

RegisterClassifier mocks base method.

func (*MockClassificationEngine) UnregisterClassifier added in v0.5.0

func (m *MockClassificationEngine) UnregisterClassifier(classifier iface.Classifier) error

UnregisterClassifier mocks base method.

type MockClassificationEngineMockRecorder added in v0.5.0

type MockClassificationEngineMockRecorder struct {
	// contains filtered or unexported fields
}

MockClassificationEngineMockRecorder is the mock recorder for MockClassificationEngine.

func (*MockClassificationEngineMockRecorder) GetClassifier added in v0.5.0

func (mr *MockClassificationEngineMockRecorder) GetClassifier(classifierID interface{}) *gomock.Call

GetClassifier indicates an expected call of GetClassifier.

func (*MockClassificationEngineMockRecorder) RegisterClassifier added in v0.5.0

func (mr *MockClassificationEngineMockRecorder) RegisterClassifier(classifier interface{}) *gomock.Call

RegisterClassifier indicates an expected call of RegisterClassifier.

func (*MockClassificationEngineMockRecorder) UnregisterClassifier added in v0.5.0

func (mr *MockClassificationEngineMockRecorder) UnregisterClassifier(classifier interface{}) *gomock.Call

UnregisterClassifier indicates an expected call of UnregisterClassifier.

type MockClassifier added in v0.5.0

type MockClassifier struct {
	// contains filtered or unexported fields
}

MockClassifier is a mock of Classifier interface.

func NewMockClassifier added in v0.5.0

func NewMockClassifier(ctrl *gomock.Controller) *MockClassifier

NewMockClassifier creates a new mock instance.

func (*MockClassifier) EXPECT added in v0.5.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockClassifier) GetClassifierID added in v0.5.0

func (m *MockClassifier) GetClassifierID() iface.ClassifierID

GetClassifierID mocks base method.

func (*MockClassifier) GetRequestCounter added in v0.8.0

func (m *MockClassifier) GetRequestCounter() prometheus.Counter

GetRequestCounter mocks base method.

func (*MockClassifier) GetSelector added in v0.5.0

func (m *MockClassifier) GetSelector() *languagev1.Selector

GetSelector mocks base method.

type MockClassifierMockRecorder added in v0.5.0

type MockClassifierMockRecorder struct {
	// contains filtered or unexported fields
}

MockClassifierMockRecorder is the mock recorder for MockClassifier.

func (*MockClassifierMockRecorder) GetClassifierID added in v0.5.0

func (mr *MockClassifierMockRecorder) GetClassifierID() *gomock.Call

GetClassifierID indicates an expected call of GetClassifierID.

func (*MockClassifierMockRecorder) GetRequestCounter added in v0.8.0

func (mr *MockClassifierMockRecorder) GetRequestCounter() *gomock.Call

GetRequestCounter indicates an expected call of GetRequestCounter.

func (*MockClassifierMockRecorder) GetSelector added in v0.5.0

func (mr *MockClassifierMockRecorder) GetSelector() *gomock.Call

GetSelector indicates an expected call of GetSelector.

type MockConcurrencyLimiter added in v0.5.0

type MockConcurrencyLimiter struct {
	// contains filtered or unexported fields
}

MockConcurrencyLimiter is a mock of ConcurrencyLimiter interface.

func NewMockConcurrencyLimiter added in v0.5.0

func NewMockConcurrencyLimiter(ctrl *gomock.Controller) *MockConcurrencyLimiter

NewMockConcurrencyLimiter creates a new mock instance.

func (*MockConcurrencyLimiter) EXPECT added in v0.5.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockConcurrencyLimiter) GetLatencyObserver added in v0.8.0

func (m *MockConcurrencyLimiter) GetLatencyObserver(labels map[string]string) prometheus.Observer

GetLatencyObserver mocks base method.

func (*MockConcurrencyLimiter) GetLimiterID added in v0.5.0

func (m *MockConcurrencyLimiter) GetLimiterID() iface.LimiterID

GetLimiterID mocks base method.

func (*MockConcurrencyLimiter) GetPolicyName added in v0.5.0

func (m *MockConcurrencyLimiter) GetPolicyName() string

GetPolicyName mocks base method.

func (*MockConcurrencyLimiter) GetRequestCounter added in v0.8.0

func (m *MockConcurrencyLimiter) GetRequestCounter(labels map[string]string) prometheus.Counter

GetRequestCounter mocks base method.

func (*MockConcurrencyLimiter) GetSelector added in v0.5.0

func (m *MockConcurrencyLimiter) GetSelector() *languagev1.Selector

GetSelector mocks base method.

func (*MockConcurrencyLimiter) RunLimiter added in v0.5.0

func (m *MockConcurrencyLimiter) RunLimiter(ctx context.Context, labels map[string]string) *checkv1.LimiterDecision

RunLimiter mocks base method.

type MockConcurrencyLimiterMockRecorder added in v0.5.0

type MockConcurrencyLimiterMockRecorder struct {
	// contains filtered or unexported fields
}

MockConcurrencyLimiterMockRecorder is the mock recorder for MockConcurrencyLimiter.

func (*MockConcurrencyLimiterMockRecorder) GetLatencyObserver added in v0.8.0

func (mr *MockConcurrencyLimiterMockRecorder) GetLatencyObserver(labels interface{}) *gomock.Call

GetLatencyObserver indicates an expected call of GetLatencyObserver.

func (*MockConcurrencyLimiterMockRecorder) GetLimiterID added in v0.5.0

func (mr *MockConcurrencyLimiterMockRecorder) GetLimiterID() *gomock.Call

GetLimiterID indicates an expected call of GetLimiterID.

func (*MockConcurrencyLimiterMockRecorder) GetPolicyName added in v0.5.0

func (mr *MockConcurrencyLimiterMockRecorder) GetPolicyName() *gomock.Call

GetPolicyName indicates an expected call of GetPolicyName.

func (*MockConcurrencyLimiterMockRecorder) GetRequestCounter added in v0.8.0

func (mr *MockConcurrencyLimiterMockRecorder) GetRequestCounter(labels interface{}) *gomock.Call

GetRequestCounter indicates an expected call of GetRequestCounter.

func (*MockConcurrencyLimiterMockRecorder) GetSelector added in v0.5.0

func (mr *MockConcurrencyLimiterMockRecorder) GetSelector() *gomock.Call

GetSelector indicates an expected call of GetSelector.

func (*MockConcurrencyLimiterMockRecorder) RunLimiter added in v0.5.0

func (mr *MockConcurrencyLimiterMockRecorder) RunLimiter(ctx, labels interface{}) *gomock.Call

RunLimiter indicates an expected call of RunLimiter.

type MockEngine

type MockEngine struct {
	// contains filtered or unexported fields
}

MockEngine is a mock of Engine interface.

func NewMockEngine

func NewMockEngine(ctrl *gomock.Controller) *MockEngine

NewMockEngine creates a new mock instance.

func (*MockEngine) EXPECT

func (m *MockEngine) EXPECT() *MockEngineMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockEngine) GetConcurrencyLimiter added in v0.4.0

func (m *MockEngine) GetConcurrencyLimiter(limiterID iface.LimiterID) iface.ConcurrencyLimiter

GetConcurrencyLimiter mocks base method.

func (*MockEngine) GetFluxMeter added in v0.1.3

func (m *MockEngine) GetFluxMeter(fluxMeterName string) iface.FluxMeter

GetFluxMeter mocks base method.

func (*MockEngine) GetRateLimiter added in v0.5.0

func (m *MockEngine) GetRateLimiter(limiterID iface.LimiterID) iface.RateLimiter

GetRateLimiter mocks base method.

func (*MockEngine) ProcessRequest

func (m *MockEngine) ProcessRequest(ctx context.Context, controlPoint string, serviceIDs []string, labels map[string]string) *checkv1.CheckResponse

ProcessRequest mocks base method.

func (*MockEngine) RegisterConcurrencyLimiter

func (m *MockEngine) RegisterConcurrencyLimiter(sa iface.ConcurrencyLimiter) error

RegisterConcurrencyLimiter mocks base method.

func (*MockEngine) RegisterFluxMeter

func (m *MockEngine) RegisterFluxMeter(fm iface.FluxMeter) error

RegisterFluxMeter mocks base method.

func (*MockEngine) RegisterRateLimiter

func (m *MockEngine) RegisterRateLimiter(l iface.RateLimiter) error

RegisterRateLimiter mocks base method.

func (*MockEngine) UnregisterConcurrencyLimiter

func (m *MockEngine) UnregisterConcurrencyLimiter(sa iface.ConcurrencyLimiter) error

UnregisterConcurrencyLimiter mocks base method.

func (*MockEngine) UnregisterFluxMeter

func (m *MockEngine) UnregisterFluxMeter(fm iface.FluxMeter) error

UnregisterFluxMeter mocks base method.

func (*MockEngine) UnregisterRateLimiter

func (m *MockEngine) UnregisterRateLimiter(l iface.RateLimiter) error

UnregisterRateLimiter mocks base method.

type MockEngineMockRecorder

type MockEngineMockRecorder struct {
	// contains filtered or unexported fields
}

MockEngineMockRecorder is the mock recorder for MockEngine.

func (*MockEngineMockRecorder) GetConcurrencyLimiter added in v0.4.0

func (mr *MockEngineMockRecorder) GetConcurrencyLimiter(limiterID interface{}) *gomock.Call

GetConcurrencyLimiter indicates an expected call of GetConcurrencyLimiter.

func (*MockEngineMockRecorder) GetFluxMeter added in v0.1.3

func (mr *MockEngineMockRecorder) GetFluxMeter(fluxMeterName interface{}) *gomock.Call

GetFluxMeter indicates an expected call of GetFluxMeter.

func (*MockEngineMockRecorder) GetRateLimiter added in v0.5.0

func (mr *MockEngineMockRecorder) GetRateLimiter(limiterID interface{}) *gomock.Call

GetRateLimiter indicates an expected call of GetRateLimiter.

func (*MockEngineMockRecorder) ProcessRequest

func (mr *MockEngineMockRecorder) ProcessRequest(ctx, controlPoint, serviceIDs, labels interface{}) *gomock.Call

ProcessRequest indicates an expected call of ProcessRequest.

func (*MockEngineMockRecorder) RegisterConcurrencyLimiter

func (mr *MockEngineMockRecorder) RegisterConcurrencyLimiter(sa interface{}) *gomock.Call

RegisterConcurrencyLimiter indicates an expected call of RegisterConcurrencyLimiter.

func (*MockEngineMockRecorder) RegisterFluxMeter

func (mr *MockEngineMockRecorder) RegisterFluxMeter(fm interface{}) *gomock.Call

RegisterFluxMeter indicates an expected call of RegisterFluxMeter.

func (*MockEngineMockRecorder) RegisterRateLimiter

func (mr *MockEngineMockRecorder) RegisterRateLimiter(l interface{}) *gomock.Call

RegisterRateLimiter indicates an expected call of RegisterRateLimiter.

func (*MockEngineMockRecorder) UnregisterConcurrencyLimiter

func (mr *MockEngineMockRecorder) UnregisterConcurrencyLimiter(sa interface{}) *gomock.Call

UnregisterConcurrencyLimiter indicates an expected call of UnregisterConcurrencyLimiter.

func (*MockEngineMockRecorder) UnregisterFluxMeter

func (mr *MockEngineMockRecorder) UnregisterFluxMeter(fm interface{}) *gomock.Call

UnregisterFluxMeter indicates an expected call of UnregisterFluxMeter.

func (*MockEngineMockRecorder) UnregisterRateLimiter

func (mr *MockEngineMockRecorder) UnregisterRateLimiter(l interface{}) *gomock.Call

UnregisterRateLimiter indicates an expected call of UnregisterRateLimiter.

type MockFluxMeter

type MockFluxMeter struct {
	// contains filtered or unexported fields
}

MockFluxMeter is a mock of FluxMeter interface.

func NewMockFluxMeter

func NewMockFluxMeter(ctrl *gomock.Controller) *MockFluxMeter

NewMockFluxMeter creates a new mock instance.

func (*MockFluxMeter) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockFluxMeter) GetAttributeKey added in v0.1.3

func (m *MockFluxMeter) GetAttributeKey() string

GetAttributeKey mocks base method.

func (*MockFluxMeter) GetFluxMeterID

func (m *MockFluxMeter) GetFluxMeterID() iface.FluxMeterID

GetFluxMeterID mocks base method.

func (*MockFluxMeter) GetFluxMeterName

func (m *MockFluxMeter) GetFluxMeterName() string

GetFluxMeterName mocks base method.

func (*MockFluxMeter) GetHistogram

func (m *MockFluxMeter) GetHistogram(labels map[string]string) prometheus.Observer

GetHistogram mocks base method.

func (*MockFluxMeter) GetSelector

func (m *MockFluxMeter) GetSelector() *languagev1.Selector

GetSelector mocks base method.

type MockFluxMeterMockRecorder

type MockFluxMeterMockRecorder struct {
	// contains filtered or unexported fields
}

MockFluxMeterMockRecorder is the mock recorder for MockFluxMeter.

func (*MockFluxMeterMockRecorder) GetAttributeKey added in v0.1.3

func (mr *MockFluxMeterMockRecorder) GetAttributeKey() *gomock.Call

GetAttributeKey indicates an expected call of GetAttributeKey.

func (*MockFluxMeterMockRecorder) GetFluxMeterID

func (mr *MockFluxMeterMockRecorder) GetFluxMeterID() *gomock.Call

GetFluxMeterID indicates an expected call of GetFluxMeterID.

func (*MockFluxMeterMockRecorder) GetFluxMeterName

func (mr *MockFluxMeterMockRecorder) GetFluxMeterName() *gomock.Call

GetFluxMeterName indicates an expected call of GetFluxMeterName.

func (*MockFluxMeterMockRecorder) GetHistogram

func (mr *MockFluxMeterMockRecorder) GetHistogram(labels interface{}) *gomock.Call

GetHistogram indicates an expected call of GetHistogram.

func (*MockFluxMeterMockRecorder) GetSelector

func (mr *MockFluxMeterMockRecorder) GetSelector() *gomock.Call

GetSelector indicates an expected call of GetSelector.

type MockLimiter

type MockLimiter struct {
	// contains filtered or unexported fields
}

MockLimiter is a mock of Limiter interface.

func NewMockLimiter

func NewMockLimiter(ctrl *gomock.Controller) *MockLimiter

NewMockLimiter creates a new mock instance.

func (*MockLimiter) EXPECT

func (m *MockLimiter) EXPECT() *MockLimiterMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockLimiter) GetLimiterID

func (m *MockLimiter) GetLimiterID() iface.LimiterID

GetLimiterID mocks base method.

func (*MockLimiter) GetPolicyName

func (m *MockLimiter) GetPolicyName() string

GetPolicyName mocks base method.

func (*MockLimiter) GetSelector

func (m *MockLimiter) GetSelector() *languagev1.Selector

GetSelector mocks base method.

func (*MockLimiter) RunLimiter

func (m *MockLimiter) RunLimiter(ctx context.Context, labels map[string]string) *checkv1.LimiterDecision

RunLimiter mocks base method.

type MockLimiterMockRecorder

type MockLimiterMockRecorder struct {
	// contains filtered or unexported fields
}

MockLimiterMockRecorder is the mock recorder for MockLimiter.

func (*MockLimiterMockRecorder) GetLimiterID

func (mr *MockLimiterMockRecorder) GetLimiterID() *gomock.Call

GetLimiterID indicates an expected call of GetLimiterID.

func (*MockLimiterMockRecorder) GetPolicyName

func (mr *MockLimiterMockRecorder) GetPolicyName() *gomock.Call

GetPolicyName indicates an expected call of GetPolicyName.

func (*MockLimiterMockRecorder) GetSelector

func (mr *MockLimiterMockRecorder) GetSelector() *gomock.Call

GetSelector indicates an expected call of GetSelector.

func (*MockLimiterMockRecorder) RunLimiter

func (mr *MockLimiterMockRecorder) RunLimiter(ctx, labels interface{}) *gomock.Call

RunLimiter indicates an expected call of RunLimiter.

type MockRateLimiter added in v0.5.0

type MockRateLimiter struct {
	// contains filtered or unexported fields
}

MockRateLimiter is a mock of RateLimiter interface.

func NewMockRateLimiter added in v0.5.0

func NewMockRateLimiter(ctrl *gomock.Controller) *MockRateLimiter

NewMockRateLimiter creates a new mock instance.

func (*MockRateLimiter) EXPECT added in v0.5.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRateLimiter) GetLimiterID added in v0.5.0

func (m *MockRateLimiter) GetLimiterID() iface.LimiterID

GetLimiterID mocks base method.

func (*MockRateLimiter) GetPolicyName added in v0.5.0

func (m *MockRateLimiter) GetPolicyName() string

GetPolicyName mocks base method.

func (*MockRateLimiter) GetRequestCounter added in v0.8.0

func (m *MockRateLimiter) GetRequestCounter(labels map[string]string) prometheus.Counter

GetRequestCounter mocks base method.

func (*MockRateLimiter) GetSelector added in v0.5.0

func (m *MockRateLimiter) GetSelector() *languagev1.Selector

GetSelector mocks base method.

func (*MockRateLimiter) RunLimiter added in v0.5.0

func (m *MockRateLimiter) RunLimiter(ctx context.Context, labels map[string]string) *checkv1.LimiterDecision

RunLimiter mocks base method.

func (*MockRateLimiter) TakeN added in v0.5.0

func (m *MockRateLimiter) TakeN(labels map[string]string, count int) (string, bool, int, int)

TakeN mocks base method.

type MockRateLimiterMockRecorder added in v0.5.0

type MockRateLimiterMockRecorder struct {
	// contains filtered or unexported fields
}

MockRateLimiterMockRecorder is the mock recorder for MockRateLimiter.

func (*MockRateLimiterMockRecorder) GetLimiterID added in v0.5.0

func (mr *MockRateLimiterMockRecorder) GetLimiterID() *gomock.Call

GetLimiterID indicates an expected call of GetLimiterID.

func (*MockRateLimiterMockRecorder) GetPolicyName added in v0.5.0

func (mr *MockRateLimiterMockRecorder) GetPolicyName() *gomock.Call

GetPolicyName indicates an expected call of GetPolicyName.

func (*MockRateLimiterMockRecorder) GetRequestCounter added in v0.8.0

func (mr *MockRateLimiterMockRecorder) GetRequestCounter(labels interface{}) *gomock.Call

GetRequestCounter indicates an expected call of GetRequestCounter.

func (*MockRateLimiterMockRecorder) GetSelector added in v0.5.0

func (mr *MockRateLimiterMockRecorder) GetSelector() *gomock.Call

GetSelector indicates an expected call of GetSelector.

func (*MockRateLimiterMockRecorder) RunLimiter added in v0.5.0

func (mr *MockRateLimiterMockRecorder) RunLimiter(ctx, labels interface{}) *gomock.Call

RunLimiter indicates an expected call of RunLimiter.

func (*MockRateLimiterMockRecorder) TakeN added in v0.5.0

func (mr *MockRateLimiterMockRecorder) TakeN(labels, count interface{}) *gomock.Call

TakeN indicates an expected call of TakeN.

Jump to

Keyboard shortcuts

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