mocks

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DCASConfig added in v0.1.5

type DCASConfig struct {
	GetDCASMaxLinksPerBlockStub func() int

	IsDCASRawLeavesStub func() bool

	GetDCASMaxBlockSizeStub func() int64

	GetDCASBlockLayoutStub func() string
	// contains filtered or unexported fields
}

func (*DCASConfig) GetDCASBlockLayout added in v0.1.5

func (fake *DCASConfig) GetDCASBlockLayout() string

func (*DCASConfig) GetDCASBlockLayoutCallCount added in v0.1.5

func (fake *DCASConfig) GetDCASBlockLayoutCallCount() int

func (*DCASConfig) GetDCASBlockLayoutReturns added in v0.1.5

func (fake *DCASConfig) GetDCASBlockLayoutReturns(result1 string)

func (*DCASConfig) GetDCASBlockLayoutReturnsOnCall added in v0.1.5

func (fake *DCASConfig) GetDCASBlockLayoutReturnsOnCall(i int, result1 string)

func (*DCASConfig) GetDCASMaxBlockSize added in v0.1.5

func (fake *DCASConfig) GetDCASMaxBlockSize() int64

func (*DCASConfig) GetDCASMaxBlockSizeCallCount added in v0.1.5

func (fake *DCASConfig) GetDCASMaxBlockSizeCallCount() int

func (*DCASConfig) GetDCASMaxBlockSizeReturns added in v0.1.5

func (fake *DCASConfig) GetDCASMaxBlockSizeReturns(result1 int64)

func (*DCASConfig) GetDCASMaxBlockSizeReturnsOnCall added in v0.1.5

func (fake *DCASConfig) GetDCASMaxBlockSizeReturnsOnCall(i int, result1 int64)

func (*DCASConfig) GetDCASMaxLinksPerBlock added in v0.1.5

func (fake *DCASConfig) GetDCASMaxLinksPerBlock() int

func (*DCASConfig) GetDCASMaxLinksPerBlockCallCount added in v0.1.5

func (fake *DCASConfig) GetDCASMaxLinksPerBlockCallCount() int

func (*DCASConfig) GetDCASMaxLinksPerBlockReturns added in v0.1.5

func (fake *DCASConfig) GetDCASMaxLinksPerBlockReturns(result1 int)

func (*DCASConfig) GetDCASMaxLinksPerBlockReturnsOnCall added in v0.1.5

func (fake *DCASConfig) GetDCASMaxLinksPerBlockReturnsOnCall(i int, result1 int)

func (*DCASConfig) Invocations added in v0.1.5

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

func (*DCASConfig) IsDCASRawLeaves added in v0.1.5

func (fake *DCASConfig) IsDCASRawLeaves() bool

func (*DCASConfig) IsDCASRawLeavesCallCount added in v0.1.5

func (fake *DCASConfig) IsDCASRawLeavesCallCount() int

func (*DCASConfig) IsDCASRawLeavesReturns added in v0.1.5

func (fake *DCASConfig) IsDCASRawLeavesReturns(result1 bool)

func (*DCASConfig) IsDCASRawLeavesReturnsOnCall added in v0.1.5

func (fake *DCASConfig) IsDCASRawLeavesReturnsOnCall(i int, result1 bool)

type OffLedgerClient added in v0.1.5

type OffLedgerClient struct {
	PutStub func(ns, coll, key string, value []byte) error

	PutMultipleValuesStub func(ns, coll string, kvs []*client.KeyValue) error

	DeleteStub func(ns, coll string, keys ...string) error

	GetStub func(ns, coll, key string) ([]byte, error)

	GetMultipleKeysStub func(ns, coll string, keys ...string) ([][]byte, error)

	QueryStub func(ns, coll, query string) (commonledger.ResultsIterator, error)
	// contains filtered or unexported fields
}

func (*OffLedgerClient) Delete added in v0.1.5

func (fake *OffLedgerClient) Delete(ns string, coll string, keys ...string) error

func (*OffLedgerClient) DeleteArgsForCall added in v0.1.5

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

func (*OffLedgerClient) DeleteCallCount added in v0.1.5

func (fake *OffLedgerClient) DeleteCallCount() int

func (*OffLedgerClient) DeleteReturns added in v0.1.5

func (fake *OffLedgerClient) DeleteReturns(result1 error)

func (*OffLedgerClient) DeleteReturnsOnCall added in v0.1.5

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

func (*OffLedgerClient) Get added in v0.1.5

func (fake *OffLedgerClient) Get(ns string, coll string, key string) ([]byte, error)

func (*OffLedgerClient) GetArgsForCall added in v0.1.5

func (fake *OffLedgerClient) GetArgsForCall(i int) (string, string, string)

func (*OffLedgerClient) GetCallCount added in v0.1.5

func (fake *OffLedgerClient) GetCallCount() int

func (*OffLedgerClient) GetMultipleKeys added in v0.1.5

func (fake *OffLedgerClient) GetMultipleKeys(ns string, coll string, keys ...string) ([][]byte, error)

func (*OffLedgerClient) GetMultipleKeysArgsForCall added in v0.1.5

func (fake *OffLedgerClient) GetMultipleKeysArgsForCall(i int) (string, string, []string)

func (*OffLedgerClient) GetMultipleKeysCallCount added in v0.1.5

func (fake *OffLedgerClient) GetMultipleKeysCallCount() int

func (*OffLedgerClient) GetMultipleKeysReturns added in v0.1.5

func (fake *OffLedgerClient) GetMultipleKeysReturns(result1 [][]byte, result2 error)

func (*OffLedgerClient) GetMultipleKeysReturnsOnCall added in v0.1.5

func (fake *OffLedgerClient) GetMultipleKeysReturnsOnCall(i int, result1 [][]byte, result2 error)

func (*OffLedgerClient) GetReturns added in v0.1.5

func (fake *OffLedgerClient) GetReturns(result1 []byte, result2 error)

func (*OffLedgerClient) GetReturnsOnCall added in v0.1.5

func (fake *OffLedgerClient) GetReturnsOnCall(i int, result1 []byte, result2 error)

func (*OffLedgerClient) Invocations added in v0.1.5

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

func (*OffLedgerClient) Put added in v0.1.5

func (fake *OffLedgerClient) Put(ns string, coll string, key string, value []byte) error

func (*OffLedgerClient) PutArgsForCall added in v0.1.5

func (fake *OffLedgerClient) PutArgsForCall(i int) (string, string, string, []byte)

func (*OffLedgerClient) PutCallCount added in v0.1.5

func (fake *OffLedgerClient) PutCallCount() int

func (*OffLedgerClient) PutMultipleValues added in v0.1.5

func (fake *OffLedgerClient) PutMultipleValues(ns string, coll string, kvs []*client.KeyValue) error

func (*OffLedgerClient) PutMultipleValuesArgsForCall added in v0.1.5

func (fake *OffLedgerClient) PutMultipleValuesArgsForCall(i int) (string, string, []*client.KeyValue)

func (*OffLedgerClient) PutMultipleValuesCallCount added in v0.1.5

func (fake *OffLedgerClient) PutMultipleValuesCallCount() int

func (*OffLedgerClient) PutMultipleValuesReturns added in v0.1.5

func (fake *OffLedgerClient) PutMultipleValuesReturns(result1 error)

func (*OffLedgerClient) PutMultipleValuesReturnsOnCall added in v0.1.5

func (fake *OffLedgerClient) PutMultipleValuesReturnsOnCall(i int, result1 error)

func (*OffLedgerClient) PutReturns added in v0.1.5

func (fake *OffLedgerClient) PutReturns(result1 error)

func (*OffLedgerClient) PutReturnsOnCall added in v0.1.5

func (fake *OffLedgerClient) PutReturnsOnCall(i int, result1 error)

func (*OffLedgerClient) Query added in v0.1.5

func (fake *OffLedgerClient) Query(ns string, coll string, query string) (commonledger.ResultsIterator, error)

func (*OffLedgerClient) QueryArgsForCall added in v0.1.5

func (fake *OffLedgerClient) QueryArgsForCall(i int) (string, string, string)

func (*OffLedgerClient) QueryCallCount added in v0.1.5

func (fake *OffLedgerClient) QueryCallCount() int

func (*OffLedgerClient) QueryReturns added in v0.1.5

func (fake *OffLedgerClient) QueryReturns(result1 commonledger.ResultsIterator, result2 error)

func (*OffLedgerClient) QueryReturnsOnCall added in v0.1.5

func (fake *OffLedgerClient) QueryReturnsOnCall(i int, result1 commonledger.ResultsIterator, result2 error)

type Provider

type Provider struct {
}

Provider is a mock off-ledger data data provider

func (*Provider) RetrieverForChannel

func (p *Provider) RetrieverForChannel(channel string) olapi.Retriever

RetrieverForChannel returns the retriever for the given channel

Jump to

Keyboard shortcuts

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