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 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 PolicyClient
- type Rule
- func (fake *Rule) Enforce(arg1 string, arg2 rules.IPTables, arg3 lager.Logger) error
- func (fake *Rule) EnforceArgsForCall(i int) (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(chain string, r []rules.Rule) error
- func (fake *RuleEnforcer) EnforceArgsForCall(i int) (string, []rules.Rule)
- func (fake *RuleEnforcer) EnforceCallCount() int
- func (fake *RuleEnforcer) EnforceReturns(result1 error)
- func (fake *RuleEnforcer) Invocations() map[string][][]interface{}
- type StoreReader
- type StoreWriter
- func (fake *StoreWriter) Add(containerID string, groupID string, IP string) error
- func (fake *StoreWriter) AddArgsForCall(i int) (string, string, string)
- func (fake *StoreWriter) AddCallCount() int
- func (fake *StoreWriter) AddReturns(result1 error)
- func (fake *StoreWriter) Del(containerID string) error
- func (fake *StoreWriter) DelArgsForCall(i int) string
- func (fake *StoreWriter) DelCallCount() int
- func (fake *StoreWriter) DelReturns(result1 error)
- func (fake *StoreWriter) Invocations() map[string][][]interface{}
- type TimeStamper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 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 Rule ¶
type Rule struct { EnforceStub func(string, rules.IPTables, 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 { EnforceStub func(chain string, r []rules.Rule) error // contains filtered or unexported fields }
func (*RuleEnforcer) Enforce ¶
func (fake *RuleEnforcer) Enforce(chain string, r []rules.Rule) error
func (*RuleEnforcer) EnforceArgsForCall ¶
func (fake *RuleEnforcer) EnforceArgsForCall(i int) (string, []rules.Rule)
func (*RuleEnforcer) EnforceCallCount ¶
func (fake *RuleEnforcer) EnforceCallCount() int
func (*RuleEnforcer) EnforceReturns ¶
func (fake *RuleEnforcer) EnforceReturns(result1 error)
func (*RuleEnforcer) Invocations ¶
func (fake *RuleEnforcer) Invocations() map[string][][]interface{}
type StoreReader ¶
type StoreReader struct { GetContainersStub func() map[string][]models.Container // contains filtered or unexported fields }
func (*StoreReader) GetContainers ¶
func (fake *StoreReader) GetContainers() map[string][]models.Container
func (*StoreReader) GetContainersCallCount ¶
func (fake *StoreReader) GetContainersCallCount() int
func (*StoreReader) GetContainersReturns ¶
func (fake *StoreReader) GetContainersReturns(result1 map[string][]models.Container)
func (*StoreReader) Invocations ¶
func (fake *StoreReader) Invocations() map[string][][]interface{}
type StoreWriter ¶
type StoreWriter struct { AddStub func(containerID, groupID, IP string) error DelStub func(containerID string) error // contains filtered or unexported fields }
func (*StoreWriter) Add ¶
func (fake *StoreWriter) Add(containerID string, groupID string, IP string) error
func (*StoreWriter) AddArgsForCall ¶
func (fake *StoreWriter) AddArgsForCall(i int) (string, string, string)
func (*StoreWriter) AddCallCount ¶
func (fake *StoreWriter) AddCallCount() int
func (*StoreWriter) AddReturns ¶
func (fake *StoreWriter) AddReturns(result1 error)
func (*StoreWriter) Del ¶
func (fake *StoreWriter) Del(containerID string) error
func (*StoreWriter) DelArgsForCall ¶
func (fake *StoreWriter) DelArgsForCall(i int) string
func (*StoreWriter) DelCallCount ¶
func (fake *StoreWriter) DelCallCount() int
func (*StoreWriter) DelReturns ¶
func (fake *StoreWriter) DelReturns(result1 error)
func (*StoreWriter) Invocations ¶
func (fake *StoreWriter) 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{}
Click to show internal directories.
Click to hide internal directories.