Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockEngine
- func (m *MockEngine) EXPECT() *MockEngineMockRecorder
- func (m *MockEngine) GetFluxMeter(fluxMeterName string) iface.FluxMeter
- func (m *MockEngine) ProcessRequest(controlPoint selectors.ControlPoint, serviceIDs []services.ServiceID, ...) *flowcontrolv1.CheckResponse
- func (m *MockEngine) RegisterClassifier(c iface.Classifier) error
- func (m *MockEngine) RegisterConcurrencyLimiter(sa iface.Limiter) error
- func (m *MockEngine) RegisterFluxMeter(fm iface.FluxMeter) error
- func (m *MockEngine) RegisterRateLimiter(l iface.RateLimiter) error
- func (m *MockEngine) UnregisterClassifier(c iface.Classifier) error
- func (m *MockEngine) UnregisterConcurrencyLimiter(sa iface.Limiter) error
- func (m *MockEngine) UnregisterFluxMeter(fm iface.FluxMeter) error
- func (m *MockEngine) UnregisterRateLimiter(l iface.RateLimiter) error
- type MockEngineMockRecorder
- func (mr *MockEngineMockRecorder) GetFluxMeter(fluxMeterName interface{}) *gomock.Call
- func (mr *MockEngineMockRecorder) ProcessRequest(controlPoint, serviceIDs, labels interface{}) *gomock.Call
- func (mr *MockEngineMockRecorder) RegisterClassifier(c interface{}) *gomock.Call
- func (mr *MockEngineMockRecorder) RegisterConcurrencyLimiter(sa interface{}) *gomock.Call
- func (mr *MockEngineMockRecorder) RegisterFluxMeter(fm interface{}) *gomock.Call
- func (mr *MockEngineMockRecorder) RegisterRateLimiter(l interface{}) *gomock.Call
- func (mr *MockEngineMockRecorder) UnregisterClassifier(c interface{}) *gomock.Call
- func (mr *MockEngineMockRecorder) UnregisterConcurrencyLimiter(sa interface{}) *gomock.Call
- func (mr *MockEngineMockRecorder) UnregisterFluxMeter(fm 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) GetFluxMeterID() iface.FluxMeterID
- func (m *MockFluxMeter) GetFluxMeterName() string
- func (m *MockFluxMeter) GetHistogram(decisionType flowcontrolv1.DecisionType, statusCode, featureStatus string) prometheus.Observer
- func (m *MockFluxMeter) GetSelector() *selectorv1.Selector
- type MockFluxMeterMockRecorder
- func (mr *MockFluxMeterMockRecorder) GetAttributeKey() *gomock.Call
- func (mr *MockFluxMeterMockRecorder) GetFluxMeterID() *gomock.Call
- func (mr *MockFluxMeterMockRecorder) GetFluxMeterName() *gomock.Call
- func (mr *MockFluxMeterMockRecorder) GetHistogram(decisionType, statusCode, featureStatus interface{}) *gomock.Call
- func (mr *MockFluxMeterMockRecorder) GetSelector() *gomock.Call
- type MockLimiter
- type MockLimiterMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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) GetFluxMeter ¶ added in v0.1.3
func (m *MockEngine) GetFluxMeter(fluxMeterName string) iface.FluxMeter
GetFluxMeter mocks base method.
func (*MockEngine) ProcessRequest ¶
func (m *MockEngine) ProcessRequest(controlPoint selectors.ControlPoint, serviceIDs []services.ServiceID, labels selectors.Labels) *flowcontrolv1.CheckResponse
ProcessRequest mocks base method.
func (*MockEngine) RegisterClassifier ¶ added in v0.1.2
func (m *MockEngine) RegisterClassifier(c iface.Classifier) error
RegisterClassifier mocks base method.
func (*MockEngine) RegisterConcurrencyLimiter ¶
func (m *MockEngine) RegisterConcurrencyLimiter(sa iface.Limiter) 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) UnregisterClassifier ¶ added in v0.1.2
func (m *MockEngine) UnregisterClassifier(c iface.Classifier) error
UnregisterClassifier mocks base method.
func (*MockEngine) UnregisterConcurrencyLimiter ¶
func (m *MockEngine) UnregisterConcurrencyLimiter(sa iface.Limiter) 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) GetFluxMeter ¶ added in v0.1.3
func (mr *MockEngineMockRecorder) GetFluxMeter(fluxMeterName interface{}) *gomock.Call
GetFluxMeter indicates an expected call of GetFluxMeter.
func (*MockEngineMockRecorder) ProcessRequest ¶
func (mr *MockEngineMockRecorder) ProcessRequest(controlPoint, serviceIDs, labels interface{}) *gomock.Call
ProcessRequest indicates an expected call of ProcessRequest.
func (*MockEngineMockRecorder) RegisterClassifier ¶ added in v0.1.2
func (mr *MockEngineMockRecorder) RegisterClassifier(c interface{}) *gomock.Call
RegisterClassifier indicates an expected call of RegisterClassifier.
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) UnregisterClassifier ¶ added in v0.1.2
func (mr *MockEngineMockRecorder) UnregisterClassifier(c interface{}) *gomock.Call
UnregisterClassifier indicates an expected call of UnregisterClassifier.
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 ¶
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) 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(decisionType flowcontrolv1.DecisionType, statusCode, featureStatus string) prometheus.Observer
GetHistogram mocks base method.
func (*MockFluxMeter) GetSelector ¶
func (m *MockFluxMeter) GetSelector() *selectorv1.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(decisionType, statusCode, featureStatus 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() *selectorv1.Selector
GetSelector mocks base method.
func (*MockLimiter) RunLimiter ¶
func (m *MockLimiter) RunLimiter(labels selectors.Labels) *flowcontrolv1.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(labels interface{}) *gomock.Call
RunLimiter indicates an expected call of RunLimiter.