Documentation ¶
Overview ¶
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
This file was generated by counterfeiter
Index ¶
- type Chunker
- func (fake *Chunker) Chunk(allPolicies []models.Policy) [][]models.Policy
- func (fake *Chunker) ChunkArgsForCall(i int) []models.Policy
- func (fake *Chunker) ChunkCallCount() int
- func (fake *Chunker) ChunkReturns(result1 [][]models.Policy)
- func (fake *Chunker) ChunkReturnsOnCall(i int, result1 [][]models.Policy)
- func (fake *Chunker) Invocations() map[string][][]interface{}
- type Datastore
- func (fake *Datastore) Add(handle string, ip string, metadata map[string]interface{}) error
- func (fake *Datastore) AddArgsForCall(i int) (string, string, map[string]interface{})
- func (fake *Datastore) AddCallCount() int
- func (fake *Datastore) AddReturns(result1 error)
- func (fake *Datastore) AddReturnsOnCall(i int, result1 error)
- func (fake *Datastore) Delete(handle string) (datastore.Container, error)
- func (fake *Datastore) DeleteArgsForCall(i int) string
- func (fake *Datastore) DeleteCallCount() int
- func (fake *Datastore) DeleteReturns(result1 datastore.Container, result2 error)
- func (fake *Datastore) DeleteReturnsOnCall(i int, result1 datastore.Container, result2 error)
- func (fake *Datastore) Invocations() map[string][][]interface{}
- func (fake *Datastore) ReadAll() (map[string]datastore.Container, error)
- func (fake *Datastore) ReadAllCallCount() int
- func (fake *Datastore) ReadAllReturns(result1 map[string]datastore.Container, result2 error)
- func (fake *Datastore) ReadAllReturnsOnCall(i int, result1 map[string]datastore.Container, result2 error)
- 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) AddPoliciesReturnsOnCall(i int, 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) DeletePoliciesReturnsOnCall(i int, 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) GetPoliciesByIDReturnsOnCall(i int, result1 []models.Policy, result2 error)
- func (fake *ExternalPolicyClient) GetPoliciesCallCount() int
- func (fake *ExternalPolicyClient) GetPoliciesReturns(result1 []models.Policy, result2 error)
- func (fake *ExternalPolicyClient) GetPoliciesReturnsOnCall(i int, result1 []models.Policy, result2 error)
- func (fake *ExternalPolicyClient) Invocations() map[string][][]interface{}
- type FileLocker
- func (fake *FileLocker) Invocations() map[string][][]interface{}
- func (fake *FileLocker) Open() (filelock.LockedFile, error)
- func (fake *FileLocker) OpenCallCount() int
- func (fake *FileLocker) OpenReturns(result1 filelock.LockedFile, result2 error)
- func (fake *FileLocker) OpenReturnsOnCall(i int, result1 filelock.LockedFile, result2 error)
- 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) AppendUniqueReturnsOnCall(i int, 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) ClearChainReturnsOnCall(i int, 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) DeleteChainReturnsOnCall(i int, result1 error)
- func (fake *IPTables) DeleteReturns(result1 error)
- func (fake *IPTables) DeleteReturnsOnCall(i int, 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) ExistsReturnsOnCall(i int, 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) InsertReturnsOnCall(i int, 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) ListReturnsOnCall(i int, 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)
- func (fake *IPTables) NewChainReturnsOnCall(i int, result1 error)
- type IPTablesAdapter
- func (fake *IPTablesAdapter) BulkAppend(table string, chain string, rulespec ...rules.IPTablesRule) error
- func (fake *IPTablesAdapter) BulkAppendArgsForCall(i int) (string, string, []rules.IPTablesRule)
- func (fake *IPTablesAdapter) BulkAppendCallCount() int
- func (fake *IPTablesAdapter) BulkAppendReturns(result1 error)
- func (fake *IPTablesAdapter) BulkAppendReturnsOnCall(i int, result1 error)
- func (fake *IPTablesAdapter) BulkInsert(table string, chain string, pos int, rulespec ...rules.IPTablesRule) error
- func (fake *IPTablesAdapter) BulkInsertArgsForCall(i int) (string, string, int, []rules.IPTablesRule)
- func (fake *IPTablesAdapter) BulkInsertCallCount() int
- func (fake *IPTablesAdapter) BulkInsertReturns(result1 error)
- func (fake *IPTablesAdapter) BulkInsertReturnsOnCall(i int, result1 error)
- func (fake *IPTablesAdapter) ClearChain(table string, chain string) error
- func (fake *IPTablesAdapter) ClearChainArgsForCall(i int) (string, string)
- func (fake *IPTablesAdapter) ClearChainCallCount() int
- func (fake *IPTablesAdapter) ClearChainReturns(result1 error)
- func (fake *IPTablesAdapter) ClearChainReturnsOnCall(i int, result1 error)
- func (fake *IPTablesAdapter) Delete(table string, chain string, rulespec rules.IPTablesRule) error
- func (fake *IPTablesAdapter) DeleteArgsForCall(i int) (string, string, rules.IPTablesRule)
- func (fake *IPTablesAdapter) DeleteCallCount() int
- func (fake *IPTablesAdapter) DeleteChain(table string, chain string) error
- func (fake *IPTablesAdapter) DeleteChainArgsForCall(i int) (string, string)
- func (fake *IPTablesAdapter) DeleteChainCallCount() int
- func (fake *IPTablesAdapter) DeleteChainReturns(result1 error)
- func (fake *IPTablesAdapter) DeleteChainReturnsOnCall(i int, result1 error)
- func (fake *IPTablesAdapter) DeleteReturns(result1 error)
- func (fake *IPTablesAdapter) DeleteReturnsOnCall(i int, result1 error)
- func (fake *IPTablesAdapter) Exists(table string, chain string, rulespec rules.IPTablesRule) (bool, error)
- func (fake *IPTablesAdapter) ExistsArgsForCall(i int) (string, string, rules.IPTablesRule)
- func (fake *IPTablesAdapter) ExistsCallCount() int
- func (fake *IPTablesAdapter) ExistsReturns(result1 bool, result2 error)
- func (fake *IPTablesAdapter) ExistsReturnsOnCall(i int, result1 bool, result2 error)
- func (fake *IPTablesAdapter) Invocations() map[string][][]interface{}
- func (fake *IPTablesAdapter) List(table string, chain string) ([]string, error)
- func (fake *IPTablesAdapter) ListArgsForCall(i int) (string, string)
- func (fake *IPTablesAdapter) ListCallCount() int
- func (fake *IPTablesAdapter) ListReturns(result1 []string, result2 error)
- func (fake *IPTablesAdapter) ListReturnsOnCall(i int, result1 []string, result2 error)
- func (fake *IPTablesAdapter) NewChain(table string, chain string) error
- func (fake *IPTablesAdapter) NewChainArgsForCall(i int) (string, string)
- func (fake *IPTablesAdapter) NewChainCallCount() int
- func (fake *IPTablesAdapter) NewChainReturns(result1 error)
- func (fake *IPTablesAdapter) NewChainReturnsOnCall(i int, result1 error)
- type LockedFile
- func (fake *LockedFile) Close() error
- func (fake *LockedFile) CloseCallCount() int
- func (fake *LockedFile) CloseReturns(result1 error)
- func (fake *LockedFile) CloseReturnsOnCall(i int, result1 error)
- func (fake *LockedFile) Invocations() map[string][][]interface{}
- func (fake *LockedFile) Read(arg1 []byte) (int, error)
- func (fake *LockedFile) ReadArgsForCall(i int) []byte
- func (fake *LockedFile) ReadCallCount() int
- func (fake *LockedFile) ReadReturns(result1 int, result2 error)
- func (fake *LockedFile) ReadReturnsOnCall(i int, result1 int, result2 error)
- func (fake *LockedFile) Seek(arg1 int64, arg2 int) (int64, error)
- func (fake *LockedFile) SeekArgsForCall(i int) (int64, int)
- func (fake *LockedFile) SeekCallCount() int
- func (fake *LockedFile) SeekReturns(result1 int64, result2 error)
- func (fake *LockedFile) SeekReturnsOnCall(i int, result1 int64, result2 error)
- func (fake *LockedFile) Truncate(arg1 int64) error
- func (fake *LockedFile) TruncateArgsForCall(i int) int64
- func (fake *LockedFile) TruncateCallCount() int
- func (fake *LockedFile) TruncateReturns(result1 error)
- func (fake *LockedFile) TruncateReturnsOnCall(i int, result1 error)
- func (fake *LockedFile) Write(arg1 []byte) (int, error)
- func (fake *LockedFile) WriteArgsForCall(i int) []byte
- func (fake *LockedFile) WriteCallCount() int
- func (fake *LockedFile) WriteReturns(result1 int, result2 error)
- func (fake *LockedFile) WriteReturnsOnCall(i int, result1 int, result2 error)
- type Locker
- func (fake *Locker) Invocations() map[string][][]interface{}
- func (fake *Locker) Lock() error
- func (fake *Locker) LockCallCount() int
- func (fake *Locker) LockReturns(result1 error)
- func (fake *Locker) LockReturnsOnCall(i int, result1 error)
- func (fake *Locker) Unlock() error
- func (fake *Locker) UnlockCallCount() int
- func (fake *Locker) UnlockReturns(result1 error)
- func (fake *Locker) UnlockReturnsOnCall(i int, result1 error)
- type OverwriteableFile
- func (fake *OverwriteableFile) Invocations() map[string][][]interface{}
- func (fake *OverwriteableFile) Read(p []byte) (n int, err error)
- func (fake *OverwriteableFile) ReadArgsForCall(i int) []byte
- func (fake *OverwriteableFile) ReadCallCount() int
- func (fake *OverwriteableFile) ReadReturns(result1 int, result2 error)
- func (fake *OverwriteableFile) ReadReturnsOnCall(i int, result1 int, result2 error)
- func (fake *OverwriteableFile) Seek(offset int64, whence int) (int64, error)
- func (fake *OverwriteableFile) SeekArgsForCall(i int) (int64, int)
- func (fake *OverwriteableFile) SeekCallCount() int
- func (fake *OverwriteableFile) SeekReturns(result1 int64, result2 error)
- func (fake *OverwriteableFile) SeekReturnsOnCall(i int, result1 int64, result2 error)
- func (fake *OverwriteableFile) Truncate(size int64) error
- func (fake *OverwriteableFile) TruncateArgsForCall(i int) int64
- func (fake *OverwriteableFile) TruncateCallCount() int
- func (fake *OverwriteableFile) TruncateReturns(result1 error)
- func (fake *OverwriteableFile) TruncateReturnsOnCall(i int, result1 error)
- func (fake *OverwriteableFile) Write(p []byte) (n int, err error)
- func (fake *OverwriteableFile) WriteArgsForCall(i int) []byte
- func (fake *OverwriteableFile) WriteCallCount() int
- func (fake *OverwriteableFile) WriteReturns(result1 int, result2 error)
- func (fake *OverwriteableFile) WriteReturnsOnCall(i int, result1 int, result2 error)
- type Restorer
- func (fake *Restorer) Invocations() map[string][][]interface{}
- func (fake *Restorer) Restore(ruleState string) error
- func (fake *Restorer) RestoreArgsForCall(i int) string
- func (fake *Restorer) RestoreCallCount() int
- func (fake *Restorer) RestoreReturns(result1 error)
- func (fake *Restorer) RestoreReturnsOnCall(i int, result1 error)
- type Serializer
- func (fake *Serializer) DecodeAll(file io.ReadSeeker, outData interface{}) error
- func (fake *Serializer) DecodeAllArgsForCall(i int) (io.ReadSeeker, interface{})
- func (fake *Serializer) DecodeAllCallCount() int
- func (fake *Serializer) DecodeAllReturns(result1 error)
- func (fake *Serializer) DecodeAllReturnsOnCall(i int, result1 error)
- func (fake *Serializer) EncodeAndOverwrite(file serial.OverwriteableFile, outData interface{}) error
- func (fake *Serializer) EncodeAndOverwriteArgsForCall(i int) (serial.OverwriteableFile, interface{})
- func (fake *Serializer) EncodeAndOverwriteCallCount() int
- func (fake *Serializer) EncodeAndOverwriteReturns(result1 error)
- func (fake *Serializer) EncodeAndOverwriteReturnsOnCall(i int, result1 error)
- func (fake *Serializer) Invocations() map[string][][]interface{}
- type Sleeper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chunker ¶ added in v0.17.0
type Chunker struct { ChunkStub func(allPolicies []models.Policy) [][]models.Policy // contains filtered or unexported fields }
func (*Chunker) ChunkArgsForCall ¶ added in v0.17.0
func (*Chunker) ChunkCallCount ¶ added in v0.17.0
func (*Chunker) ChunkReturns ¶ added in v0.17.0
func (*Chunker) ChunkReturnsOnCall ¶ added in v0.20.0
func (*Chunker) Invocations ¶ added in v0.17.0
type Datastore ¶ added in v0.6.0
type Datastore struct { AddStub func(handle, ip string, metadata map[string]interface{}) error DeleteStub func(handle string) (datastore.Container, error) ReadAllStub func() (map[string]datastore.Container, error) // contains filtered or unexported fields }
func (*Datastore) AddArgsForCall ¶ added in v0.6.0
func (*Datastore) AddCallCount ¶ added in v0.6.0
func (*Datastore) AddReturns ¶ added in v0.6.0
func (*Datastore) AddReturnsOnCall ¶ added in v0.20.0
func (*Datastore) DeleteArgsForCall ¶ added in v0.6.0
func (*Datastore) DeleteCallCount ¶ added in v0.6.0
func (*Datastore) DeleteReturns ¶ added in v0.6.0
func (*Datastore) DeleteReturnsOnCall ¶ added in v0.20.0
func (*Datastore) Invocations ¶ added in v0.6.0
func (*Datastore) ReadAllCallCount ¶ added in v0.6.0
func (*Datastore) ReadAllReturns ¶ added in v0.6.0
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) AddPoliciesReturnsOnCall ¶ added in v0.20.0
func (fake *ExternalPolicyClient) AddPoliciesReturnsOnCall(i int, 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) DeletePoliciesReturnsOnCall ¶ added in v0.20.0
func (fake *ExternalPolicyClient) DeletePoliciesReturnsOnCall(i int, 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) GetPoliciesByIDReturnsOnCall ¶ added in v0.20.0
func (fake *ExternalPolicyClient) GetPoliciesByIDReturnsOnCall(i int, 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) GetPoliciesReturnsOnCall ¶ added in v0.20.0
func (fake *ExternalPolicyClient) GetPoliciesReturnsOnCall(i int, result1 []models.Policy, result2 error)
func (*ExternalPolicyClient) Invocations ¶ added in v0.3.0
func (fake *ExternalPolicyClient) Invocations() map[string][][]interface{}
type FileLocker ¶ added in v0.6.0
type FileLocker struct { OpenStub func() (filelock.LockedFile, error) // contains filtered or unexported fields }
func (*FileLocker) Invocations ¶ added in v0.6.0
func (fake *FileLocker) Invocations() map[string][][]interface{}
func (*FileLocker) Open ¶ added in v0.6.0
func (fake *FileLocker) Open() (filelock.LockedFile, error)
func (*FileLocker) OpenCallCount ¶ added in v0.6.0
func (fake *FileLocker) OpenCallCount() int
func (*FileLocker) OpenReturns ¶ added in v0.6.0
func (fake *FileLocker) OpenReturns(result1 filelock.LockedFile, result2 error)
func (*FileLocker) OpenReturnsOnCall ¶ added in v0.20.0
func (fake *FileLocker) OpenReturnsOnCall(i int, result1 filelock.LockedFile, result2 error)
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) AppendUniqueReturnsOnCall ¶ added in v0.20.0
func (*IPTables) ClearChainArgsForCall ¶
func (*IPTables) ClearChainCallCount ¶
func (*IPTables) ClearChainReturns ¶
func (*IPTables) ClearChainReturnsOnCall ¶ added in v0.20.0
func (*IPTables) DeleteArgsForCall ¶
func (*IPTables) DeleteCallCount ¶
func (*IPTables) DeleteChainArgsForCall ¶
func (*IPTables) DeleteChainCallCount ¶
func (*IPTables) DeleteChainReturns ¶
func (*IPTables) DeleteChainReturnsOnCall ¶ added in v0.20.0
func (*IPTables) DeleteReturns ¶
func (*IPTables) DeleteReturnsOnCall ¶ added in v0.20.0
func (*IPTables) ExistsArgsForCall ¶
func (*IPTables) ExistsCallCount ¶
func (*IPTables) ExistsReturns ¶
func (*IPTables) ExistsReturnsOnCall ¶ added in v0.20.0
func (*IPTables) InsertArgsForCall ¶
func (*IPTables) InsertCallCount ¶
func (*IPTables) InsertReturns ¶
func (*IPTables) InsertReturnsOnCall ¶ added in v0.20.0
func (*IPTables) Invocations ¶
func (*IPTables) ListCallCount ¶
func (*IPTables) ListReturns ¶
func (*IPTables) ListReturnsOnCall ¶ added in v0.20.0
func (*IPTables) NewChainArgsForCall ¶
func (*IPTables) NewChainCallCount ¶
func (*IPTables) NewChainReturns ¶
func (*IPTables) NewChainReturnsOnCall ¶ added in v0.20.0
type IPTablesAdapter ¶ added in v0.7.0
type IPTablesAdapter struct { ExistsStub func(table, chain string, rulespec rules.IPTablesRule) (bool, error) DeleteStub func(table, chain string, rulespec rules.IPTablesRule) 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 BulkInsertStub func(table, chain string, pos int, rulespec ...rules.IPTablesRule) error BulkAppendStub func(table, chain string, rulespec ...rules.IPTablesRule) error // contains filtered or unexported fields }
func (*IPTablesAdapter) BulkAppend ¶ added in v0.7.0
func (fake *IPTablesAdapter) BulkAppend(table string, chain string, rulespec ...rules.IPTablesRule) error
func (*IPTablesAdapter) BulkAppendArgsForCall ¶ added in v0.7.0
func (fake *IPTablesAdapter) BulkAppendArgsForCall(i int) (string, string, []rules.IPTablesRule)
func (*IPTablesAdapter) BulkAppendCallCount ¶ added in v0.7.0
func (fake *IPTablesAdapter) BulkAppendCallCount() int
func (*IPTablesAdapter) BulkAppendReturns ¶ added in v0.7.0
func (fake *IPTablesAdapter) BulkAppendReturns(result1 error)
func (*IPTablesAdapter) BulkAppendReturnsOnCall ¶ added in v0.20.0
func (fake *IPTablesAdapter) BulkAppendReturnsOnCall(i int, result1 error)
func (*IPTablesAdapter) BulkInsert ¶ added in v0.7.0
func (fake *IPTablesAdapter) BulkInsert(table string, chain string, pos int, rulespec ...rules.IPTablesRule) error
func (*IPTablesAdapter) BulkInsertArgsForCall ¶ added in v0.7.0
func (fake *IPTablesAdapter) BulkInsertArgsForCall(i int) (string, string, int, []rules.IPTablesRule)
func (*IPTablesAdapter) BulkInsertCallCount ¶ added in v0.7.0
func (fake *IPTablesAdapter) BulkInsertCallCount() int
func (*IPTablesAdapter) BulkInsertReturns ¶ added in v0.7.0
func (fake *IPTablesAdapter) BulkInsertReturns(result1 error)
func (*IPTablesAdapter) BulkInsertReturnsOnCall ¶ added in v0.20.0
func (fake *IPTablesAdapter) BulkInsertReturnsOnCall(i int, result1 error)
func (*IPTablesAdapter) ClearChain ¶ added in v0.7.0
func (fake *IPTablesAdapter) ClearChain(table string, chain string) error
func (*IPTablesAdapter) ClearChainArgsForCall ¶ added in v0.7.0
func (fake *IPTablesAdapter) ClearChainArgsForCall(i int) (string, string)
func (*IPTablesAdapter) ClearChainCallCount ¶ added in v0.7.0
func (fake *IPTablesAdapter) ClearChainCallCount() int
func (*IPTablesAdapter) ClearChainReturns ¶ added in v0.7.0
func (fake *IPTablesAdapter) ClearChainReturns(result1 error)
func (*IPTablesAdapter) ClearChainReturnsOnCall ¶ added in v0.20.0
func (fake *IPTablesAdapter) ClearChainReturnsOnCall(i int, result1 error)
func (*IPTablesAdapter) Delete ¶ added in v0.7.0
func (fake *IPTablesAdapter) Delete(table string, chain string, rulespec rules.IPTablesRule) error
func (*IPTablesAdapter) DeleteArgsForCall ¶ added in v0.7.0
func (fake *IPTablesAdapter) DeleteArgsForCall(i int) (string, string, rules.IPTablesRule)
func (*IPTablesAdapter) DeleteCallCount ¶ added in v0.7.0
func (fake *IPTablesAdapter) DeleteCallCount() int
func (*IPTablesAdapter) DeleteChain ¶ added in v0.7.0
func (fake *IPTablesAdapter) DeleteChain(table string, chain string) error
func (*IPTablesAdapter) DeleteChainArgsForCall ¶ added in v0.7.0
func (fake *IPTablesAdapter) DeleteChainArgsForCall(i int) (string, string)
func (*IPTablesAdapter) DeleteChainCallCount ¶ added in v0.7.0
func (fake *IPTablesAdapter) DeleteChainCallCount() int
func (*IPTablesAdapter) DeleteChainReturns ¶ added in v0.7.0
func (fake *IPTablesAdapter) DeleteChainReturns(result1 error)
func (*IPTablesAdapter) DeleteChainReturnsOnCall ¶ added in v0.20.0
func (fake *IPTablesAdapter) DeleteChainReturnsOnCall(i int, result1 error)
func (*IPTablesAdapter) DeleteReturns ¶ added in v0.7.0
func (fake *IPTablesAdapter) DeleteReturns(result1 error)
func (*IPTablesAdapter) DeleteReturnsOnCall ¶ added in v0.20.0
func (fake *IPTablesAdapter) DeleteReturnsOnCall(i int, result1 error)
func (*IPTablesAdapter) Exists ¶ added in v0.7.0
func (fake *IPTablesAdapter) Exists(table string, chain string, rulespec rules.IPTablesRule) (bool, error)
func (*IPTablesAdapter) ExistsArgsForCall ¶ added in v0.7.0
func (fake *IPTablesAdapter) ExistsArgsForCall(i int) (string, string, rules.IPTablesRule)
func (*IPTablesAdapter) ExistsCallCount ¶ added in v0.7.0
func (fake *IPTablesAdapter) ExistsCallCount() int
func (*IPTablesAdapter) ExistsReturns ¶ added in v0.7.0
func (fake *IPTablesAdapter) ExistsReturns(result1 bool, result2 error)
func (*IPTablesAdapter) ExistsReturnsOnCall ¶ added in v0.20.0
func (fake *IPTablesAdapter) ExistsReturnsOnCall(i int, result1 bool, result2 error)
func (*IPTablesAdapter) Invocations ¶ added in v0.7.0
func (fake *IPTablesAdapter) Invocations() map[string][][]interface{}
func (*IPTablesAdapter) List ¶ added in v0.7.0
func (fake *IPTablesAdapter) List(table string, chain string) ([]string, error)
func (*IPTablesAdapter) ListArgsForCall ¶ added in v0.7.0
func (fake *IPTablesAdapter) ListArgsForCall(i int) (string, string)
func (*IPTablesAdapter) ListCallCount ¶ added in v0.7.0
func (fake *IPTablesAdapter) ListCallCount() int
func (*IPTablesAdapter) ListReturns ¶ added in v0.7.0
func (fake *IPTablesAdapter) ListReturns(result1 []string, result2 error)
func (*IPTablesAdapter) ListReturnsOnCall ¶ added in v0.20.0
func (fake *IPTablesAdapter) ListReturnsOnCall(i int, result1 []string, result2 error)
func (*IPTablesAdapter) NewChain ¶ added in v0.7.0
func (fake *IPTablesAdapter) NewChain(table string, chain string) error
func (*IPTablesAdapter) NewChainArgsForCall ¶ added in v0.7.0
func (fake *IPTablesAdapter) NewChainArgsForCall(i int) (string, string)
func (*IPTablesAdapter) NewChainCallCount ¶ added in v0.7.0
func (fake *IPTablesAdapter) NewChainCallCount() int
func (*IPTablesAdapter) NewChainReturns ¶ added in v0.7.0
func (fake *IPTablesAdapter) NewChainReturns(result1 error)
func (*IPTablesAdapter) NewChainReturnsOnCall ¶ added in v0.20.0
func (fake *IPTablesAdapter) NewChainReturnsOnCall(i int, result1 error)
type LockedFile ¶ added in v1.1.0
type LockedFile struct { CloseStub func() error ReadStub func([]byte) (int, error) TruncateStub func(int64) error WriteStub func([]byte) (int, error) SeekStub func(int64, int) (int64, error) // contains filtered or unexported fields }
func (*LockedFile) Close ¶ added in v1.1.0
func (fake *LockedFile) Close() error
func (*LockedFile) CloseCallCount ¶ added in v1.1.0
func (fake *LockedFile) CloseCallCount() int
func (*LockedFile) CloseReturns ¶ added in v1.1.0
func (fake *LockedFile) CloseReturns(result1 error)
func (*LockedFile) CloseReturnsOnCall ¶ added in v1.1.0
func (fake *LockedFile) CloseReturnsOnCall(i int, result1 error)
func (*LockedFile) Invocations ¶ added in v1.1.0
func (fake *LockedFile) Invocations() map[string][][]interface{}
func (*LockedFile) ReadArgsForCall ¶ added in v1.1.0
func (fake *LockedFile) ReadArgsForCall(i int) []byte
func (*LockedFile) ReadCallCount ¶ added in v1.1.0
func (fake *LockedFile) ReadCallCount() int
func (*LockedFile) ReadReturns ¶ added in v1.1.0
func (fake *LockedFile) ReadReturns(result1 int, result2 error)
func (*LockedFile) ReadReturnsOnCall ¶ added in v1.1.0
func (fake *LockedFile) ReadReturnsOnCall(i int, result1 int, result2 error)
func (*LockedFile) Seek ¶ added in v1.1.0
func (fake *LockedFile) Seek(arg1 int64, arg2 int) (int64, error)
func (*LockedFile) SeekArgsForCall ¶ added in v1.1.0
func (fake *LockedFile) SeekArgsForCall(i int) (int64, int)
func (*LockedFile) SeekCallCount ¶ added in v1.1.0
func (fake *LockedFile) SeekCallCount() int
func (*LockedFile) SeekReturns ¶ added in v1.1.0
func (fake *LockedFile) SeekReturns(result1 int64, result2 error)
func (*LockedFile) SeekReturnsOnCall ¶ added in v1.1.0
func (fake *LockedFile) SeekReturnsOnCall(i int, result1 int64, result2 error)
func (*LockedFile) Truncate ¶ added in v1.1.0
func (fake *LockedFile) Truncate(arg1 int64) error
func (*LockedFile) TruncateArgsForCall ¶ added in v1.1.0
func (fake *LockedFile) TruncateArgsForCall(i int) int64
func (*LockedFile) TruncateCallCount ¶ added in v1.1.0
func (fake *LockedFile) TruncateCallCount() int
func (*LockedFile) TruncateReturns ¶ added in v1.1.0
func (fake *LockedFile) TruncateReturns(result1 error)
func (*LockedFile) TruncateReturnsOnCall ¶ added in v1.1.0
func (fake *LockedFile) TruncateReturnsOnCall(i int, result1 error)
func (*LockedFile) WriteArgsForCall ¶ added in v1.1.0
func (fake *LockedFile) WriteArgsForCall(i int) []byte
func (*LockedFile) WriteCallCount ¶ added in v1.1.0
func (fake *LockedFile) WriteCallCount() int
func (*LockedFile) WriteReturns ¶ added in v1.1.0
func (fake *LockedFile) WriteReturns(result1 int, result2 error)
func (*LockedFile) WriteReturnsOnCall ¶ added in v1.1.0
func (fake *LockedFile) WriteReturnsOnCall(i int, result1 int, result2 error)
type Locker ¶ added in v0.7.0
type Locker struct { LockStub func() error UnlockStub func() error // contains filtered or unexported fields }
func (*Locker) Invocations ¶ added in v0.7.0
func (*Locker) LockCallCount ¶ added in v0.7.0
func (*Locker) LockReturns ¶ added in v0.7.0
func (*Locker) LockReturnsOnCall ¶ added in v0.20.0
func (*Locker) UnlockCallCount ¶ added in v0.7.0
func (*Locker) UnlockReturns ¶ added in v0.7.0
func (*Locker) UnlockReturnsOnCall ¶ added in v0.20.0
type OverwriteableFile ¶ added in v0.6.0
type OverwriteableFile struct { ReadStub func(p []byte) (n int, err error) WriteStub func(p []byte) (n int, err error) SeekStub func(offset int64, whence int) (int64, error) TruncateStub func(size int64) error // contains filtered or unexported fields }
func (*OverwriteableFile) Invocations ¶ added in v0.6.0
func (fake *OverwriteableFile) Invocations() map[string][][]interface{}
func (*OverwriteableFile) Read ¶ added in v0.6.0
func (fake *OverwriteableFile) Read(p []byte) (n int, err error)
func (*OverwriteableFile) ReadArgsForCall ¶ added in v0.6.0
func (fake *OverwriteableFile) ReadArgsForCall(i int) []byte
func (*OverwriteableFile) ReadCallCount ¶ added in v0.6.0
func (fake *OverwriteableFile) ReadCallCount() int
func (*OverwriteableFile) ReadReturns ¶ added in v0.6.0
func (fake *OverwriteableFile) ReadReturns(result1 int, result2 error)
func (*OverwriteableFile) ReadReturnsOnCall ¶ added in v0.20.0
func (fake *OverwriteableFile) ReadReturnsOnCall(i int, result1 int, result2 error)
func (*OverwriteableFile) Seek ¶ added in v0.6.0
func (fake *OverwriteableFile) Seek(offset int64, whence int) (int64, error)
func (*OverwriteableFile) SeekArgsForCall ¶ added in v0.6.0
func (fake *OverwriteableFile) SeekArgsForCall(i int) (int64, int)
func (*OverwriteableFile) SeekCallCount ¶ added in v0.6.0
func (fake *OverwriteableFile) SeekCallCount() int
func (*OverwriteableFile) SeekReturns ¶ added in v0.6.0
func (fake *OverwriteableFile) SeekReturns(result1 int64, result2 error)
func (*OverwriteableFile) SeekReturnsOnCall ¶ added in v0.20.0
func (fake *OverwriteableFile) SeekReturnsOnCall(i int, result1 int64, result2 error)
func (*OverwriteableFile) Truncate ¶ added in v0.6.0
func (fake *OverwriteableFile) Truncate(size int64) error
func (*OverwriteableFile) TruncateArgsForCall ¶ added in v0.6.0
func (fake *OverwriteableFile) TruncateArgsForCall(i int) int64
func (*OverwriteableFile) TruncateCallCount ¶ added in v0.6.0
func (fake *OverwriteableFile) TruncateCallCount() int
func (*OverwriteableFile) TruncateReturns ¶ added in v0.6.0
func (fake *OverwriteableFile) TruncateReturns(result1 error)
func (*OverwriteableFile) TruncateReturnsOnCall ¶ added in v0.20.0
func (fake *OverwriteableFile) TruncateReturnsOnCall(i int, result1 error)
func (*OverwriteableFile) Write ¶ added in v0.6.0
func (fake *OverwriteableFile) Write(p []byte) (n int, err error)
func (*OverwriteableFile) WriteArgsForCall ¶ added in v0.6.0
func (fake *OverwriteableFile) WriteArgsForCall(i int) []byte
func (*OverwriteableFile) WriteCallCount ¶ added in v0.6.0
func (fake *OverwriteableFile) WriteCallCount() int
func (*OverwriteableFile) WriteReturns ¶ added in v0.6.0
func (fake *OverwriteableFile) WriteReturns(result1 int, result2 error)
func (*OverwriteableFile) WriteReturnsOnCall ¶ added in v0.20.0
func (fake *OverwriteableFile) WriteReturnsOnCall(i int, result1 int, result2 error)
type Restorer ¶ added in v0.7.0
type Restorer struct { RestoreStub func(ruleState string) error // contains filtered or unexported fields }
func (*Restorer) Invocations ¶ added in v0.7.0
func (*Restorer) RestoreArgsForCall ¶ added in v0.7.0
func (*Restorer) RestoreCallCount ¶ added in v0.7.0
func (*Restorer) RestoreReturns ¶ added in v0.7.0
func (*Restorer) RestoreReturnsOnCall ¶ added in v0.20.0
type Serializer ¶ added in v0.6.0
type Serializer struct { DecodeAllStub func(file io.ReadSeeker, outData interface{}) error EncodeAndOverwriteStub func(file serial.OverwriteableFile, outData interface{}) error // contains filtered or unexported fields }
func (*Serializer) DecodeAll ¶ added in v0.6.0
func (fake *Serializer) DecodeAll(file io.ReadSeeker, outData interface{}) error
func (*Serializer) DecodeAllArgsForCall ¶ added in v0.6.0
func (fake *Serializer) DecodeAllArgsForCall(i int) (io.ReadSeeker, interface{})
func (*Serializer) DecodeAllCallCount ¶ added in v0.6.0
func (fake *Serializer) DecodeAllCallCount() int
func (*Serializer) DecodeAllReturns ¶ added in v0.6.0
func (fake *Serializer) DecodeAllReturns(result1 error)
func (*Serializer) DecodeAllReturnsOnCall ¶ added in v0.20.0
func (fake *Serializer) DecodeAllReturnsOnCall(i int, result1 error)
func (*Serializer) EncodeAndOverwrite ¶ added in v0.6.0
func (fake *Serializer) EncodeAndOverwrite(file serial.OverwriteableFile, outData interface{}) error
func (*Serializer) EncodeAndOverwriteArgsForCall ¶ added in v0.6.0
func (fake *Serializer) EncodeAndOverwriteArgsForCall(i int) (serial.OverwriteableFile, interface{})
func (*Serializer) EncodeAndOverwriteCallCount ¶ added in v0.6.0
func (fake *Serializer) EncodeAndOverwriteCallCount() int
func (*Serializer) EncodeAndOverwriteReturns ¶ added in v0.6.0
func (fake *Serializer) EncodeAndOverwriteReturns(result1 error)
func (*Serializer) EncodeAndOverwriteReturnsOnCall ¶ added in v0.20.0
func (fake *Serializer) EncodeAndOverwriteReturnsOnCall(i int, result1 error)
func (*Serializer) Invocations ¶ added in v0.6.0
func (fake *Serializer) Invocations() map[string][][]interface{}
Click to show internal directories.
Click to hide internal directories.