Documentation ¶
Overview ¶
Code generated by mockery v1.0.0
Code generated by mockery v1.0.0 ¶
Code generated by mockery v1.0.0
Index ¶
- type ChannelStateRetriever
- type MockChaincodeDefinition
- type MockTxSim
- func (m *MockTxSim) DeletePrivateData(namespace, collection, key string) error
- func (m *MockTxSim) DeletePrivateDataMetadata(namespace, collection, key string) error
- func (m *MockTxSim) DeleteState(namespace string, key string) error
- func (m *MockTxSim) DeleteStateMetadata(namespace, key string) error
- func (m *MockTxSim) Done()
- func (m *MockTxSim) ExecuteQuery(namespace, query string) (commonledger.ResultsIterator, error)
- func (m *MockTxSim) ExecuteQueryOnPrivateData(namespace, collection, query string) (commonledger.ResultsIterator, error)
- func (m *MockTxSim) ExecuteQueryWithMetadata(namespace, query string, metadata map[string]interface{}) (ledger.QueryResultsIterator, error)
- func (m *MockTxSim) ExecuteUpdate(query string) error
- func (m *MockTxSim) GetPrivateData(namespace, collection, key string) ([]byte, error)
- func (m *MockTxSim) GetPrivateDataHash(namespace, collection, key string) ([]byte, error)
- func (m *MockTxSim) GetPrivateDataMetadata(namespace, collection, key string) (map[string][]byte, error)
- func (m *MockTxSim) GetPrivateDataMetadataByHash(namespace, collection string, keyhash []byte) (map[string][]byte, error)
- func (m *MockTxSim) GetPrivateDataMultipleKeys(namespace, collection string, keys []string) ([][]byte, error)
- func (m *MockTxSim) GetPrivateDataRangeScanIterator(namespace, collection, startKey, endKey string) (commonledger.ResultsIterator, error)
- func (m *MockTxSim) GetState(namespace string, key string) ([]byte, error)
- func (m *MockTxSim) GetStateMetadata(namespace, key string) (map[string][]byte, error)
- func (m *MockTxSim) GetStateMultipleKeys(namespace string, keys []string) ([][]byte, error)
- func (m *MockTxSim) GetStateRangeScanIterator(namespace string, startKey string, endKey string) (commonledger.ResultsIterator, error)
- func (m *MockTxSim) GetStateRangeScanIteratorWithMetadata(namespace string, startKey, endKey string, metadata map[string]interface{}) (ledger.QueryResultsIterator, error)
- func (m *MockTxSim) GetTxSimulationResults() (*ledger.TxSimulationResults, error)
- func (m *MockTxSim) SetPrivateData(namespace, collection, key string, value []byte) error
- func (m *MockTxSim) SetPrivateDataMetadata(namespace, collection, key string, metadata map[string][]byte) error
- func (m *MockTxSim) SetPrivateDataMultipleKeys(namespace, collection string, kvs map[string][]byte) error
- func (m *MockTxSim) SetState(namespace string, key string, value []byte) error
- func (m *MockTxSim) SetStateMetadata(namespace, key string, metadata map[string][]byte) error
- func (m *MockTxSim) SetStateMultipleKeys(namespace string, kvs map[string][]byte) error
- type Plugin
- type PluginFactory
- type PluginMapper
- type QueryCreator
- type SigningIdentityFetcher
- type TransientStoreRetriever
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChannelStateRetriever ¶ added in v1.3.0
ChannelStateRetriever is an autogenerated mock type for the ChannelStateRetriever type
func (*ChannelStateRetriever) NewQueryCreator ¶ added in v1.3.0
func (_m *ChannelStateRetriever) NewQueryCreator(channel string) (endorser.QueryCreator, error)
NewQueryCreator provides a mock function with given fields: channel
type MockChaincodeDefinition ¶
type MockChaincodeDefinition struct { NameRv string VersionRv string EndorsementStr string ValidationStr string ValidationBytes []byte HashRv []byte }
func (*MockChaincodeDefinition) CCName ¶
func (m *MockChaincodeDefinition) CCName() string
func (*MockChaincodeDefinition) CCVersion ¶
func (m *MockChaincodeDefinition) CCVersion() string
func (*MockChaincodeDefinition) Endorsement ¶
func (m *MockChaincodeDefinition) Endorsement() string
func (*MockChaincodeDefinition) Hash ¶
func (m *MockChaincodeDefinition) Hash() []byte
func (*MockChaincodeDefinition) Validation ¶
func (m *MockChaincodeDefinition) Validation() (string, []byte)
type MockTxSim ¶
type MockTxSim struct {
GetTxSimulationResultsRv *ledger.TxSimulationResults
}
func (*MockTxSim) DeletePrivateData ¶
func (*MockTxSim) DeletePrivateDataMetadata ¶
func (*MockTxSim) DeleteStateMetadata ¶
func (*MockTxSim) ExecuteQuery ¶
func (m *MockTxSim) ExecuteQuery(namespace, query string) (commonledger.ResultsIterator, error)
func (*MockTxSim) ExecuteQueryOnPrivateData ¶
func (m *MockTxSim) ExecuteQueryOnPrivateData(namespace, collection, query string) (commonledger.ResultsIterator, error)
func (*MockTxSim) ExecuteQueryWithMetadata ¶
func (*MockTxSim) ExecuteUpdate ¶
func (*MockTxSim) GetPrivateData ¶
func (*MockTxSim) GetPrivateDataHash ¶
func (*MockTxSim) GetPrivateDataMetadata ¶
func (*MockTxSim) GetPrivateDataMetadataByHash ¶
func (*MockTxSim) GetPrivateDataMultipleKeys ¶
func (*MockTxSim) GetPrivateDataRangeScanIterator ¶
func (m *MockTxSim) GetPrivateDataRangeScanIterator(namespace, collection, startKey, endKey string) (commonledger.ResultsIterator, error)
func (*MockTxSim) GetStateMetadata ¶
func (*MockTxSim) GetStateMultipleKeys ¶
func (*MockTxSim) GetStateRangeScanIterator ¶
func (m *MockTxSim) GetStateRangeScanIterator(namespace string, startKey string, endKey string) (commonledger.ResultsIterator, error)
func (*MockTxSim) GetStateRangeScanIteratorWithMetadata ¶
func (*MockTxSim) GetTxSimulationResults ¶
func (m *MockTxSim) GetTxSimulationResults() (*ledger.TxSimulationResults, error)
func (*MockTxSim) SetPrivateData ¶
func (*MockTxSim) SetPrivateDataMetadata ¶
func (*MockTxSim) SetPrivateDataMultipleKeys ¶
func (*MockTxSim) SetStateMetadata ¶
type Plugin ¶ added in v1.3.0
Plugin is an autogenerated mock type for the Plugin type
func (*Plugin) Endorse ¶ added in v1.3.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.3.0
func (_m *Plugin) Init(dependencies ...endorsement.Dependency) error
Init provides a mock function with given fields: dependencies
type PluginFactory ¶ added in v1.3.0
PluginFactory is an autogenerated mock type for the PluginFactory type
func (*PluginFactory) New ¶ added in v1.3.0
func (_m *PluginFactory) New() endorsement.Plugin
New provides a mock function with given fields:
type PluginMapper ¶ added in v1.3.0
PluginMapper is an autogenerated mock type for the PluginMapper type
func (*PluginMapper) PluginFactoryByName ¶ added in v1.3.0
func (_m *PluginMapper) PluginFactoryByName(name endorser.PluginName) endorsement.PluginFactory
PluginFactoryByName provides a mock function with given fields: name
type QueryCreator ¶ added in v1.3.0
QueryCreator is an autogenerated mock type for the QueryCreator type
func (*QueryCreator) NewQueryExecutor ¶ added in v1.3.0
func (_m *QueryCreator) NewQueryExecutor() (ledger.QueryExecutor, error)
NewQueryExecutor provides a mock function with given fields:
type SigningIdentityFetcher ¶ added in v1.3.0
SigningIdentityFetcher is an autogenerated mock type for the SigningIdentityFetcher type
func (*SigningIdentityFetcher) SigningIdentityForRequest ¶ added in v1.3.0
func (_m *SigningIdentityFetcher) SigningIdentityForRequest(_a0 *peer.SignedProposal) (endorsement.SigningIdentity, error)
SigningIdentityForRequest provides a mock function with given fields: _a0
type TransientStoreRetriever ¶ added in v1.3.0
TransientStoreRetriever is an autogenerated mock type for the TransientStoreRetriever type
func (*TransientStoreRetriever) StoreForChannel ¶ added in v1.3.0
func (_m *TransientStoreRetriever) StoreForChannel(channel string) *transientstore.Store
StoreForChannel provides a mock function with given fields: channel