Documentation ¶
Overview ¶
This file was generated by counterfeiter
This file was generated by counterfeiter ¶
This file was generated by counterfeiter ¶
This file was generated by counterfeiter ¶
This file was generated by counterfeiter ¶
This file was generated by counterfeiter ¶
This file was generated by counterfeiter ¶
This file was generated by counterfeiter
Index ¶
- type Dstore
- type LoggingState
- func (fake *LoggingState) Disable()
- func (fake *LoggingState) DisableCallCount() int
- func (fake *LoggingState) Enable()
- func (fake *LoggingState) EnableCallCount() int
- func (fake *LoggingState) Invocations() map[string][][]interface{}
- func (fake *LoggingState) IsEnabled() bool
- func (fake *LoggingState) IsEnabledCallCount() int
- func (fake *LoggingState) IsEnabledReturns(result1 bool)
- type LoggingStateGetter
- type Planner
- type PolicyClient
- func (fake *PolicyClient) GetPolicies() ([]models.Policy, error)
- func (fake *PolicyClient) GetPoliciesByID(ids ...string) ([]models.Policy, error)
- func (fake *PolicyClient) GetPoliciesByIDArgsForCall(i int) []string
- func (fake *PolicyClient) GetPoliciesByIDCallCount() int
- func (fake *PolicyClient) GetPoliciesByIDReturns(result1 []models.Policy, result2 error)
- func (fake *PolicyClient) GetPoliciesCallCount() int
- func (fake *PolicyClient) GetPoliciesReturns(result1 []models.Policy, result2 error)
- func (fake *PolicyClient) Invocations() map[string][][]interface{}
- type RuleEnforcer
- func (fake *RuleEnforcer) EnforceRulesAndChain(arg1 enforcer.RulesWithChain) error
- func (fake *RuleEnforcer) EnforceRulesAndChainArgsForCall(i int) enforcer.RulesWithChain
- func (fake *RuleEnforcer) EnforceRulesAndChainCallCount() int
- func (fake *RuleEnforcer) EnforceRulesAndChainReturns(result1 error)
- func (fake *RuleEnforcer) Invocations() map[string][][]interface{}
- type TimeMetricsEmitter
- type TimeStamper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dstore ¶ added in v0.9.0
type Dstore struct { ReadAllStub func() (map[string]datastore.Container, error) // contains filtered or unexported fields }
func (*Dstore) Invocations ¶ added in v0.9.0
func (*Dstore) ReadAllCallCount ¶ added in v0.9.0
type LoggingState ¶ added in v0.10.0
type LoggingState struct { DisableStub func() EnableStub func() IsEnabledStub func() bool // contains filtered or unexported fields }
func (*LoggingState) Disable ¶ added in v0.10.0
func (fake *LoggingState) Disable()
func (*LoggingState) DisableCallCount ¶ added in v0.10.0
func (fake *LoggingState) DisableCallCount() int
func (*LoggingState) Enable ¶ added in v0.10.0
func (fake *LoggingState) Enable()
func (*LoggingState) EnableCallCount ¶ added in v0.10.0
func (fake *LoggingState) EnableCallCount() int
func (*LoggingState) Invocations ¶ added in v0.10.0
func (fake *LoggingState) Invocations() map[string][][]interface{}
func (*LoggingState) IsEnabled ¶ added in v0.10.0
func (fake *LoggingState) IsEnabled() bool
func (*LoggingState) IsEnabledCallCount ¶ added in v0.10.0
func (fake *LoggingState) IsEnabledCallCount() int
func (*LoggingState) IsEnabledReturns ¶ added in v0.10.0
func (fake *LoggingState) IsEnabledReturns(result1 bool)
type LoggingStateGetter ¶ added in v0.10.0
type LoggingStateGetter struct { IsEnabledStub func() bool // contains filtered or unexported fields }
func (*LoggingStateGetter) Invocations ¶ added in v0.10.0
func (fake *LoggingStateGetter) Invocations() map[string][][]interface{}
func (*LoggingStateGetter) IsEnabled ¶ added in v0.10.0
func (fake *LoggingStateGetter) IsEnabled() bool
func (*LoggingStateGetter) IsEnabledCallCount ¶ added in v0.10.0
func (fake *LoggingStateGetter) IsEnabledCallCount() int
func (*LoggingStateGetter) IsEnabledReturns ¶ added in v0.10.0
func (fake *LoggingStateGetter) IsEnabledReturns(result1 bool)
type Planner ¶ added in v0.5.0
type Planner struct { GetRulesAndChainStub func() (enforcer.RulesWithChain, error) // contains filtered or unexported fields }
func (*Planner) GetRulesAndChain ¶ added in v0.10.0
func (fake *Planner) GetRulesAndChain() (enforcer.RulesWithChain, error)
func (*Planner) GetRulesAndChainCallCount ¶ added in v0.10.0
func (*Planner) GetRulesAndChainReturns ¶ added in v0.10.0
func (fake *Planner) GetRulesAndChainReturns(result1 enforcer.RulesWithChain, result2 error)
func (*Planner) Invocations ¶ added in v0.5.0
type PolicyClient ¶
type PolicyClient struct { GetPoliciesStub func() ([]models.Policy, error) GetPoliciesByIDStub func(ids ...string) ([]models.Policy, error) // contains filtered or unexported fields }
func (*PolicyClient) GetPolicies ¶
func (fake *PolicyClient) GetPolicies() ([]models.Policy, error)
func (*PolicyClient) GetPoliciesByID ¶ added in v0.15.0
func (fake *PolicyClient) GetPoliciesByID(ids ...string) ([]models.Policy, error)
func (*PolicyClient) GetPoliciesByIDArgsForCall ¶ added in v0.15.0
func (fake *PolicyClient) GetPoliciesByIDArgsForCall(i int) []string
func (*PolicyClient) GetPoliciesByIDCallCount ¶ added in v0.15.0
func (fake *PolicyClient) GetPoliciesByIDCallCount() int
func (*PolicyClient) GetPoliciesByIDReturns ¶ added in v0.15.0
func (fake *PolicyClient) GetPoliciesByIDReturns(result1 []models.Policy, result2 error)
func (*PolicyClient) GetPoliciesCallCount ¶
func (fake *PolicyClient) GetPoliciesCallCount() int
func (*PolicyClient) GetPoliciesReturns ¶
func (fake *PolicyClient) GetPoliciesReturns(result1 []models.Policy, result2 error)
func (*PolicyClient) Invocations ¶
func (fake *PolicyClient) Invocations() map[string][][]interface{}
type RuleEnforcer ¶ added in v0.7.0
type RuleEnforcer struct { EnforceRulesAndChainStub func(enforcer.RulesWithChain) error // contains filtered or unexported fields }
func (*RuleEnforcer) EnforceRulesAndChain ¶ added in v0.7.0
func (fake *RuleEnforcer) EnforceRulesAndChain(arg1 enforcer.RulesWithChain) error
func (*RuleEnforcer) EnforceRulesAndChainArgsForCall ¶ added in v0.7.0
func (fake *RuleEnforcer) EnforceRulesAndChainArgsForCall(i int) enforcer.RulesWithChain
func (*RuleEnforcer) EnforceRulesAndChainCallCount ¶ added in v0.7.0
func (fake *RuleEnforcer) EnforceRulesAndChainCallCount() int
func (*RuleEnforcer) EnforceRulesAndChainReturns ¶ added in v0.7.0
func (fake *RuleEnforcer) EnforceRulesAndChainReturns(result1 error)
func (*RuleEnforcer) Invocations ¶ added in v0.7.0
func (fake *RuleEnforcer) Invocations() map[string][][]interface{}
type TimeMetricsEmitter ¶ added in v0.5.0
type TimeMetricsEmitter struct { EmitAllStub func(map[string]time.Duration) // contains filtered or unexported fields }
func (*TimeMetricsEmitter) EmitAll ¶ added in v0.5.0
func (fake *TimeMetricsEmitter) EmitAll(arg1 map[string]time.Duration)
func (*TimeMetricsEmitter) EmitAllArgsForCall ¶ added in v0.5.0
func (fake *TimeMetricsEmitter) EmitAllArgsForCall(i int) map[string]time.Duration
func (*TimeMetricsEmitter) EmitAllCallCount ¶ added in v0.5.0
func (fake *TimeMetricsEmitter) EmitAllCallCount() int
func (*TimeMetricsEmitter) Invocations ¶ added in v0.5.0
func (fake *TimeMetricsEmitter) Invocations() map[string][][]interface{}
type TimeStamper ¶ added in v0.7.0
type TimeStamper struct { CurrentTimeStub func() int // contains filtered or unexported fields }
func (*TimeStamper) CurrentTime ¶ added in v0.7.0
func (fake *TimeStamper) CurrentTime() int
func (*TimeStamper) CurrentTimeCallCount ¶ added in v0.7.0
func (fake *TimeStamper) CurrentTimeCallCount() int
func (*TimeStamper) CurrentTimeReturns ¶ added in v0.7.0
func (fake *TimeStamper) CurrentTimeReturns(result1 int)
func (*TimeStamper) Invocations ¶ added in v0.7.0
func (fake *TimeStamper) Invocations() map[string][][]interface{}
Click to show internal directories.
Click to hide internal directories.