Versions in this module Expand all Collapse all v1 v1.4.6 Feb 25, 2020 Changes in this version + type ExecuteChaincodeResultProvider interface + ExecuteChaincodeResult func() (*peer.Response, *peer.ChaincodeEvent, error) + type MockCcProviderFactory struct + ExecuteResultProvider ExecuteChaincodeResultProvider + func (c *MockCcProviderFactory) NewChaincodeProvider() ccprovider.ChaincodeProvider + type MockCcProviderImpl struct + ExecuteChaincodeResponse *peer.Response + ExecuteResultProvider ExecuteChaincodeResultProvider + func (c *MockCcProviderImpl) Execute(txParams *ccprovider.TransactionParams, cccid *ccprovider.CCContext, ...) (*peer.Response, *peer.ChaincodeEvent, error) + func (c *MockCcProviderImpl) ExecuteLegacyInit(txParams *ccprovider.TransactionParams, cccid *ccprovider.CCContext, ...) (*peer.Response, *peer.ChaincodeEvent, error) + func (c *MockCcProviderImpl) Stop(ccci *ccprovider.ChaincodeContainerInfo) error + type MockChaincodeDefinition struct + EndorsementStr string + HashRv []byte + NameRv string + ValidationBytes []byte + ValidationStr string + VersionRv string + func (m *MockChaincodeDefinition) CCName() string + func (m *MockChaincodeDefinition) CCVersion() string + func (m *MockChaincodeDefinition) Endorsement() string + func (m *MockChaincodeDefinition) Hash() []byte + func (m *MockChaincodeDefinition) Validation() (string, []byte) + type MockTxSim struct + GetTxSimulationResultsRv *ledger.TxSimulationResults + 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