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) GetFluxMeterHist(policyName, fluxMeterName, policyHash, statusCode string, ...) prometheus.Observer
- func (m *MockEngine) ProcessRequest(controlPoint selectors.ControlPoint, serviceIDs []services.ServiceID, ...) *flowcontrolv1.CheckResponse
- 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) 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) GetFluxMeterHist(policyName, fluxMeterName, policyHash, statusCode, decisionType interface{}) *gomock.Call
- func (mr *MockEngineMockRecorder) ProcessRequest(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) RegisterRateLimiter(l 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) GetBuckets() []float64
- func (m *MockFluxMeter) GetFluxMeterID() iface.FluxMeterID
- func (m *MockFluxMeter) GetFluxMeterName() string
- func (m *MockFluxMeter) GetFluxMeterProto() *languagev1.FluxMeter
- func (m *MockFluxMeter) GetHistogram(arg0 flowcontrolv1.DecisionType, arg1 string) prometheus.Observer
- func (m *MockFluxMeter) GetPolicyHash() string
- func (m *MockFluxMeter) GetPolicyName() string
- func (m *MockFluxMeter) GetSelector() *selectorv1.Selector
- type MockFluxMeterMockRecorder
- func (mr *MockFluxMeterMockRecorder) GetBuckets() *gomock.Call
- func (mr *MockFluxMeterMockRecorder) GetFluxMeterID() *gomock.Call
- func (mr *MockFluxMeterMockRecorder) GetFluxMeterName() *gomock.Call
- func (mr *MockFluxMeterMockRecorder) GetFluxMeterProto() *gomock.Call
- func (mr *MockFluxMeterMockRecorder) GetHistogram(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockFluxMeterMockRecorder) GetPolicyHash() *gomock.Call
- func (mr *MockFluxMeterMockRecorder) GetPolicyName() *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) GetFluxMeterHist ¶
func (m *MockEngine) GetFluxMeterHist(policyName, fluxMeterName, policyHash, statusCode string, decisionType flowcontrolv1.DecisionType) prometheus.Observer
GetFluxMeterHist 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) 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) 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) GetFluxMeterHist ¶
func (mr *MockEngineMockRecorder) GetFluxMeterHist(policyName, fluxMeterName, policyHash, statusCode, decisionType interface{}) *gomock.Call
GetFluxMeterHist indicates an expected call of GetFluxMeterHist.
func (*MockEngineMockRecorder) ProcessRequest ¶
func (mr *MockEngineMockRecorder) ProcessRequest(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 ¶
func (m *MockFluxMeter) EXPECT() *MockFluxMeterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockFluxMeter) GetBuckets ¶
func (m *MockFluxMeter) GetBuckets() []float64
GetBuckets 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) GetFluxMeterProto ¶
func (m *MockFluxMeter) GetFluxMeterProto() *languagev1.FluxMeter
GetFluxMeterProto mocks base method.
func (*MockFluxMeter) GetHistogram ¶
func (m *MockFluxMeter) GetHistogram(arg0 flowcontrolv1.DecisionType, arg1 string) prometheus.Observer
GetHistogram mocks base method.
func (*MockFluxMeter) GetPolicyHash ¶
func (m *MockFluxMeter) GetPolicyHash() string
GetPolicyHash mocks base method.
func (*MockFluxMeter) GetPolicyName ¶
func (m *MockFluxMeter) GetPolicyName() string
GetPolicyName 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) GetBuckets ¶
func (mr *MockFluxMeterMockRecorder) GetBuckets() *gomock.Call
GetBuckets indicates an expected call of GetBuckets.
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) GetFluxMeterProto ¶
func (mr *MockFluxMeterMockRecorder) GetFluxMeterProto() *gomock.Call
GetFluxMeterProto indicates an expected call of GetFluxMeterProto.
func (*MockFluxMeterMockRecorder) GetHistogram ¶
func (mr *MockFluxMeterMockRecorder) GetHistogram(arg0, arg1 interface{}) *gomock.Call
GetHistogram indicates an expected call of GetHistogram.
func (*MockFluxMeterMockRecorder) GetPolicyHash ¶
func (mr *MockFluxMeterMockRecorder) GetPolicyHash() *gomock.Call
GetPolicyHash indicates an expected call of GetPolicyHash.
func (*MockFluxMeterMockRecorder) GetPolicyName ¶
func (mr *MockFluxMeterMockRecorder) GetPolicyName() *gomock.Call
GetPolicyName indicates an expected call of GetPolicyName.
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.