Documentation ¶
Overview ¶
Code generated by mockery v1.0.0. DO NOT EDIT.
Code generated by mockery v1.0.0 ¶
Code generated by mockery v1.0.0 ¶
Code generated by mockery v1.0.0. DO NOT EDIT.
Code generated by mockery v1.0.0. DO NOT EDIT.
Code generated by mockery v1.0.0 ¶
Code generated by mockery v1.0.0. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by mockery v1.0.0. DO NOT EDIT.
Index ¶
- type ChannelStateRetriever
- type Plugin
- type PluginFactory
- type PluginMapper
- type QueryCreator
- type SigningIdentityFetcher
- type Store
- func (_m *Store) GetMinTransientBlkHt() (uint64, error)
- func (_m *Store) GetTxPvtRWSetByTxid(txid string, filter ledger.PvtNsCollFilter) (transientstore.RWSetScanner, error)
- func (_m *Store) Persist(txid string, blockHeight uint64, ...) error
- func (_m *Store) PersistWithConfig(txid string, blockHeight uint64, ...) error
- func (_m *Store) PurgeByHeight(maxBlockNumToRetain uint64) error
- func (_m *Store) PurgeByTxids(txids []string) error
- func (_m *Store) Shutdown()
- type Support
- func (fake *Support) CheckACL(signedProp *pb.SignedProposal, chdr *common.ChannelHeader, ...) error
- func (fake *Support) CheckACLArgsForCall(i int) (*pb.SignedProposal, *common.ChannelHeader, *common.SignatureHeader, ...)
- func (fake *Support) CheckACLCallCount() int
- func (fake *Support) CheckACLReturns(result1 error)
- func (fake *Support) CheckACLReturnsOnCall(i int, result1 error)
- func (fake *Support) CheckInstantiationPolicy(name string, version string, cd ccprovider.ChaincodeDefinition) error
- func (fake *Support) CheckInstantiationPolicyArgsForCall(i int) (string, string, ccprovider.ChaincodeDefinition)
- func (fake *Support) CheckInstantiationPolicyCallCount() int
- func (fake *Support) CheckInstantiationPolicyReturns(result1 error)
- func (fake *Support) CheckInstantiationPolicyReturnsOnCall(i int, result1 error)
- func (fake *Support) EndorseWithPlugin(ctx endorser_test.Context) (*pb.ProposalResponse, error)
- func (fake *Support) EndorseWithPluginArgsForCall(i int) endorser_test.Context
- func (fake *Support) EndorseWithPluginCallCount() int
- func (fake *Support) EndorseWithPluginReturns(result1 *pb.ProposalResponse, result2 error)
- func (fake *Support) EndorseWithPluginReturnsOnCall(i int, result1 *pb.ProposalResponse, result2 error)
- func (fake *Support) Execute(ctxt context.Context, cid string, name string, version string, txid string, ...) (*pb.Response, *pb.ChaincodeEvent, error)
- func (fake *Support) ExecuteArgsForCall(i int) (context.Context, string, string, string, string, bool, *pb.SignedProposal, ...)
- func (fake *Support) ExecuteCallCount() int
- func (fake *Support) ExecuteReturns(result1 *pb.Response, result2 *pb.ChaincodeEvent, result3 error)
- func (fake *Support) ExecuteReturnsOnCall(i int, result1 *pb.Response, result2 *pb.ChaincodeEvent, result3 error)
- func (fake *Support) GetApplicationConfig(cid string) (channelconfig.Application, bool)
- func (fake *Support) GetApplicationConfigArgsForCall(i int) string
- func (fake *Support) GetApplicationConfigCallCount() int
- func (fake *Support) GetApplicationConfigReturns(result1 channelconfig.Application, result2 bool)
- func (fake *Support) GetApplicationConfigReturnsOnCall(i int, result1 channelconfig.Application, result2 bool)
- func (fake *Support) GetChaincodeDefinition(ctx context.Context, chainID string, txid string, ...) (ccprovider.ChaincodeDefinition, error)
- func (fake *Support) GetChaincodeDefinitionArgsForCall(i int) (context.Context, string, string, *pb.SignedProposal, *pb.Proposal, string, ...)
- func (fake *Support) GetChaincodeDefinitionCallCount() int
- func (fake *Support) GetChaincodeDefinitionReturns(result1 ccprovider.ChaincodeDefinition, result2 error)
- func (fake *Support) GetChaincodeDefinitionReturnsOnCall(i int, result1 ccprovider.ChaincodeDefinition, result2 error)
- func (fake *Support) GetChaincodeDeploymentSpecFS(cds *pb.ChaincodeDeploymentSpec) (*pb.ChaincodeDeploymentSpec, error)
- func (fake *Support) GetChaincodeDeploymentSpecFSArgsForCall(i int) *pb.ChaincodeDeploymentSpec
- func (fake *Support) GetChaincodeDeploymentSpecFSCallCount() int
- func (fake *Support) GetChaincodeDeploymentSpecFSReturns(result1 *pb.ChaincodeDeploymentSpec, result2 error)
- func (fake *Support) GetChaincodeDeploymentSpecFSReturnsOnCall(i int, result1 *pb.ChaincodeDeploymentSpec, result2 error)
- func (fake *Support) GetHistoryQueryExecutor(ledgername string) (ledger.HistoryQueryExecutor, error)
- func (fake *Support) GetHistoryQueryExecutorArgsForCall(i int) string
- func (fake *Support) GetHistoryQueryExecutorCallCount() int
- func (fake *Support) GetHistoryQueryExecutorReturns(result1 ledger.HistoryQueryExecutor, result2 error)
- func (fake *Support) GetHistoryQueryExecutorReturnsOnCall(i int, result1 ledger.HistoryQueryExecutor, result2 error)
- func (fake *Support) GetLedgerHeight(channelID string) (uint64, error)
- func (fake *Support) GetLedgerHeightArgsForCall(i int) string
- func (fake *Support) GetLedgerHeightCallCount() int
- func (fake *Support) GetLedgerHeightReturns(result1 uint64, result2 error)
- func (fake *Support) GetLedgerHeightReturnsOnCall(i int, result1 uint64, result2 error)
- func (fake *Support) GetTransactionByID(chid string, txID string) (*pb.ProcessedTransaction, error)
- func (fake *Support) GetTransactionByIDArgsForCall(i int) (string, string)
- func (fake *Support) GetTransactionByIDCallCount() int
- func (fake *Support) GetTransactionByIDReturns(result1 *pb.ProcessedTransaction, result2 error)
- func (fake *Support) GetTransactionByIDReturnsOnCall(i int, result1 *pb.ProcessedTransaction, result2 error)
- func (fake *Support) GetTxSimulator(ledgername string, txid string) (ledger.TxSimulator, error)
- func (fake *Support) GetTxSimulatorArgsForCall(i int) (string, string)
- func (fake *Support) GetTxSimulatorCallCount() int
- func (fake *Support) GetTxSimulatorReturns(result1 ledger.TxSimulator, result2 error)
- func (fake *Support) GetTxSimulatorReturnsOnCall(i int, result1 ledger.TxSimulator, result2 error)
- func (fake *Support) Invocations() map[string][][]interface{}
- func (fake *Support) IsJavaCC(buf []byte) (bool, error)
- func (fake *Support) IsJavaCCArgsForCall(i int) []byte
- func (fake *Support) IsJavaCCCallCount() int
- func (fake *Support) IsJavaCCReturns(result1 bool, result2 error)
- func (fake *Support) IsJavaCCReturnsOnCall(i int, result1 bool, result2 error)
- func (fake *Support) IsSysCC(name string) bool
- func (fake *Support) IsSysCCAndNotInvokableExternal(name string) bool
- func (fake *Support) IsSysCCAndNotInvokableExternalArgsForCall(i int) string
- func (fake *Support) IsSysCCAndNotInvokableExternalCallCount() int
- func (fake *Support) IsSysCCAndNotInvokableExternalReturns(result1 bool)
- func (fake *Support) IsSysCCAndNotInvokableExternalReturnsOnCall(i int, result1 bool)
- func (fake *Support) IsSysCCArgsForCall(i int) string
- func (fake *Support) IsSysCCCallCount() int
- func (fake *Support) IsSysCCReturns(result1 bool)
- func (fake *Support) IsSysCCReturnsOnCall(i int, result1 bool)
- func (fake *Support) NewQueryCreator(channel string) (endorser_test.QueryCreator, error)
- func (fake *Support) NewQueryCreatorArgsForCall(i int) string
- func (fake *Support) NewQueryCreatorCallCount() int
- func (fake *Support) NewQueryCreatorReturns(result1 endorser_test.QueryCreator, result2 error)
- func (fake *Support) NewQueryCreatorReturnsOnCall(i int, result1 endorser_test.QueryCreator, result2 error)
- func (fake *Support) Serialize() ([]byte, error)
- func (fake *Support) SerializeCallCount() int
- func (fake *Support) SerializeReturns(result1 []byte, result2 error)
- func (fake *Support) SerializeReturnsOnCall(i int, result1 []byte, result2 error)
- func (fake *Support) Sign(message []byte) ([]byte, error)
- func (fake *Support) SignArgsForCall(i int) []byte
- func (fake *Support) SignCallCount() int
- func (fake *Support) SignReturns(result1 []byte, result2 error)
- func (fake *Support) SignReturnsOnCall(i int, result1 []byte, result2 error)
- type TransientStoreRetriever
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChannelStateRetriever ¶ added in v1.2.0
ChannelStateRetriever is an autogenerated mock type for the ChannelStateRetriever type
func (*ChannelStateRetriever) NewQueryCreator ¶ added in v1.2.0
func (_m *ChannelStateRetriever) NewQueryCreator(channel string) (endorser.QueryCreator, error)
NewQueryCreator provides a mock function with given fields: channel
type Plugin ¶ added in v1.2.0
Plugin is an autogenerated mock type for the Plugin type
func (*Plugin) Endorse ¶ added in v1.2.0
func (_m *Plugin) Endorse(payload []byte, sp *peer.SignedProposal) (*peer.Endorsement, []byte, error)
Endorse provides a mock function with given fields: payload, sp
func (*Plugin) Init ¶ added in v1.2.0
func (_m *Plugin) Init(dependencies ...endorsement.Dependency) error
Init provides a mock function with given fields: dependencies
type PluginFactory ¶ added in v1.2.0
PluginFactory is an autogenerated mock type for the PluginFactory type
func (*PluginFactory) New ¶ added in v1.2.0
func (_m *PluginFactory) New() endorsement.Plugin
New provides a mock function with given fields:
type PluginMapper ¶ added in v1.2.0
PluginMapper is an autogenerated mock type for the PluginMapper type
func (*PluginMapper) PluginFactoryByName ¶ added in v1.2.0
func (_m *PluginMapper) PluginFactoryByName(name endorser.PluginName) endorsement.PluginFactory
PluginFactoryByName provides a mock function with given fields: name
type QueryCreator ¶ added in v1.2.0
QueryCreator is an autogenerated mock type for the QueryCreator type
func (*QueryCreator) NewQueryExecutor ¶ added in v1.2.0
func (_m *QueryCreator) NewQueryExecutor() (ledger.QueryExecutor, error)
NewQueryExecutor provides a mock function with given fields:
type SigningIdentityFetcher ¶ added in v1.2.0
SigningIdentityFetcher is an autogenerated mock type for the SigningIdentityFetcher type
func (*SigningIdentityFetcher) SigningIdentityForRequest ¶ added in v1.2.0
func (_m *SigningIdentityFetcher) SigningIdentityForRequest(_a0 *peer.SignedProposal) (endorsement.SigningIdentity, error)
SigningIdentityForRequest provides a mock function with given fields: _a0
type Store ¶ added in v1.2.0
Store is an autogenerated mock type for the Store type
func (*Store) GetMinTransientBlkHt ¶ added in v1.2.0
GetMinTransientBlkHt provides a mock function with given fields:
func (*Store) GetTxPvtRWSetByTxid ¶ added in v1.2.0
func (_m *Store) GetTxPvtRWSetByTxid(txid string, filter ledger.PvtNsCollFilter) (transientstore.RWSetScanner, error)
GetTxPvtRWSetByTxid provides a mock function with given fields: txid, filter
func (*Store) Persist ¶ added in v1.2.0
func (_m *Store) Persist(txid string, blockHeight uint64, privateSimulationResults *rwset.TxPvtReadWriteSet) error
Persist provides a mock function with given fields: txid, blockHeight, privateSimulationResults
func (*Store) PersistWithConfig ¶ added in v1.2.0
func (_m *Store) PersistWithConfig(txid string, blockHeight uint64, privateSimulationResultsWithConfig *protostransientstore.TxPvtReadWriteSetWithConfigInfo) error
PersistWithConfig provides a mock function with given fields: txid, blockHeight, privateSimulationResultsWithConfig
func (*Store) PurgeByHeight ¶ added in v1.2.0
PurgeByHeight provides a mock function with given fields: maxBlockNumToRetain
func (*Store) PurgeByTxids ¶ added in v1.2.0
PurgeByTxids provides a mock function with given fields: txids
type Support ¶
type Support struct { SignStub func(message []byte) ([]byte, error) SerializeStub func() ([]byte, error) IsSysCCAndNotInvokableExternalStub func(name string) bool GetTxSimulatorStub func(ledgername string, txid string) (ledger.TxSimulator, error) GetHistoryQueryExecutorStub func(ledgername string) (ledger.HistoryQueryExecutor, error) GetTransactionByIDStub func(chid, txID string) (*pb.ProcessedTransaction, error) IsSysCCStub func(name string) bool ExecuteStub func(ctxt context.Context, cid, name, version, txid string, syscc bool, signedProp *pb.SignedProposal, prop *pb.Proposal, spec ccprovider.ChaincodeSpecGetter) (*pb.Response, *pb.ChaincodeEvent, error) GetChaincodeDefinitionStub func(ctx context.Context, chainID string, txid string, signedProp *pb.SignedProposal, prop *pb.Proposal, chaincodeID string, txsim ledger.TxSimulator) (ccprovider.ChaincodeDefinition, error) CheckACLStub func(signedProp *pb.SignedProposal, chdr *common.ChannelHeader, shdr *common.SignatureHeader, hdrext *pb.ChaincodeHeaderExtension) error IsJavaCCStub func(buf []byte) (bool, error) CheckInstantiationPolicyStub func(name, version string, cd ccprovider.ChaincodeDefinition) error GetChaincodeDeploymentSpecFSStub func(cds *pb.ChaincodeDeploymentSpec) (*pb.ChaincodeDeploymentSpec, error) GetApplicationConfigStub func(cid string) (channelconfig.Application, bool) NewQueryCreatorStub func(channel string) (endorser_test.QueryCreator, error) EndorseWithPluginStub func(ctx endorser_test.Context) (*pb.ProposalResponse, error) GetLedgerHeightStub func(channelID string) (uint64, error) // contains filtered or unexported fields }
func (*Support) CheckACL ¶
func (fake *Support) CheckACL(signedProp *pb.SignedProposal, chdr *common.ChannelHeader, shdr *common.SignatureHeader, hdrext *pb.ChaincodeHeaderExtension) error
func (*Support) CheckACLArgsForCall ¶
func (fake *Support) CheckACLArgsForCall(i int) (*pb.SignedProposal, *common.ChannelHeader, *common.SignatureHeader, *pb.ChaincodeHeaderExtension)
func (*Support) CheckACLCallCount ¶
func (*Support) CheckACLReturns ¶
func (*Support) CheckACLReturnsOnCall ¶
func (*Support) CheckInstantiationPolicy ¶
func (fake *Support) CheckInstantiationPolicy(name string, version string, cd ccprovider.ChaincodeDefinition) error
func (*Support) CheckInstantiationPolicyArgsForCall ¶
func (fake *Support) CheckInstantiationPolicyArgsForCall(i int) (string, string, ccprovider.ChaincodeDefinition)
func (*Support) CheckInstantiationPolicyCallCount ¶
func (*Support) CheckInstantiationPolicyReturns ¶
func (*Support) CheckInstantiationPolicyReturnsOnCall ¶
func (*Support) EndorseWithPlugin ¶ added in v1.2.0
func (fake *Support) EndorseWithPlugin(ctx endorser_test.Context) (*pb.ProposalResponse, error)
func (*Support) EndorseWithPluginArgsForCall ¶ added in v1.2.0
func (fake *Support) EndorseWithPluginArgsForCall(i int) endorser_test.Context
func (*Support) EndorseWithPluginCallCount ¶ added in v1.2.0
func (*Support) EndorseWithPluginReturns ¶ added in v1.2.0
func (fake *Support) EndorseWithPluginReturns(result1 *pb.ProposalResponse, result2 error)
func (*Support) EndorseWithPluginReturnsOnCall ¶ added in v1.2.0
func (fake *Support) EndorseWithPluginReturnsOnCall(i int, result1 *pb.ProposalResponse, result2 error)
func (*Support) Execute ¶
func (fake *Support) Execute(ctxt context.Context, cid string, name string, version string, txid string, syscc bool, signedProp *pb.SignedProposal, prop *pb.Proposal, spec ccprovider.ChaincodeSpecGetter) (*pb.Response, *pb.ChaincodeEvent, error)
func (*Support) ExecuteArgsForCall ¶
func (fake *Support) ExecuteArgsForCall(i int) (context.Context, string, string, string, string, bool, *pb.SignedProposal, *pb.Proposal, ccprovider.ChaincodeSpecGetter)
func (*Support) ExecuteCallCount ¶
func (*Support) ExecuteReturns ¶
func (*Support) ExecuteReturnsOnCall ¶
func (*Support) GetApplicationConfig ¶
func (fake *Support) GetApplicationConfig(cid string) (channelconfig.Application, bool)
func (*Support) GetApplicationConfigArgsForCall ¶
func (*Support) GetApplicationConfigCallCount ¶
func (*Support) GetApplicationConfigReturns ¶
func (fake *Support) GetApplicationConfigReturns(result1 channelconfig.Application, result2 bool)
func (*Support) GetApplicationConfigReturnsOnCall ¶
func (fake *Support) GetApplicationConfigReturnsOnCall(i int, result1 channelconfig.Application, result2 bool)
func (*Support) GetChaincodeDefinition ¶
func (fake *Support) GetChaincodeDefinition(ctx context.Context, chainID string, txid string, signedProp *pb.SignedProposal, prop *pb.Proposal, chaincodeID string, txsim ledger.TxSimulator) (ccprovider.ChaincodeDefinition, error)
func (*Support) GetChaincodeDefinitionArgsForCall ¶
func (*Support) GetChaincodeDefinitionCallCount ¶
func (*Support) GetChaincodeDefinitionReturns ¶
func (fake *Support) GetChaincodeDefinitionReturns(result1 ccprovider.ChaincodeDefinition, result2 error)
func (*Support) GetChaincodeDefinitionReturnsOnCall ¶
func (fake *Support) GetChaincodeDefinitionReturnsOnCall(i int, result1 ccprovider.ChaincodeDefinition, result2 error)
func (*Support) GetChaincodeDeploymentSpecFS ¶
func (fake *Support) GetChaincodeDeploymentSpecFS(cds *pb.ChaincodeDeploymentSpec) (*pb.ChaincodeDeploymentSpec, error)
func (*Support) GetChaincodeDeploymentSpecFSArgsForCall ¶
func (fake *Support) GetChaincodeDeploymentSpecFSArgsForCall(i int) *pb.ChaincodeDeploymentSpec
func (*Support) GetChaincodeDeploymentSpecFSCallCount ¶
func (*Support) GetChaincodeDeploymentSpecFSReturns ¶
func (fake *Support) GetChaincodeDeploymentSpecFSReturns(result1 *pb.ChaincodeDeploymentSpec, result2 error)
func (*Support) GetChaincodeDeploymentSpecFSReturnsOnCall ¶
func (fake *Support) GetChaincodeDeploymentSpecFSReturnsOnCall(i int, result1 *pb.ChaincodeDeploymentSpec, result2 error)
func (*Support) GetHistoryQueryExecutor ¶
func (fake *Support) GetHistoryQueryExecutor(ledgername string) (ledger.HistoryQueryExecutor, error)
func (*Support) GetHistoryQueryExecutorArgsForCall ¶
func (*Support) GetHistoryQueryExecutorCallCount ¶
func (*Support) GetHistoryQueryExecutorReturns ¶
func (fake *Support) GetHistoryQueryExecutorReturns(result1 ledger.HistoryQueryExecutor, result2 error)
func (*Support) GetHistoryQueryExecutorReturnsOnCall ¶
func (fake *Support) GetHistoryQueryExecutorReturnsOnCall(i int, result1 ledger.HistoryQueryExecutor, result2 error)
func (*Support) GetLedgerHeight ¶ added in v1.2.0
func (*Support) GetLedgerHeightArgsForCall ¶ added in v1.2.0
func (*Support) GetLedgerHeightCallCount ¶ added in v1.2.0
func (*Support) GetLedgerHeightReturns ¶ added in v1.2.0
func (*Support) GetLedgerHeightReturnsOnCall ¶ added in v1.2.0
func (*Support) GetTransactionByID ¶
func (*Support) GetTransactionByIDArgsForCall ¶
func (*Support) GetTransactionByIDCallCount ¶
func (*Support) GetTransactionByIDReturns ¶
func (fake *Support) GetTransactionByIDReturns(result1 *pb.ProcessedTransaction, result2 error)
func (*Support) GetTransactionByIDReturnsOnCall ¶
func (fake *Support) GetTransactionByIDReturnsOnCall(i int, result1 *pb.ProcessedTransaction, result2 error)
func (*Support) GetTxSimulator ¶
func (*Support) GetTxSimulatorArgsForCall ¶
func (*Support) GetTxSimulatorCallCount ¶
func (*Support) GetTxSimulatorReturns ¶
func (fake *Support) GetTxSimulatorReturns(result1 ledger.TxSimulator, result2 error)
func (*Support) GetTxSimulatorReturnsOnCall ¶
func (fake *Support) GetTxSimulatorReturnsOnCall(i int, result1 ledger.TxSimulator, result2 error)
func (*Support) Invocations ¶
func (*Support) IsJavaCCArgsForCall ¶
func (*Support) IsJavaCCCallCount ¶
func (*Support) IsJavaCCReturns ¶
func (*Support) IsJavaCCReturnsOnCall ¶
func (*Support) IsSysCCAndNotInvokableExternal ¶
func (*Support) IsSysCCAndNotInvokableExternalArgsForCall ¶
func (*Support) IsSysCCAndNotInvokableExternalCallCount ¶
func (*Support) IsSysCCAndNotInvokableExternalReturns ¶
func (*Support) IsSysCCAndNotInvokableExternalReturnsOnCall ¶
func (*Support) IsSysCCArgsForCall ¶
func (*Support) IsSysCCCallCount ¶
func (*Support) IsSysCCReturns ¶
func (*Support) IsSysCCReturnsOnCall ¶
func (*Support) NewQueryCreator ¶ added in v1.2.0
func (fake *Support) NewQueryCreator(channel string) (endorser_test.QueryCreator, error)
func (*Support) NewQueryCreatorArgsForCall ¶ added in v1.2.0
func (*Support) NewQueryCreatorCallCount ¶ added in v1.2.0
func (*Support) NewQueryCreatorReturns ¶ added in v1.2.0
func (fake *Support) NewQueryCreatorReturns(result1 endorser_test.QueryCreator, result2 error)
func (*Support) NewQueryCreatorReturnsOnCall ¶ added in v1.2.0
func (fake *Support) NewQueryCreatorReturnsOnCall(i int, result1 endorser_test.QueryCreator, result2 error)
func (*Support) SerializeCallCount ¶ added in v1.2.0
func (*Support) SerializeReturns ¶ added in v1.2.0
func (*Support) SerializeReturnsOnCall ¶ added in v1.2.0
func (*Support) SignArgsForCall ¶ added in v1.2.0
func (*Support) SignCallCount ¶ added in v1.2.0
func (*Support) SignReturns ¶ added in v1.2.0
type TransientStoreRetriever ¶ added in v1.2.0
TransientStoreRetriever is an autogenerated mock type for the TransientStoreRetriever type
func (*TransientStoreRetriever) StoreForChannel ¶ added in v1.2.0
func (_m *TransientStoreRetriever) StoreForChannel(channel string) transientstore.Store
StoreForChannel provides a mock function with given fields: channel