fakes

package
v2.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 30, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

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.

This file was generated by counterfeiter

Index

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 []api_v0.Policy) [][]api_v0.Policy
	// contains filtered or unexported fields
}

func (*Chunker) Chunk added in v0.17.0

func (fake *Chunker) Chunk(allPolicies []api_v0.Policy) [][]api_v0.Policy

func (*Chunker) ChunkArgsForCall added in v0.17.0

func (fake *Chunker) ChunkArgsForCall(i int) []api_v0.Policy

func (*Chunker) ChunkCallCount added in v0.17.0

func (fake *Chunker) ChunkCallCount() int

func (*Chunker) ChunkReturns added in v0.17.0

func (fake *Chunker) ChunkReturns(result1 [][]api_v0.Policy)

func (*Chunker) ChunkReturnsOnCall added in v0.20.0

func (fake *Chunker) ChunkReturnsOnCall(i int, result1 [][]api_v0.Policy)

func (*Chunker) Invocations added in v0.17.0

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

type ExternalPolicyClient added in v0.3.0

type ExternalPolicyClient struct {
	GetPoliciesStub func(token string) ([]api.Policy, error)

	GetPoliciesByIDStub func(token string, ids ...string) ([]api.Policy, error)

	GetPoliciesV0Stub func(token string) ([]api_v0.Policy, error)

	GetPoliciesV0ByIDStub func(token string, ids ...string) ([]api_v0.Policy, error)

	DeletePoliciesStub func(token string, policies []api.Policy) error

	DeletePoliciesV0Stub func(token string, policies []api_v0.Policy) error

	AddPoliciesStub func(token string, policies []api.Policy) error

	AddPoliciesV0Stub func(token string, policies []api_v0.Policy) error
	// contains filtered or unexported fields
}

func (*ExternalPolicyClient) AddPolicies added in v0.3.0

func (fake *ExternalPolicyClient) AddPolicies(token string, policies []api.Policy) error

func (*ExternalPolicyClient) AddPoliciesArgsForCall added in v0.3.0

func (fake *ExternalPolicyClient) AddPoliciesArgsForCall(i int) (string, []api.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) AddPoliciesV0 added in v1.4.0

func (fake *ExternalPolicyClient) AddPoliciesV0(token string, policies []api_v0.Policy) error

func (*ExternalPolicyClient) AddPoliciesV0ArgsForCall added in v1.4.0

func (fake *ExternalPolicyClient) AddPoliciesV0ArgsForCall(i int) (string, []api_v0.Policy)

func (*ExternalPolicyClient) AddPoliciesV0CallCount added in v1.4.0

func (fake *ExternalPolicyClient) AddPoliciesV0CallCount() int

func (*ExternalPolicyClient) AddPoliciesV0Returns added in v1.4.0

func (fake *ExternalPolicyClient) AddPoliciesV0Returns(result1 error)

func (*ExternalPolicyClient) AddPoliciesV0ReturnsOnCall added in v1.4.0

func (fake *ExternalPolicyClient) AddPoliciesV0ReturnsOnCall(i int, result1 error)

func (*ExternalPolicyClient) DeletePolicies added in v0.3.0

func (fake *ExternalPolicyClient) DeletePolicies(token string, policies []api.Policy) error

func (*ExternalPolicyClient) DeletePoliciesArgsForCall added in v0.3.0

func (fake *ExternalPolicyClient) DeletePoliciesArgsForCall(i int) (string, []api.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) DeletePoliciesV0 added in v1.4.0

func (fake *ExternalPolicyClient) DeletePoliciesV0(token string, policies []api_v0.Policy) error

func (*ExternalPolicyClient) DeletePoliciesV0ArgsForCall added in v1.4.0

func (fake *ExternalPolicyClient) DeletePoliciesV0ArgsForCall(i int) (string, []api_v0.Policy)

func (*ExternalPolicyClient) DeletePoliciesV0CallCount added in v1.4.0

func (fake *ExternalPolicyClient) DeletePoliciesV0CallCount() int

func (*ExternalPolicyClient) DeletePoliciesV0Returns added in v1.4.0

func (fake *ExternalPolicyClient) DeletePoliciesV0Returns(result1 error)

func (*ExternalPolicyClient) DeletePoliciesV0ReturnsOnCall added in v1.4.0

func (fake *ExternalPolicyClient) DeletePoliciesV0ReturnsOnCall(i int, result1 error)

func (*ExternalPolicyClient) GetPolicies added in v0.3.0

func (fake *ExternalPolicyClient) GetPolicies(token string) ([]api.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 (fake *ExternalPolicyClient) GetPoliciesByID(token string, ids ...string) ([]api.Policy, error)

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 []api.Policy, result2 error)

func (*ExternalPolicyClient) GetPoliciesByIDReturnsOnCall added in v0.20.0

func (fake *ExternalPolicyClient) GetPoliciesByIDReturnsOnCall(i int, result1 []api.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 []api.Policy, result2 error)

func (*ExternalPolicyClient) GetPoliciesReturnsOnCall added in v0.20.0

func (fake *ExternalPolicyClient) GetPoliciesReturnsOnCall(i int, result1 []api.Policy, result2 error)

func (*ExternalPolicyClient) GetPoliciesV0 added in v1.4.0

func (fake *ExternalPolicyClient) GetPoliciesV0(token string) ([]api_v0.Policy, error)

func (*ExternalPolicyClient) GetPoliciesV0ArgsForCall added in v1.4.0

func (fake *ExternalPolicyClient) GetPoliciesV0ArgsForCall(i int) string

func (*ExternalPolicyClient) GetPoliciesV0ByID added in v1.4.0

func (fake *ExternalPolicyClient) GetPoliciesV0ByID(token string, ids ...string) ([]api_v0.Policy, error)

func (*ExternalPolicyClient) GetPoliciesV0ByIDArgsForCall added in v1.4.0

func (fake *ExternalPolicyClient) GetPoliciesV0ByIDArgsForCall(i int) (string, []string)

func (*ExternalPolicyClient) GetPoliciesV0ByIDCallCount added in v1.4.0

func (fake *ExternalPolicyClient) GetPoliciesV0ByIDCallCount() int

func (*ExternalPolicyClient) GetPoliciesV0ByIDReturns added in v1.4.0

func (fake *ExternalPolicyClient) GetPoliciesV0ByIDReturns(result1 []api_v0.Policy, result2 error)

func (*ExternalPolicyClient) GetPoliciesV0ByIDReturnsOnCall added in v1.4.0

func (fake *ExternalPolicyClient) GetPoliciesV0ByIDReturnsOnCall(i int, result1 []api_v0.Policy, result2 error)

func (*ExternalPolicyClient) GetPoliciesV0CallCount added in v1.4.0

func (fake *ExternalPolicyClient) GetPoliciesV0CallCount() int

func (*ExternalPolicyClient) GetPoliciesV0Returns added in v1.4.0

func (fake *ExternalPolicyClient) GetPoliciesV0Returns(result1 []api_v0.Policy, result2 error)

func (*ExternalPolicyClient) GetPoliciesV0ReturnsOnCall added in v1.4.0

func (fake *ExternalPolicyClient) GetPoliciesV0ReturnsOnCall(i int, result1 []api_v0.Policy, result2 error)

func (*ExternalPolicyClient) Invocations added in v0.3.0

func (fake *ExternalPolicyClient) 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 (fake *IPTables) AppendUnique(table string, chain string, rulespec ...string) error

func (*IPTables) AppendUniqueArgsForCall

func (fake *IPTables) AppendUniqueArgsForCall(i int) (string, string, []string)

func (*IPTables) AppendUniqueCallCount

func (fake *IPTables) AppendUniqueCallCount() int

func (*IPTables) AppendUniqueReturns

func (fake *IPTables) AppendUniqueReturns(result1 error)

func (*IPTables) AppendUniqueReturnsOnCall added in v0.20.0

func (fake *IPTables) AppendUniqueReturnsOnCall(i int, result1 error)

func (*IPTables) ClearChain

func (fake *IPTables) ClearChain(table string, chain string) error

func (*IPTables) ClearChainArgsForCall

func (fake *IPTables) ClearChainArgsForCall(i int) (string, string)

func (*IPTables) ClearChainCallCount

func (fake *IPTables) ClearChainCallCount() int

func (*IPTables) ClearChainReturns

func (fake *IPTables) ClearChainReturns(result1 error)

func (*IPTables) ClearChainReturnsOnCall added in v0.20.0

func (fake *IPTables) ClearChainReturnsOnCall(i int, result1 error)

func (*IPTables) Delete

func (fake *IPTables) Delete(table string, chain string, rulespec ...string) error

func (*IPTables) DeleteArgsForCall

func (fake *IPTables) DeleteArgsForCall(i int) (string, string, []string)

func (*IPTables) DeleteCallCount

func (fake *IPTables) DeleteCallCount() int

func (*IPTables) DeleteChain

func (fake *IPTables) DeleteChain(table string, chain string) error

func (*IPTables) DeleteChainArgsForCall

func (fake *IPTables) DeleteChainArgsForCall(i int) (string, string)

func (*IPTables) DeleteChainCallCount

func (fake *IPTables) DeleteChainCallCount() int

func (*IPTables) DeleteChainReturns

func (fake *IPTables) DeleteChainReturns(result1 error)

func (*IPTables) DeleteChainReturnsOnCall added in v0.20.0

func (fake *IPTables) DeleteChainReturnsOnCall(i int, result1 error)

func (*IPTables) DeleteReturns

func (fake *IPTables) DeleteReturns(result1 error)

func (*IPTables) DeleteReturnsOnCall added in v0.20.0

func (fake *IPTables) DeleteReturnsOnCall(i int, result1 error)

func (*IPTables) Exists

func (fake *IPTables) Exists(table string, chain string, rulespec ...string) (bool, error)

func (*IPTables) ExistsArgsForCall

func (fake *IPTables) ExistsArgsForCall(i int) (string, string, []string)

func (*IPTables) ExistsCallCount

func (fake *IPTables) ExistsCallCount() int

func (*IPTables) ExistsReturns

func (fake *IPTables) ExistsReturns(result1 bool, result2 error)

func (*IPTables) ExistsReturnsOnCall added in v0.20.0

func (fake *IPTables) ExistsReturnsOnCall(i int, result1 bool, result2 error)

func (*IPTables) Insert

func (fake *IPTables) Insert(table string, chain string, pos int, rulespec ...string) error

func (*IPTables) InsertArgsForCall

func (fake *IPTables) InsertArgsForCall(i int) (string, string, int, []string)

func (*IPTables) InsertCallCount

func (fake *IPTables) InsertCallCount() int

func (*IPTables) InsertReturns

func (fake *IPTables) InsertReturns(result1 error)

func (*IPTables) InsertReturnsOnCall added in v0.20.0

func (fake *IPTables) InsertReturnsOnCall(i int, result1 error)

func (*IPTables) Invocations

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

func (*IPTables) List

func (fake *IPTables) List(table string, chain string) ([]string, error)

func (*IPTables) ListArgsForCall

func (fake *IPTables) ListArgsForCall(i int) (string, string)

func (*IPTables) ListCallCount

func (fake *IPTables) ListCallCount() int

func (*IPTables) ListReturns

func (fake *IPTables) ListReturns(result1 []string, result2 error)

func (*IPTables) ListReturnsOnCall added in v0.20.0

func (fake *IPTables) ListReturnsOnCall(i int, result1 []string, result2 error)

func (*IPTables) NewChain

func (fake *IPTables) NewChain(table string, chain string) error

func (*IPTables) NewChainArgsForCall

func (fake *IPTables) NewChainArgsForCall(i int) (string, string)

func (*IPTables) NewChainCallCount

func (fake *IPTables) NewChainCallCount() int

func (*IPTables) NewChainReturns

func (fake *IPTables) NewChainReturns(result1 error)

func (*IPTables) NewChainReturnsOnCall added in v0.20.0

func (fake *IPTables) NewChainReturnsOnCall(i int, result1 error)

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 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 (fake *Locker) Invocations() map[string][][]interface{}

func (*Locker) Lock added in v0.7.0

func (fake *Locker) Lock() error

func (*Locker) LockCallCount added in v0.7.0

func (fake *Locker) LockCallCount() int

func (*Locker) LockReturns added in v0.7.0

func (fake *Locker) LockReturns(result1 error)

func (*Locker) LockReturnsOnCall added in v0.20.0

func (fake *Locker) LockReturnsOnCall(i int, result1 error)

func (*Locker) Unlock added in v0.7.0

func (fake *Locker) Unlock() error

func (*Locker) UnlockCallCount added in v0.7.0

func (fake *Locker) UnlockCallCount() int

func (*Locker) UnlockReturns added in v0.7.0

func (fake *Locker) UnlockReturns(result1 error)

func (*Locker) UnlockReturnsOnCall added in v0.20.0

func (fake *Locker) UnlockReturnsOnCall(i int, result1 error)

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 (fake *Restorer) Invocations() map[string][][]interface{}

func (*Restorer) Restore added in v0.7.0

func (fake *Restorer) Restore(ruleState string) error

func (*Restorer) RestoreArgsForCall added in v0.7.0

func (fake *Restorer) RestoreArgsForCall(i int) string

func (*Restorer) RestoreCallCount added in v0.7.0

func (fake *Restorer) RestoreCallCount() int

func (*Restorer) RestoreReturns added in v0.7.0

func (fake *Restorer) RestoreReturns(result1 error)

func (*Restorer) RestoreReturnsOnCall added in v0.20.0

func (fake *Restorer) RestoreReturnsOnCall(i int, result1 error)

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{}

type Sleeper

type Sleeper struct {
	SleepStub func(time.Duration)
	// contains filtered or unexported fields
}

func (*Sleeper) Invocations

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

func (*Sleeper) Sleep

func (fake *Sleeper) Sleep(arg1 time.Duration)

func (*Sleeper) SleepArgsForCall

func (fake *Sleeper) SleepArgsForCall(i int) time.Duration

func (*Sleeper) SleepCallCount

func (fake *Sleeper) SleepCallCount() int

Jump to

Keyboard shortcuts

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