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 ¶
This file was generated by counterfeiter ¶
This file was generated by counterfeiter ¶
This file was generated by counterfeiter
Index ¶
- type ExternalPolicyClient
- func (fake *ExternalPolicyClient) AddPolicies(token string, policies []models.Policy) error
- func (fake *ExternalPolicyClient) AddPoliciesArgsForCall(i int) (string, []models.Policy)
- func (fake *ExternalPolicyClient) AddPoliciesCallCount() int
- func (fake *ExternalPolicyClient) AddPoliciesReturns(result1 error)
- func (fake *ExternalPolicyClient) DeletePolicies(token string, policies []models.Policy) error
- func (fake *ExternalPolicyClient) DeletePoliciesArgsForCall(i int) (string, []models.Policy)
- func (fake *ExternalPolicyClient) DeletePoliciesCallCount() int
- func (fake *ExternalPolicyClient) DeletePoliciesReturns(result1 error)
- func (fake *ExternalPolicyClient) GetPolicies(token string) ([]models.Policy, error)
- func (fake *ExternalPolicyClient) GetPoliciesArgsForCall(i int) string
- func (fake *ExternalPolicyClient) GetPoliciesByID(token string, ids ...string) ([]models.Policy, error)
- func (fake *ExternalPolicyClient) GetPoliciesByIDArgsForCall(i int) (string, []string)
- func (fake *ExternalPolicyClient) GetPoliciesByIDCallCount() int
- func (fake *ExternalPolicyClient) GetPoliciesByIDReturns(result1 []models.Policy, result2 error)
- func (fake *ExternalPolicyClient) GetPoliciesCallCount() int
- func (fake *ExternalPolicyClient) GetPoliciesReturns(result1 []models.Policy, result2 error)
- func (fake *ExternalPolicyClient) Invocations() map[string][][]interface{}
- type HTTPClient
- func (fake *HTTPClient) Do(arg1 *http.Request) (*http.Response, error)
- func (fake *HTTPClient) DoArgsForCall(i int) *http.Request
- func (fake *HTTPClient) DoCallCount() int
- func (fake *HTTPClient) DoReturns(result1 *http.Response, result2 error)
- func (fake *HTTPClient) Invocations() map[string][][]interface{}
- type IPTables
- func (fake *IPTables) AppendUnique(table string, chain string, rulespec ...string) error
- func (fake *IPTables) AppendUniqueArgsForCall(i int) (string, string, []string)
- func (fake *IPTables) AppendUniqueCallCount() int
- func (fake *IPTables) AppendUniqueReturns(result1 error)
- func (fake *IPTables) ClearChain(table string, chain string) error
- func (fake *IPTables) ClearChainArgsForCall(i int) (string, string)
- func (fake *IPTables) ClearChainCallCount() int
- func (fake *IPTables) ClearChainReturns(result1 error)
- func (fake *IPTables) Delete(table string, chain string, rulespec ...string) error
- func (fake *IPTables) DeleteArgsForCall(i int) (string, string, []string)
- func (fake *IPTables) DeleteCallCount() int
- func (fake *IPTables) DeleteChain(table string, chain string) error
- func (fake *IPTables) DeleteChainArgsForCall(i int) (string, string)
- func (fake *IPTables) DeleteChainCallCount() int
- func (fake *IPTables) DeleteChainReturns(result1 error)
- func (fake *IPTables) DeleteReturns(result1 error)
- func (fake *IPTables) Exists(table string, chain string, rulespec ...string) (bool, error)
- func (fake *IPTables) ExistsArgsForCall(i int) (string, string, []string)
- func (fake *IPTables) ExistsCallCount() int
- func (fake *IPTables) ExistsReturns(result1 bool, result2 error)
- func (fake *IPTables) Insert(table string, chain string, pos int, rulespec ...string) error
- func (fake *IPTables) InsertArgsForCall(i int) (string, string, int, []string)
- func (fake *IPTables) InsertCallCount() int
- func (fake *IPTables) InsertReturns(result1 error)
- func (fake *IPTables) Invocations() map[string][][]interface{}
- func (fake *IPTables) List(table string, chain string) ([]string, error)
- func (fake *IPTables) ListArgsForCall(i int) (string, string)
- func (fake *IPTables) ListCallCount() int
- func (fake *IPTables) ListReturns(result1 []string, result2 error)
- func (fake *IPTables) NewChain(table string, chain string) error
- func (fake *IPTables) NewChainArgsForCall(i int) (string, string)
- func (fake *IPTables) NewChainCallCount() int
- func (fake *IPTables) NewChainReturns(result1 error)
- type JSONClient
- func (fake *JSONClient) Do(method string, route string, reqData interface{}, respData interface{}, ...) error
- func (fake *JSONClient) DoArgsForCall(i int) (string, string, interface{}, interface{}, string)
- func (fake *JSONClient) DoCallCount() int
- func (fake *JSONClient) DoReturns(result1 error)
- func (fake *JSONClient) Invocations() map[string][][]interface{}
- type Marshaler
- func (fake *Marshaler) Invocations() map[string][][]interface{}
- func (fake *Marshaler) Marshal(input interface{}) ([]byte, error)
- func (fake *Marshaler) MarshalArgsForCall(i int) interface{}
- func (fake *Marshaler) MarshalCallCount() int
- func (fake *Marshaler) MarshalReturns(result1 []byte, result2 error)
- type Planner
- type Rule
- func (fake *Rule) Enforce(table string, chain string, ipt rules.IPTables, logger lager.Logger) error
- func (fake *Rule) EnforceArgsForCall(i int) (string, string, rules.IPTables, lager.Logger)
- func (fake *Rule) EnforceCallCount() int
- func (fake *Rule) EnforceReturns(result1 error)
- func (fake *Rule) Invocations() map[string][][]interface{}
- type RuleEnforcer
- func (fake *RuleEnforcer) Enforce(table string, parentChain string, chain string, r []rules.Rule) error
- func (fake *RuleEnforcer) EnforceArgsForCall(i int) (string, string, string, []rules.Rule)
- func (fake *RuleEnforcer) EnforceCallCount() int
- func (fake *RuleEnforcer) EnforceOnChain(chain rules.Chain, r []rules.Rule) error
- func (fake *RuleEnforcer) EnforceOnChainArgsForCall(i int) (rules.Chain, []rules.Rule)
- func (fake *RuleEnforcer) EnforceOnChainCallCount() int
- func (fake *RuleEnforcer) EnforceOnChainReturns(result1 error)
- func (fake *RuleEnforcer) EnforceReturns(result1 error)
- func (fake *RuleEnforcer) Invocations() map[string][][]interface{}
- type Sleeper
- type TimeStamper
- type Unmarshaler
- func (fake *Unmarshaler) Invocations() map[string][][]interface{}
- func (fake *Unmarshaler) Unmarshal(input []byte, output interface{}) error
- func (fake *Unmarshaler) UnmarshalArgsForCall(i int) ([]byte, interface{})
- func (fake *Unmarshaler) UnmarshalCallCount() int
- func (fake *Unmarshaler) UnmarshalReturns(result1 error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExternalPolicyClient ¶ added in v0.3.0
type ExternalPolicyClient struct { GetPoliciesStub func(token string) ([]models.Policy, error) GetPoliciesByIDStub func(token string, ids ...string) ([]models.Policy, error) DeletePoliciesStub func(token string, policies []models.Policy) error AddPoliciesStub func(token string, policies []models.Policy) error // contains filtered or unexported fields }
func (*ExternalPolicyClient) AddPolicies ¶ added in v0.3.0
func (fake *ExternalPolicyClient) AddPolicies(token string, policies []models.Policy) error
func (*ExternalPolicyClient) AddPoliciesArgsForCall ¶ added in v0.3.0
func (fake *ExternalPolicyClient) AddPoliciesArgsForCall(i int) (string, []models.Policy)
func (*ExternalPolicyClient) AddPoliciesCallCount ¶ added in v0.3.0
func (fake *ExternalPolicyClient) AddPoliciesCallCount() int
func (*ExternalPolicyClient) AddPoliciesReturns ¶ added in v0.3.0
func (fake *ExternalPolicyClient) AddPoliciesReturns(result1 error)
func (*ExternalPolicyClient) DeletePolicies ¶ added in v0.3.0
func (fake *ExternalPolicyClient) DeletePolicies(token string, policies []models.Policy) error
func (*ExternalPolicyClient) DeletePoliciesArgsForCall ¶ added in v0.3.0
func (fake *ExternalPolicyClient) DeletePoliciesArgsForCall(i int) (string, []models.Policy)
func (*ExternalPolicyClient) DeletePoliciesCallCount ¶ added in v0.3.0
func (fake *ExternalPolicyClient) DeletePoliciesCallCount() int
func (*ExternalPolicyClient) DeletePoliciesReturns ¶ added in v0.3.0
func (fake *ExternalPolicyClient) DeletePoliciesReturns(result1 error)
func (*ExternalPolicyClient) GetPolicies ¶ added in v0.3.0
func (fake *ExternalPolicyClient) GetPolicies(token string) ([]models.Policy, error)
func (*ExternalPolicyClient) GetPoliciesArgsForCall ¶ added in v0.3.0
func (fake *ExternalPolicyClient) GetPoliciesArgsForCall(i int) string
func (*ExternalPolicyClient) GetPoliciesByID ¶ added in v0.3.0
func (*ExternalPolicyClient) GetPoliciesByIDArgsForCall ¶ added in v0.3.0
func (fake *ExternalPolicyClient) GetPoliciesByIDArgsForCall(i int) (string, []string)
func (*ExternalPolicyClient) GetPoliciesByIDCallCount ¶ added in v0.3.0
func (fake *ExternalPolicyClient) GetPoliciesByIDCallCount() int
func (*ExternalPolicyClient) GetPoliciesByIDReturns ¶ added in v0.3.0
func (fake *ExternalPolicyClient) GetPoliciesByIDReturns(result1 []models.Policy, result2 error)
func (*ExternalPolicyClient) GetPoliciesCallCount ¶ added in v0.3.0
func (fake *ExternalPolicyClient) GetPoliciesCallCount() int
func (*ExternalPolicyClient) GetPoliciesReturns ¶ added in v0.3.0
func (fake *ExternalPolicyClient) GetPoliciesReturns(result1 []models.Policy, result2 error)
func (*ExternalPolicyClient) Invocations ¶ added in v0.3.0
func (fake *ExternalPolicyClient) Invocations() map[string][][]interface{}
type HTTPClient ¶
type HTTPClient struct { DoStub func(*http.Request) (*http.Response, error) // contains filtered or unexported fields }
func (*HTTPClient) DoArgsForCall ¶
func (fake *HTTPClient) DoArgsForCall(i int) *http.Request
func (*HTTPClient) DoCallCount ¶
func (fake *HTTPClient) DoCallCount() int
func (*HTTPClient) DoReturns ¶
func (fake *HTTPClient) DoReturns(result1 *http.Response, result2 error)
func (*HTTPClient) Invocations ¶
func (fake *HTTPClient) Invocations() map[string][][]interface{}
type IPTables ¶
type IPTables struct { ExistsStub func(table, chain string, rulespec ...string) (bool, error) InsertStub func(table, chain string, pos int, rulespec ...string) error AppendUniqueStub func(table, chain string, rulespec ...string) error DeleteStub func(table, chain string, rulespec ...string) error ListStub func(table, chain string) ([]string, error) NewChainStub func(table, chain string) error ClearChainStub func(table, chain string) error DeleteChainStub func(table, chain string) error // contains filtered or unexported fields }
func (*IPTables) AppendUnique ¶
func (*IPTables) AppendUniqueArgsForCall ¶
func (*IPTables) AppendUniqueCallCount ¶
func (*IPTables) AppendUniqueReturns ¶
func (*IPTables) ClearChainArgsForCall ¶
func (*IPTables) ClearChainCallCount ¶
func (*IPTables) ClearChainReturns ¶
func (*IPTables) DeleteArgsForCall ¶
func (*IPTables) DeleteCallCount ¶
func (*IPTables) DeleteChainArgsForCall ¶
func (*IPTables) DeleteChainCallCount ¶
func (*IPTables) DeleteChainReturns ¶
func (*IPTables) DeleteReturns ¶
func (*IPTables) ExistsArgsForCall ¶
func (*IPTables) ExistsCallCount ¶
func (*IPTables) ExistsReturns ¶
func (*IPTables) InsertArgsForCall ¶
func (*IPTables) InsertCallCount ¶
func (*IPTables) InsertReturns ¶
func (*IPTables) Invocations ¶
func (*IPTables) ListCallCount ¶
func (*IPTables) ListReturns ¶
func (*IPTables) NewChainArgsForCall ¶
func (*IPTables) NewChainCallCount ¶
func (*IPTables) NewChainReturns ¶
type JSONClient ¶ added in v0.3.0
type JSONClient struct { DoStub func(method, route string, reqData, respData interface{}, token string) error // contains filtered or unexported fields }
func (*JSONClient) Do ¶ added in v0.3.0
func (fake *JSONClient) Do(method string, route string, reqData interface{}, respData interface{}, token string) error
func (*JSONClient) DoArgsForCall ¶ added in v0.3.0
func (fake *JSONClient) DoArgsForCall(i int) (string, string, interface{}, interface{}, string)
func (*JSONClient) DoCallCount ¶ added in v0.3.0
func (fake *JSONClient) DoCallCount() int
func (*JSONClient) DoReturns ¶ added in v0.3.0
func (fake *JSONClient) DoReturns(result1 error)
func (*JSONClient) Invocations ¶ added in v0.3.0
func (fake *JSONClient) Invocations() map[string][][]interface{}
type Marshaler ¶
type Marshaler struct { MarshalStub func(input interface{}) ([]byte, error) // contains filtered or unexported fields }
func (*Marshaler) Invocations ¶
func (*Marshaler) MarshalArgsForCall ¶
func (*Marshaler) MarshalCallCount ¶
func (*Marshaler) MarshalReturns ¶
type Planner ¶
type Planner struct { GetRulesStub func() ([]rules.Rule, error) // contains filtered or unexported fields }
func (*Planner) GetRulesCallCount ¶
func (*Planner) GetRulesReturns ¶
func (*Planner) Invocations ¶
type Rule ¶
type Rule struct { EnforceStub func(table, chain string, ipt rules.IPTables, logger lager.Logger) error // contains filtered or unexported fields }
func (*Rule) EnforceArgsForCall ¶
func (*Rule) EnforceCallCount ¶
func (*Rule) EnforceReturns ¶
func (*Rule) Invocations ¶
type RuleEnforcer ¶
type RuleEnforcer struct { EnforceOnChainStub func(chain rules.Chain, r []rules.Rule) error EnforceStub func(table, parentChain, chain string, r []rules.Rule) error // contains filtered or unexported fields }
func (*RuleEnforcer) EnforceArgsForCall ¶
func (*RuleEnforcer) EnforceCallCount ¶
func (fake *RuleEnforcer) EnforceCallCount() int
func (*RuleEnforcer) EnforceOnChain ¶
func (*RuleEnforcer) EnforceOnChainArgsForCall ¶
func (*RuleEnforcer) EnforceOnChainCallCount ¶
func (fake *RuleEnforcer) EnforceOnChainCallCount() int
func (*RuleEnforcer) EnforceOnChainReturns ¶
func (fake *RuleEnforcer) EnforceOnChainReturns(result1 error)
func (*RuleEnforcer) EnforceReturns ¶
func (fake *RuleEnforcer) EnforceReturns(result1 error)
func (*RuleEnforcer) Invocations ¶
func (fake *RuleEnforcer) 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{}
type Unmarshaler ¶
type Unmarshaler struct { UnmarshalStub func(input []byte, output interface{}) error // contains filtered or unexported fields }
func (*Unmarshaler) Invocations ¶
func (fake *Unmarshaler) Invocations() map[string][][]interface{}
func (*Unmarshaler) Unmarshal ¶
func (fake *Unmarshaler) Unmarshal(input []byte, output interface{}) error
func (*Unmarshaler) UnmarshalArgsForCall ¶
func (fake *Unmarshaler) UnmarshalArgsForCall(i int) ([]byte, interface{})
func (*Unmarshaler) UnmarshalCallCount ¶
func (fake *Unmarshaler) UnmarshalCallCount() int
func (*Unmarshaler) UnmarshalReturns ¶
func (fake *Unmarshaler) UnmarshalReturns(result1 error)
Click to show internal directories.
Click to hide internal directories.