fakes

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dstore

type Dstore struct {
	ReadAllStub func() (map[string]datastore.Container, error)
	// contains filtered or unexported fields
}

func (*Dstore) Invocations

func (fake *Dstore) Invocations() map[string][][]interface{}

func (*Dstore) ReadAll

func (fake *Dstore) ReadAll() (map[string]datastore.Container, error)

func (*Dstore) ReadAllCallCount

func (fake *Dstore) ReadAllCallCount() int

func (*Dstore) ReadAllReturns

func (fake *Dstore) ReadAllReturns(result1 map[string]datastore.Container, result2 error)

type LoggingState

type LoggingState struct {
	DisableStub func()

	EnableStub func()

	IsEnabledStub func() bool
	// contains filtered or unexported fields
}

func (*LoggingState) Disable

func (fake *LoggingState) Disable()

func (*LoggingState) DisableCallCount

func (fake *LoggingState) DisableCallCount() int

func (*LoggingState) Enable

func (fake *LoggingState) Enable()

func (*LoggingState) EnableCallCount

func (fake *LoggingState) EnableCallCount() int

func (*LoggingState) Invocations

func (fake *LoggingState) Invocations() map[string][][]interface{}

func (*LoggingState) IsEnabled

func (fake *LoggingState) IsEnabled() bool

func (*LoggingState) IsEnabledCallCount

func (fake *LoggingState) IsEnabledCallCount() int

func (*LoggingState) IsEnabledReturns

func (fake *LoggingState) IsEnabledReturns(result1 bool)

type LoggingStateGetter

type LoggingStateGetter struct {
	IsEnabledStub func() bool
	// contains filtered or unexported fields
}

func (*LoggingStateGetter) Invocations

func (fake *LoggingStateGetter) Invocations() map[string][][]interface{}

func (*LoggingStateGetter) IsEnabled

func (fake *LoggingStateGetter) IsEnabled() bool

func (*LoggingStateGetter) IsEnabledCallCount

func (fake *LoggingStateGetter) IsEnabledCallCount() int

func (*LoggingStateGetter) IsEnabledReturns

func (fake *LoggingStateGetter) IsEnabledReturns(result1 bool)

type Planner

type Planner struct {
	GetRulesAndChainStub func() (enforcer.RulesWithChain, error)
	// contains filtered or unexported fields
}

func (*Planner) GetRulesAndChain

func (fake *Planner) GetRulesAndChain() (enforcer.RulesWithChain, error)

func (*Planner) GetRulesAndChainCallCount

func (fake *Planner) GetRulesAndChainCallCount() int

func (*Planner) GetRulesAndChainReturns

func (fake *Planner) GetRulesAndChainReturns(result1 enforcer.RulesWithChain, result2 error)

func (*Planner) Invocations

func (fake *Planner) Invocations() map[string][][]interface{}

type PolicyClient

type PolicyClient struct {
	GetPoliciesStub func() ([]models.Policy, error)
	// contains filtered or unexported fields
}

func (*PolicyClient) GetPolicies

func (fake *PolicyClient) GetPolicies() ([]models.Policy, 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

type RuleEnforcer struct {
	EnforceRulesAndChainStub func(enforcer.RulesWithChain) error
	// contains filtered or unexported fields
}

func (*RuleEnforcer) EnforceRulesAndChain

func (fake *RuleEnforcer) EnforceRulesAndChain(arg1 enforcer.RulesWithChain) error

func (*RuleEnforcer) EnforceRulesAndChainArgsForCall

func (fake *RuleEnforcer) EnforceRulesAndChainArgsForCall(i int) enforcer.RulesWithChain

func (*RuleEnforcer) EnforceRulesAndChainCallCount

func (fake *RuleEnforcer) EnforceRulesAndChainCallCount() int

func (*RuleEnforcer) EnforceRulesAndChainReturns

func (fake *RuleEnforcer) EnforceRulesAndChainReturns(result1 error)

func (*RuleEnforcer) Invocations

func (fake *RuleEnforcer) Invocations() map[string][][]interface{}

type TimeMetricsEmitter

type TimeMetricsEmitter struct {
	EmitAllStub func(map[string]time.Duration)
	// contains filtered or unexported fields
}

func (*TimeMetricsEmitter) EmitAll

func (fake *TimeMetricsEmitter) EmitAll(arg1 map[string]time.Duration)

func (*TimeMetricsEmitter) EmitAllArgsForCall

func (fake *TimeMetricsEmitter) EmitAllArgsForCall(i int) map[string]time.Duration

func (*TimeMetricsEmitter) EmitAllCallCount

func (fake *TimeMetricsEmitter) EmitAllCallCount() int

func (*TimeMetricsEmitter) Invocations

func (fake *TimeMetricsEmitter) Invocations() map[string][][]interface{}

type TimeStamper

type TimeStamper struct {
	CurrentTimeStub func() int
	// contains filtered or unexported fields
}

func (*TimeStamper) CurrentTime

func (fake *TimeStamper) CurrentTime() int

func (*TimeStamper) CurrentTimeCallCount

func (fake *TimeStamper) CurrentTimeCallCount() int

func (*TimeStamper) CurrentTimeReturns

func (fake *TimeStamper) CurrentTimeReturns(result1 int)

func (*TimeStamper) Invocations

func (fake *TimeStamper) Invocations() map[string][][]interface{}

Jump to

Keyboard shortcuts

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