fabric: github.com/hyperledger/fabric/peer/node/mock Index | Files

package mock

import "github.com/hyperledger/fabric/peer/node/mock"

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Package Files

get_ledger.go peer_ledger.go

type GetLedger Uses

type GetLedger struct {
    Stub func(string) ledger.PeerLedger
    // contains filtered or unexported fields
}

func (*GetLedger) ArgsForCall Uses

func (fake *GetLedger) ArgsForCall(i int) string

func (*GetLedger) CallCount Uses

func (fake *GetLedger) CallCount() int

func (*GetLedger) Calls Uses

func (fake *GetLedger) Calls(stub func(string) ledger.PeerLedger)

func (*GetLedger) Invocations Uses

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

func (*GetLedger) Returns Uses

func (fake *GetLedger) Returns(result1 ledger.PeerLedger)

func (*GetLedger) ReturnsOnCall Uses

func (fake *GetLedger) ReturnsOnCall(i int, result1 ledger.PeerLedger)

func (*GetLedger) Spy Uses

func (fake *GetLedger) Spy(arg1 string) ledger.PeerLedger

type PeerLedger Uses

type PeerLedger struct {
    CloseStub func()

    CommitPvtDataOfOldBlocksStub func([]*ledger.BlockPvtData) ([]*ledger.PvtdataHashMismatch, error)

    CommitWithPvtDataStub func(*ledger.BlockAndPvtData, *ledger.CommitOptions) error

    DoesPvtDataInfoExistStub func(uint64) (bool, error)

    GetBlockByHashStub func([]byte) (*common.Block, error)

    GetBlockByNumberStub func(uint64) (*common.Block, error)

    GetBlockByTxIDStub func(string) (*common.Block, error)

    GetBlockchainInfoStub func() (*common.BlockchainInfo, error)

    GetBlocksIteratorStub func(uint64) (ledgera.ResultsIterator, error)

    GetConfigHistoryRetrieverStub func() (ledger.ConfigHistoryRetriever, error)

    GetMissingPvtDataTrackerStub func() (ledger.MissingPvtDataTracker, error)

    GetPvtDataAndBlockByNumStub func(uint64, ledger.PvtNsCollFilter) (*ledger.BlockAndPvtData, error)

    GetPvtDataByNumStub func(uint64, ledger.PvtNsCollFilter) ([]*ledger.TxPvtData, error)

    GetTransactionByIDStub func(string) (*peer.ProcessedTransaction, error)

    GetTxValidationCodeByTxIDStub func(string) (peer.TxValidationCode, error)

    NewHistoryQueryExecutorStub func() (ledger.HistoryQueryExecutor, error)

    NewQueryExecutorStub func() (ledger.QueryExecutor, error)

    NewTxSimulatorStub func(string) (ledger.TxSimulator, error)

    PrivateDataMinBlockNumStub func() (uint64, error)

    PruneStub func(ledgera.PrunePolicy) error

    PurgePrivateDataStub func(uint64) error
    // contains filtered or unexported fields
}

func (*PeerLedger) Close Uses

func (fake *PeerLedger) Close()

func (*PeerLedger) CloseCallCount Uses

func (fake *PeerLedger) CloseCallCount() int

func (*PeerLedger) CloseCalls Uses

func (fake *PeerLedger) CloseCalls(stub func())

func (*PeerLedger) CommitPvtDataOfOldBlocks Uses

func (fake *PeerLedger) CommitPvtDataOfOldBlocks(arg1 []*ledger.BlockPvtData) ([]*ledger.PvtdataHashMismatch, error)

func (*PeerLedger) CommitPvtDataOfOldBlocksArgsForCall Uses

func (fake *PeerLedger) CommitPvtDataOfOldBlocksArgsForCall(i int) []*ledger.BlockPvtData

func (*PeerLedger) CommitPvtDataOfOldBlocksCallCount Uses

func (fake *PeerLedger) CommitPvtDataOfOldBlocksCallCount() int

func (*PeerLedger) CommitPvtDataOfOldBlocksCalls Uses

func (fake *PeerLedger) CommitPvtDataOfOldBlocksCalls(stub func([]*ledger.BlockPvtData) ([]*ledger.PvtdataHashMismatch, error))

func (*PeerLedger) CommitPvtDataOfOldBlocksReturns Uses

func (fake *PeerLedger) CommitPvtDataOfOldBlocksReturns(result1 []*ledger.PvtdataHashMismatch, result2 error)

func (*PeerLedger) CommitPvtDataOfOldBlocksReturnsOnCall Uses

func (fake *PeerLedger) CommitPvtDataOfOldBlocksReturnsOnCall(i int, result1 []*ledger.PvtdataHashMismatch, result2 error)

func (*PeerLedger) CommitWithPvtData Uses

func (fake *PeerLedger) CommitWithPvtData(arg1 *ledger.BlockAndPvtData, arg2 *ledger.CommitOptions) error

func (*PeerLedger) CommitWithPvtDataArgsForCall Uses

func (fake *PeerLedger) CommitWithPvtDataArgsForCall(i int) (*ledger.BlockAndPvtData, *ledger.CommitOptions)

func (*PeerLedger) CommitWithPvtDataCallCount Uses

func (fake *PeerLedger) CommitWithPvtDataCallCount() int

func (*PeerLedger) CommitWithPvtDataCalls Uses

func (fake *PeerLedger) CommitWithPvtDataCalls(stub func(*ledger.BlockAndPvtData, *ledger.CommitOptions) error)

func (*PeerLedger) CommitWithPvtDataReturns Uses

func (fake *PeerLedger) CommitWithPvtDataReturns(result1 error)

func (*PeerLedger) CommitWithPvtDataReturnsOnCall Uses

func (fake *PeerLedger) CommitWithPvtDataReturnsOnCall(i int, result1 error)

func (*PeerLedger) DoesPvtDataInfoExist Uses

func (fake *PeerLedger) DoesPvtDataInfoExist(arg1 uint64) (bool, error)

func (*PeerLedger) DoesPvtDataInfoExistArgsForCall Uses

func (fake *PeerLedger) DoesPvtDataInfoExistArgsForCall(i int) uint64

func (*PeerLedger) DoesPvtDataInfoExistCallCount Uses

func (fake *PeerLedger) DoesPvtDataInfoExistCallCount() int

func (*PeerLedger) DoesPvtDataInfoExistCalls Uses

func (fake *PeerLedger) DoesPvtDataInfoExistCalls(stub func(uint64) (bool, error))

func (*PeerLedger) DoesPvtDataInfoExistReturns Uses

func (fake *PeerLedger) DoesPvtDataInfoExistReturns(result1 bool, result2 error)

func (*PeerLedger) DoesPvtDataInfoExistReturnsOnCall Uses

func (fake *PeerLedger) DoesPvtDataInfoExistReturnsOnCall(i int, result1 bool, result2 error)

func (*PeerLedger) GetBlockByHash Uses

func (fake *PeerLedger) GetBlockByHash(arg1 []byte) (*common.Block, error)

func (*PeerLedger) GetBlockByHashArgsForCall Uses

func (fake *PeerLedger) GetBlockByHashArgsForCall(i int) []byte

func (*PeerLedger) GetBlockByHashCallCount Uses

func (fake *PeerLedger) GetBlockByHashCallCount() int

func (*PeerLedger) GetBlockByHashCalls Uses

func (fake *PeerLedger) GetBlockByHashCalls(stub func([]byte) (*common.Block, error))

func (*PeerLedger) GetBlockByHashReturns Uses

func (fake *PeerLedger) GetBlockByHashReturns(result1 *common.Block, result2 error)

func (*PeerLedger) GetBlockByHashReturnsOnCall Uses

func (fake *PeerLedger) GetBlockByHashReturnsOnCall(i int, result1 *common.Block, result2 error)

func (*PeerLedger) GetBlockByNumber Uses

func (fake *PeerLedger) GetBlockByNumber(arg1 uint64) (*common.Block, error)

func (*PeerLedger) GetBlockByNumberArgsForCall Uses

func (fake *PeerLedger) GetBlockByNumberArgsForCall(i int) uint64

func (*PeerLedger) GetBlockByNumberCallCount Uses

func (fake *PeerLedger) GetBlockByNumberCallCount() int

func (*PeerLedger) GetBlockByNumberCalls Uses

func (fake *PeerLedger) GetBlockByNumberCalls(stub func(uint64) (*common.Block, error))

func (*PeerLedger) GetBlockByNumberReturns Uses

func (fake *PeerLedger) GetBlockByNumberReturns(result1 *common.Block, result2 error)

func (*PeerLedger) GetBlockByNumberReturnsOnCall Uses

func (fake *PeerLedger) GetBlockByNumberReturnsOnCall(i int, result1 *common.Block, result2 error)

func (*PeerLedger) GetBlockByTxID Uses

func (fake *PeerLedger) GetBlockByTxID(arg1 string) (*common.Block, error)

func (*PeerLedger) GetBlockByTxIDArgsForCall Uses

func (fake *PeerLedger) GetBlockByTxIDArgsForCall(i int) string

func (*PeerLedger) GetBlockByTxIDCallCount Uses

func (fake *PeerLedger) GetBlockByTxIDCallCount() int

func (*PeerLedger) GetBlockByTxIDCalls Uses

func (fake *PeerLedger) GetBlockByTxIDCalls(stub func(string) (*common.Block, error))

func (*PeerLedger) GetBlockByTxIDReturns Uses

func (fake *PeerLedger) GetBlockByTxIDReturns(result1 *common.Block, result2 error)

func (*PeerLedger) GetBlockByTxIDReturnsOnCall Uses

func (fake *PeerLedger) GetBlockByTxIDReturnsOnCall(i int, result1 *common.Block, result2 error)

func (*PeerLedger) GetBlockchainInfo Uses

func (fake *PeerLedger) GetBlockchainInfo() (*common.BlockchainInfo, error)

func (*PeerLedger) GetBlockchainInfoCallCount Uses

func (fake *PeerLedger) GetBlockchainInfoCallCount() int

func (*PeerLedger) GetBlockchainInfoCalls Uses

func (fake *PeerLedger) GetBlockchainInfoCalls(stub func() (*common.BlockchainInfo, error))

func (*PeerLedger) GetBlockchainInfoReturns Uses

func (fake *PeerLedger) GetBlockchainInfoReturns(result1 *common.BlockchainInfo, result2 error)

func (*PeerLedger) GetBlockchainInfoReturnsOnCall Uses

func (fake *PeerLedger) GetBlockchainInfoReturnsOnCall(i int, result1 *common.BlockchainInfo, result2 error)

func (*PeerLedger) GetBlocksIterator Uses

func (fake *PeerLedger) GetBlocksIterator(arg1 uint64) (ledgera.ResultsIterator, error)

func (*PeerLedger) GetBlocksIteratorArgsForCall Uses

func (fake *PeerLedger) GetBlocksIteratorArgsForCall(i int) uint64

func (*PeerLedger) GetBlocksIteratorCallCount Uses

func (fake *PeerLedger) GetBlocksIteratorCallCount() int

func (*PeerLedger) GetBlocksIteratorCalls Uses

func (fake *PeerLedger) GetBlocksIteratorCalls(stub func(uint64) (ledgera.ResultsIterator, error))

func (*PeerLedger) GetBlocksIteratorReturns Uses

func (fake *PeerLedger) GetBlocksIteratorReturns(result1 ledgera.ResultsIterator, result2 error)

func (*PeerLedger) GetBlocksIteratorReturnsOnCall Uses

func (fake *PeerLedger) GetBlocksIteratorReturnsOnCall(i int, result1 ledgera.ResultsIterator, result2 error)

func (*PeerLedger) GetConfigHistoryRetriever Uses

func (fake *PeerLedger) GetConfigHistoryRetriever() (ledger.ConfigHistoryRetriever, error)

func (*PeerLedger) GetConfigHistoryRetrieverCallCount Uses

func (fake *PeerLedger) GetConfigHistoryRetrieverCallCount() int

func (*PeerLedger) GetConfigHistoryRetrieverCalls Uses

func (fake *PeerLedger) GetConfigHistoryRetrieverCalls(stub func() (ledger.ConfigHistoryRetriever, error))

func (*PeerLedger) GetConfigHistoryRetrieverReturns Uses

func (fake *PeerLedger) GetConfigHistoryRetrieverReturns(result1 ledger.ConfigHistoryRetriever, result2 error)

func (*PeerLedger) GetConfigHistoryRetrieverReturnsOnCall Uses

func (fake *PeerLedger) GetConfigHistoryRetrieverReturnsOnCall(i int, result1 ledger.ConfigHistoryRetriever, result2 error)

func (*PeerLedger) GetMissingPvtDataTracker Uses

func (fake *PeerLedger) GetMissingPvtDataTracker() (ledger.MissingPvtDataTracker, error)

func (*PeerLedger) GetMissingPvtDataTrackerCallCount Uses

func (fake *PeerLedger) GetMissingPvtDataTrackerCallCount() int

func (*PeerLedger) GetMissingPvtDataTrackerCalls Uses

func (fake *PeerLedger) GetMissingPvtDataTrackerCalls(stub func() (ledger.MissingPvtDataTracker, error))

func (*PeerLedger) GetMissingPvtDataTrackerReturns Uses

func (fake *PeerLedger) GetMissingPvtDataTrackerReturns(result1 ledger.MissingPvtDataTracker, result2 error)

func (*PeerLedger) GetMissingPvtDataTrackerReturnsOnCall Uses

func (fake *PeerLedger) GetMissingPvtDataTrackerReturnsOnCall(i int, result1 ledger.MissingPvtDataTracker, result2 error)

func (*PeerLedger) GetPvtDataAndBlockByNum Uses

func (fake *PeerLedger) GetPvtDataAndBlockByNum(arg1 uint64, arg2 ledger.PvtNsCollFilter) (*ledger.BlockAndPvtData, error)

func (*PeerLedger) GetPvtDataAndBlockByNumArgsForCall Uses

func (fake *PeerLedger) GetPvtDataAndBlockByNumArgsForCall(i int) (uint64, ledger.PvtNsCollFilter)

func (*PeerLedger) GetPvtDataAndBlockByNumCallCount Uses

func (fake *PeerLedger) GetPvtDataAndBlockByNumCallCount() int

func (*PeerLedger) GetPvtDataAndBlockByNumCalls Uses

func (fake *PeerLedger) GetPvtDataAndBlockByNumCalls(stub func(uint64, ledger.PvtNsCollFilter) (*ledger.BlockAndPvtData, error))

func (*PeerLedger) GetPvtDataAndBlockByNumReturns Uses

func (fake *PeerLedger) GetPvtDataAndBlockByNumReturns(result1 *ledger.BlockAndPvtData, result2 error)

func (*PeerLedger) GetPvtDataAndBlockByNumReturnsOnCall Uses

func (fake *PeerLedger) GetPvtDataAndBlockByNumReturnsOnCall(i int, result1 *ledger.BlockAndPvtData, result2 error)

func (*PeerLedger) GetPvtDataByNum Uses

func (fake *PeerLedger) GetPvtDataByNum(arg1 uint64, arg2 ledger.PvtNsCollFilter) ([]*ledger.TxPvtData, error)

func (*PeerLedger) GetPvtDataByNumArgsForCall Uses

func (fake *PeerLedger) GetPvtDataByNumArgsForCall(i int) (uint64, ledger.PvtNsCollFilter)

func (*PeerLedger) GetPvtDataByNumCallCount Uses

func (fake *PeerLedger) GetPvtDataByNumCallCount() int

func (*PeerLedger) GetPvtDataByNumCalls Uses

func (fake *PeerLedger) GetPvtDataByNumCalls(stub func(uint64, ledger.PvtNsCollFilter) ([]*ledger.TxPvtData, error))

func (*PeerLedger) GetPvtDataByNumReturns Uses

func (fake *PeerLedger) GetPvtDataByNumReturns(result1 []*ledger.TxPvtData, result2 error)

func (*PeerLedger) GetPvtDataByNumReturnsOnCall Uses

func (fake *PeerLedger) GetPvtDataByNumReturnsOnCall(i int, result1 []*ledger.TxPvtData, result2 error)

func (*PeerLedger) GetTransactionByID Uses

func (fake *PeerLedger) GetTransactionByID(arg1 string) (*peer.ProcessedTransaction, error)

func (*PeerLedger) GetTransactionByIDArgsForCall Uses

func (fake *PeerLedger) GetTransactionByIDArgsForCall(i int) string

func (*PeerLedger) GetTransactionByIDCallCount Uses

func (fake *PeerLedger) GetTransactionByIDCallCount() int

func (*PeerLedger) GetTransactionByIDCalls Uses

func (fake *PeerLedger) GetTransactionByIDCalls(stub func(string) (*peer.ProcessedTransaction, error))

func (*PeerLedger) GetTransactionByIDReturns Uses

func (fake *PeerLedger) GetTransactionByIDReturns(result1 *peer.ProcessedTransaction, result2 error)

func (*PeerLedger) GetTransactionByIDReturnsOnCall Uses

func (fake *PeerLedger) GetTransactionByIDReturnsOnCall(i int, result1 *peer.ProcessedTransaction, result2 error)

func (*PeerLedger) GetTxValidationCodeByTxID Uses

func (fake *PeerLedger) GetTxValidationCodeByTxID(arg1 string) (peer.TxValidationCode, error)

func (*PeerLedger) GetTxValidationCodeByTxIDArgsForCall Uses

func (fake *PeerLedger) GetTxValidationCodeByTxIDArgsForCall(i int) string

func (*PeerLedger) GetTxValidationCodeByTxIDCallCount Uses

func (fake *PeerLedger) GetTxValidationCodeByTxIDCallCount() int

func (*PeerLedger) GetTxValidationCodeByTxIDCalls Uses

func (fake *PeerLedger) GetTxValidationCodeByTxIDCalls(stub func(string) (peer.TxValidationCode, error))

func (*PeerLedger) GetTxValidationCodeByTxIDReturns Uses

func (fake *PeerLedger) GetTxValidationCodeByTxIDReturns(result1 peer.TxValidationCode, result2 error)

func (*PeerLedger) GetTxValidationCodeByTxIDReturnsOnCall Uses

func (fake *PeerLedger) GetTxValidationCodeByTxIDReturnsOnCall(i int, result1 peer.TxValidationCode, result2 error)

func (*PeerLedger) Invocations Uses

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

func (*PeerLedger) NewHistoryQueryExecutor Uses

func (fake *PeerLedger) NewHistoryQueryExecutor() (ledger.HistoryQueryExecutor, error)

func (*PeerLedger) NewHistoryQueryExecutorCallCount Uses

func (fake *PeerLedger) NewHistoryQueryExecutorCallCount() int

func (*PeerLedger) NewHistoryQueryExecutorCalls Uses

func (fake *PeerLedger) NewHistoryQueryExecutorCalls(stub func() (ledger.HistoryQueryExecutor, error))

func (*PeerLedger) NewHistoryQueryExecutorReturns Uses

func (fake *PeerLedger) NewHistoryQueryExecutorReturns(result1 ledger.HistoryQueryExecutor, result2 error)

func (*PeerLedger) NewHistoryQueryExecutorReturnsOnCall Uses

func (fake *PeerLedger) NewHistoryQueryExecutorReturnsOnCall(i int, result1 ledger.HistoryQueryExecutor, result2 error)

func (*PeerLedger) NewQueryExecutor Uses

func (fake *PeerLedger) NewQueryExecutor() (ledger.QueryExecutor, error)

func (*PeerLedger) NewQueryExecutorCallCount Uses

func (fake *PeerLedger) NewQueryExecutorCallCount() int

func (*PeerLedger) NewQueryExecutorCalls Uses

func (fake *PeerLedger) NewQueryExecutorCalls(stub func() (ledger.QueryExecutor, error))

func (*PeerLedger) NewQueryExecutorReturns Uses

func (fake *PeerLedger) NewQueryExecutorReturns(result1 ledger.QueryExecutor, result2 error)

func (*PeerLedger) NewQueryExecutorReturnsOnCall Uses

func (fake *PeerLedger) NewQueryExecutorReturnsOnCall(i int, result1 ledger.QueryExecutor, result2 error)

func (*PeerLedger) NewTxSimulator Uses

func (fake *PeerLedger) NewTxSimulator(arg1 string) (ledger.TxSimulator, error)

func (*PeerLedger) NewTxSimulatorArgsForCall Uses

func (fake *PeerLedger) NewTxSimulatorArgsForCall(i int) string

func (*PeerLedger) NewTxSimulatorCallCount Uses

func (fake *PeerLedger) NewTxSimulatorCallCount() int

func (*PeerLedger) NewTxSimulatorCalls Uses

func (fake *PeerLedger) NewTxSimulatorCalls(stub func(string) (ledger.TxSimulator, error))

func (*PeerLedger) NewTxSimulatorReturns Uses

func (fake *PeerLedger) NewTxSimulatorReturns(result1 ledger.TxSimulator, result2 error)

func (*PeerLedger) NewTxSimulatorReturnsOnCall Uses

func (fake *PeerLedger) NewTxSimulatorReturnsOnCall(i int, result1 ledger.TxSimulator, result2 error)

func (*PeerLedger) PrivateDataMinBlockNum Uses

func (fake *PeerLedger) PrivateDataMinBlockNum() (uint64, error)

func (*PeerLedger) PrivateDataMinBlockNumCallCount Uses

func (fake *PeerLedger) PrivateDataMinBlockNumCallCount() int

func (*PeerLedger) PrivateDataMinBlockNumCalls Uses

func (fake *PeerLedger) PrivateDataMinBlockNumCalls(stub func() (uint64, error))

func (*PeerLedger) PrivateDataMinBlockNumReturns Uses

func (fake *PeerLedger) PrivateDataMinBlockNumReturns(result1 uint64, result2 error)

func (*PeerLedger) PrivateDataMinBlockNumReturnsOnCall Uses

func (fake *PeerLedger) PrivateDataMinBlockNumReturnsOnCall(i int, result1 uint64, result2 error)

func (*PeerLedger) Prune Uses

func (fake *PeerLedger) Prune(arg1 ledgera.PrunePolicy) error

func (*PeerLedger) PruneArgsForCall Uses

func (fake *PeerLedger) PruneArgsForCall(i int) ledgera.PrunePolicy

func (*PeerLedger) PruneCallCount Uses

func (fake *PeerLedger) PruneCallCount() int

func (*PeerLedger) PruneCalls Uses

func (fake *PeerLedger) PruneCalls(stub func(ledgera.PrunePolicy) error)

func (*PeerLedger) PruneReturns Uses

func (fake *PeerLedger) PruneReturns(result1 error)

func (*PeerLedger) PruneReturnsOnCall Uses

func (fake *PeerLedger) PruneReturnsOnCall(i int, result1 error)

func (*PeerLedger) PurgePrivateData Uses

func (fake *PeerLedger) PurgePrivateData(arg1 uint64) error

func (*PeerLedger) PurgePrivateDataArgsForCall Uses

func (fake *PeerLedger) PurgePrivateDataArgsForCall(i int) uint64

func (*PeerLedger) PurgePrivateDataCallCount Uses

func (fake *PeerLedger) PurgePrivateDataCallCount() int

func (*PeerLedger) PurgePrivateDataCalls Uses

func (fake *PeerLedger) PurgePrivateDataCalls(stub func(uint64) error)

func (*PeerLedger) PurgePrivateDataReturns Uses

func (fake *PeerLedger) PurgePrivateDataReturns(result1 error)

func (*PeerLedger) PurgePrivateDataReturnsOnCall Uses

func (fake *PeerLedger) PurgePrivateDataReturnsOnCall(i int, result1 error)

Package mock imports 5 packages (graph). Updated 2019-08-18. Refresh now. Tools for package owners.