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 ¶
- type MockClassificationEngine
- func (m *MockClassificationEngine) EXPECT() *MockClassificationEngineMockRecorder
- func (m *MockClassificationEngine) GetClassifier(classifierID iface.ClassifierID) iface.Classifier
- func (m *MockClassificationEngine) RegisterClassifier(classifier iface.Classifier) error
- func (m *MockClassificationEngine) UnregisterClassifier(classifier iface.Classifier) error
- type MockClassificationEngineMockRecorder
- func (mr *MockClassificationEngineMockRecorder) GetClassifier(classifierID interface{}) *gomock.Call
- func (mr *MockClassificationEngineMockRecorder) RegisterClassifier(classifier interface{}) *gomock.Call
- func (mr *MockClassificationEngineMockRecorder) UnregisterClassifier(classifier interface{}) *gomock.Call
- type MockClassifier
- type MockClassifierMockRecorder
- type MockConcurrencyLimiter
- func (m *MockConcurrencyLimiter) EXPECT() *MockConcurrencyLimiterMockRecorder
- func (m *MockConcurrencyLimiter) GetFlowSelector() *languagev1.FlowSelector
- func (m *MockConcurrencyLimiter) GetLatencyObserver(labels map[string]string) prometheus.Observer
- func (m *MockConcurrencyLimiter) GetLimiterID() iface.LimiterID
- func (m *MockConcurrencyLimiter) GetPolicyName() string
- func (m *MockConcurrencyLimiter) GetRequestCounter(labels map[string]string) prometheus.Counter
- func (m *MockConcurrencyLimiter) RunLimiter(ctx context.Context, labels map[string]string) *checkv1.LimiterDecision
- type MockConcurrencyLimiterMockRecorder
- func (mr *MockConcurrencyLimiterMockRecorder) GetFlowSelector() *gomock.Call
- func (mr *MockConcurrencyLimiterMockRecorder) GetLatencyObserver(labels interface{}) *gomock.Call
- func (mr *MockConcurrencyLimiterMockRecorder) GetLimiterID() *gomock.Call
- func (mr *MockConcurrencyLimiterMockRecorder) GetPolicyName() *gomock.Call
- func (mr *MockConcurrencyLimiterMockRecorder) GetRequestCounter(labels interface{}) *gomock.Call
- func (mr *MockConcurrencyLimiterMockRecorder) RunLimiter(ctx, labels interface{}) *gomock.Call
- type MockEngine
- func (m *MockEngine) EXPECT() *MockEngineMockRecorder
- func (m *MockEngine) GetConcurrencyLimiter(limiterID iface.LimiterID) iface.ConcurrencyLimiter
- func (m *MockEngine) GetFluxMeter(fluxMeterName string) iface.FluxMeter
- func (m *MockEngine) GetRateLimiter(limiterID iface.LimiterID) iface.RateLimiter
- func (m *MockEngine) ProcessRequest(ctx context.Context, controlPoint string, serviceIDs []string, ...) *checkv1.CheckResponse
- func (m *MockEngine) RegisterConcurrencyLimiter(sa iface.ConcurrencyLimiter) error
- func (m *MockEngine) RegisterFluxMeter(fm iface.FluxMeter) error
- func (m *MockEngine) RegisterLabelPreview(l iface.LabelPreview) error
- func (m *MockEngine) RegisterRateLimiter(l iface.RateLimiter) error
- func (m *MockEngine) UnregisterConcurrencyLimiter(sa iface.ConcurrencyLimiter) error
- func (m *MockEngine) UnregisterFluxMeter(fm iface.FluxMeter) error
- func (m *MockEngine) UnregisterLabelPreview(l iface.LabelPreview) error
- func (m *MockEngine) UnregisterRateLimiter(l iface.RateLimiter) error
- type MockEngineMockRecorder
- func (mr *MockEngineMockRecorder) GetConcurrencyLimiter(limiterID interface{}) *gomock.Call
- func (mr *MockEngineMockRecorder) GetFluxMeter(fluxMeterName interface{}) *gomock.Call
- func (mr *MockEngineMockRecorder) GetRateLimiter(limiterID interface{}) *gomock.Call
- func (mr *MockEngineMockRecorder) ProcessRequest(ctx, controlPoint, serviceIDs, labels interface{}) *gomock.Call
- func (mr *MockEngineMockRecorder) RegisterConcurrencyLimiter(sa interface{}) *gomock.Call
- func (mr *MockEngineMockRecorder) RegisterFluxMeter(fm interface{}) *gomock.Call
- func (mr *MockEngineMockRecorder) RegisterLabelPreview(l interface{}) *gomock.Call
- func (mr *MockEngineMockRecorder) RegisterRateLimiter(l interface{}) *gomock.Call
- func (mr *MockEngineMockRecorder) UnregisterConcurrencyLimiter(sa interface{}) *gomock.Call
- func (mr *MockEngineMockRecorder) UnregisterFluxMeter(fm interface{}) *gomock.Call
- func (mr *MockEngineMockRecorder) UnregisterLabelPreview(l interface{}) *gomock.Call
- func (mr *MockEngineMockRecorder) UnregisterRateLimiter(l interface{}) *gomock.Call
- type MockFluxMeter
- func (m *MockFluxMeter) EXPECT() *MockFluxMeterMockRecorder
- func (m *MockFluxMeter) GetAttributeKey() string
- func (m *MockFluxMeter) GetFlowSelector() *languagev1.FlowSelector
- func (m *MockFluxMeter) GetFluxMeterID() iface.FluxMeterID
- func (m *MockFluxMeter) GetFluxMeterName() string
- func (m *MockFluxMeter) GetHistogram(labels map[string]string) prometheus.Observer
- type MockFluxMeterMockRecorder
- func (mr *MockFluxMeterMockRecorder) GetAttributeKey() *gomock.Call
- func (mr *MockFluxMeterMockRecorder) GetFlowSelector() *gomock.Call
- func (mr *MockFluxMeterMockRecorder) GetFluxMeterID() *gomock.Call
- func (mr *MockFluxMeterMockRecorder) GetFluxMeterName() *gomock.Call
- func (mr *MockFluxMeterMockRecorder) GetHistogram(labels interface{}) *gomock.Call
- type MockLimiter
- func (m *MockLimiter) EXPECT() *MockLimiterMockRecorder
- func (m *MockLimiter) GetFlowSelector() *languagev1.FlowSelector
- func (m *MockLimiter) GetLimiterID() iface.LimiterID
- func (m *MockLimiter) GetPolicyName() string
- func (m *MockLimiter) RunLimiter(ctx context.Context, labels map[string]string) *checkv1.LimiterDecision
- type MockLimiterMockRecorder
- type MockRateLimiter
- func (m *MockRateLimiter) EXPECT() *MockRateLimiterMockRecorder
- func (m *MockRateLimiter) GetFlowSelector() *languagev1.FlowSelector
- func (m *MockRateLimiter) GetLimiterID() iface.LimiterID
- func (m *MockRateLimiter) GetPolicyName() string
- func (m *MockRateLimiter) GetRequestCounter(labels map[string]string) prometheus.Counter
- func (m *MockRateLimiter) RunLimiter(ctx context.Context, labels map[string]string) *checkv1.LimiterDecision
- func (m *MockRateLimiter) TakeN(labels map[string]string, count int) (string, bool, int, int)
- type MockRateLimiterMockRecorder
- func (mr *MockRateLimiterMockRecorder) GetFlowSelector() *gomock.Call
- func (mr *MockRateLimiterMockRecorder) GetLimiterID() *gomock.Call
- func (mr *MockRateLimiterMockRecorder) GetPolicyName() *gomock.Call
- func (mr *MockRateLimiterMockRecorder) GetRequestCounter(labels interface{}) *gomock.Call
- func (mr *MockRateLimiterMockRecorder) RunLimiter(ctx, labels interface{}) *gomock.Call
- func (mr *MockRateLimiterMockRecorder) TakeN(labels, count interface{}) *gomock.Call
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
func (m *MockClassificationEngine) EXPECT() *MockClassificationEngineMockRecorder
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
func (m *MockClassifier) EXPECT() *MockClassifierMockRecorder
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) GetFlowSelector ¶ added in v0.15.0
func (m *MockClassifier) GetFlowSelector() *languagev1.FlowSelector
GetFlowSelector mocks base method.
func (*MockClassifier) GetRequestCounter ¶ added in v0.8.0
func (m *MockClassifier) GetRequestCounter() prometheus.Counter
GetRequestCounter 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) GetFlowSelector ¶ added in v0.15.0
func (mr *MockClassifierMockRecorder) GetFlowSelector() *gomock.Call
GetFlowSelector indicates an expected call of GetFlowSelector.
func (*MockClassifierMockRecorder) GetRequestCounter ¶ added in v0.8.0
func (mr *MockClassifierMockRecorder) GetRequestCounter() *gomock.Call
GetRequestCounter indicates an expected call of GetRequestCounter.
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
func (m *MockConcurrencyLimiter) EXPECT() *MockConcurrencyLimiterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockConcurrencyLimiter) GetFlowSelector ¶ added in v0.15.0
func (m *MockConcurrencyLimiter) GetFlowSelector() *languagev1.FlowSelector
GetFlowSelector mocks base method.
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) 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) GetFlowSelector ¶ added in v0.15.0
func (mr *MockConcurrencyLimiterMockRecorder) GetFlowSelector() *gomock.Call
GetFlowSelector indicates an expected call of GetFlowSelector.
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) 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) RegisterLabelPreview ¶ added in v0.17.0
func (m *MockEngine) RegisterLabelPreview(l iface.LabelPreview) error
RegisterLabelPreview 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) UnregisterLabelPreview ¶ added in v0.17.0
func (m *MockEngine) UnregisterLabelPreview(l iface.LabelPreview) error
UnregisterLabelPreview 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) RegisterLabelPreview ¶ added in v0.17.0
func (mr *MockEngineMockRecorder) RegisterLabelPreview(l interface{}) *gomock.Call
RegisterLabelPreview indicates an expected call of RegisterLabelPreview.
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) UnregisterLabelPreview ¶ added in v0.17.0
func (mr *MockEngineMockRecorder) UnregisterLabelPreview(l interface{}) *gomock.Call
UnregisterLabelPreview indicates an expected call of UnregisterLabelPreview.
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 ¶
func (m *MockFluxMeter) EXPECT() *MockFluxMeterMockRecorder
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) GetFlowSelector ¶ added in v0.15.0
func (m *MockFluxMeter) GetFlowSelector() *languagev1.FlowSelector
GetFlowSelector 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.
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) GetFlowSelector ¶ added in v0.15.0
func (mr *MockFluxMeterMockRecorder) GetFlowSelector() *gomock.Call
GetFlowSelector indicates an expected call of GetFlowSelector.
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.
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) GetFlowSelector ¶ added in v0.15.0
func (m *MockLimiter) GetFlowSelector() *languagev1.FlowSelector
GetFlowSelector mocks base method.
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) 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) GetFlowSelector ¶ added in v0.15.0
func (mr *MockLimiterMockRecorder) GetFlowSelector() *gomock.Call
GetFlowSelector indicates an expected call of GetFlowSelector.
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) 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
func (m *MockRateLimiter) EXPECT() *MockRateLimiterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRateLimiter) GetFlowSelector ¶ added in v0.15.0
func (m *MockRateLimiter) GetFlowSelector() *languagev1.FlowSelector
GetFlowSelector mocks base method.
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) RunLimiter ¶ added in v0.5.0
func (m *MockRateLimiter) RunLimiter(ctx context.Context, labels map[string]string) *checkv1.LimiterDecision
RunLimiter 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) GetFlowSelector ¶ added in v0.15.0
func (mr *MockRateLimiterMockRecorder) GetFlowSelector() *gomock.Call
GetFlowSelector indicates an expected call of GetFlowSelector.
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) 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.