Documentation ¶
Overview ¶
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Index ¶
- func NewAppDataReqMsg(channelID string, reqID uint64, dataType string, reqPayload []byte) *protoext.SignedGossipMessage
- func NewAppDataResMsg(channelID string, reqID uint64, response []byte) *protoext.SignedGossipMessage
- func NewCollDataReqMsg(channelID string, reqID uint64, keys ...*store.Key) *protoext.SignedGossipMessage
- func NewCollDataReqMsgWithDigests(channelID string, reqID uint64, digests ...*gproto.CollDataDigest) *protoext.SignedGossipMessage
- func NewCollDataResMsg(channelID string, reqID uint64, keyVals ...*KeyVal) *protoext.SignedGossipMessage
- func NewDataMsg(channelID string) *protoext.SignedGossipMessage
- func NewMember(endpoint string, pkiID []byte, roles ...string) discovery.NetworkMember
- type ACLProvider
- func (fake *ACLProvider) CheckACL(resName string, channelID string, idinfo interface{}) error
- func (fake *ACLProvider) CheckACLArgsForCall(i int) (string, string, interface{})
- func (fake *ACLProvider) CheckACLCallCount() int
- func (fake *ACLProvider) CheckACLReturns(result1 error)
- func (fake *ACLProvider) CheckACLReturnsOnCall(i int, result1 error)
- func (fake *ACLProvider) Invocations() map[string][][]interface{}
- type BlockBuilder
- type ChaincodeActionBuilder
- func (b *ChaincodeActionBuilder) Build() []byte
- func (b *ChaincodeActionBuilder) ChaincodeEvent(eventName string, payload []byte) *ChaincodeActionBuilder
- func (b *ChaincodeActionBuilder) Collection(coll string) *CollHashedRWSetBuilder
- func (b *ChaincodeActionBuilder) Delete(key string) *ChaincodeActionBuilder
- func (b *ChaincodeActionBuilder) Read(key string, version *kvrwset.Version) *ChaincodeActionBuilder
- func (b *ChaincodeActionBuilder) Response(response *pb.Response) *ChaincodeActionBuilder
- func (b *ChaincodeActionBuilder) Write(key string, value []byte) *ChaincodeActionBuilder
- type ChaincodeInfoProvider
- func (p *ChaincodeInfoProvider) ChaincodeInfo(channelName, chaincodeName string, qe ledger.SimpleQueryExecutor) (*ledger.DeployedChaincodeInfo, error)
- func (p *ChaincodeInfoProvider) WithData(ccName string, ccInfo *ledger.DeployedChaincodeInfo) *ChaincodeInfoProvider
- func (p *ChaincodeInfoProvider) WithError(err error) *ChaincodeInfoProvider
- type ChaincodeUpdateHandler
- func (fake *ChaincodeUpdateHandler) HandleStateUpdates(trigger *ledger.StateUpdateTrigger) error
- func (fake *ChaincodeUpdateHandler) HandleStateUpdatesArgsForCall(i int) *ledger.StateUpdateTrigger
- func (fake *ChaincodeUpdateHandler) HandleStateUpdatesCallCount() int
- func (fake *ChaincodeUpdateHandler) HandleStateUpdatesReturns(result1 error)
- func (fake *ChaincodeUpdateHandler) HandleStateUpdatesReturnsOnCall(i int, result1 error)
- func (fake *ChaincodeUpdateHandler) Invocations() map[string][][]interface{}
- type CollHashedRWSetBuilder
- func (b *CollHashedRWSetBuilder) Build() *rwsetutil.CollHashedRwSet
- func (b *CollHashedRWSetBuilder) Delete(keyHash []byte) *CollHashedRWSetBuilder
- func (b *CollHashedRWSetBuilder) HashedRead(keyHash []byte, version *kvrwset.Version) *CollHashedRWSetBuilder
- func (b *CollHashedRWSetBuilder) HashedWrite(keyHash, valueHash []byte) *CollHashedRWSetBuilder
- type CollectionBuilder
- func (c *CollectionBuilder) Build() *rwset.CollectionPvtReadWriteSet
- func (c *CollectionBuilder) BuildConfig() *peer.CollectionConfig
- func (c *CollectionBuilder) DCASConfig(policy string, requiredPeerCount, maximumPeerCount int32, ttl string) *CollectionBuilder
- func (c *CollectionBuilder) Delete(key string) *CollectionBuilder
- func (c *CollectionBuilder) OffLedgerConfig(policy string, requiredPeerCount, maximumPeerCount int32, ttl string) *CollectionBuilder
- func (c *CollectionBuilder) Read(key string, blockNum uint64, txIdx uint64) *CollectionBuilder
- func (c *CollectionBuilder) StaticConfig(policy string, requiredPeerCount, maximumPeerCount int32, btl uint64) *CollectionBuilder
- func (c *CollectionBuilder) TransientConfig(policy string, requiredPeerCount, maximumPeerCount int32, ttl string) *CollectionBuilder
- func (c *CollectionBuilder) WithMarshalError() *CollectionBuilder
- func (c *CollectionBuilder) Write(key string, value []byte) *CollectionBuilder
- type CollectionConfigProvider
- func (fake *CollectionConfigProvider) ForChannel(channelID string) support.CollectionConfigRetriever
- func (fake *CollectionConfigProvider) ForChannelArgsForCall(i int) string
- func (fake *CollectionConfigProvider) ForChannelCallCount() int
- func (fake *CollectionConfigProvider) ForChannelReturns(result1 support.CollectionConfigRetriever)
- func (fake *CollectionConfigProvider) ForChannelReturnsOnCall(i int, result1 support.CollectionConfigRetriever)
- func (fake *CollectionConfigProvider) Invocations() map[string][][]interface{}
- type CollectionConfigRetriever
- func (s *CollectionConfigRetriever) Config(ns, coll string) (*pb.StaticCollectionConfig, error)
- func (s *CollectionConfigRetriever) Policy(ns, coll string) (privdata.CollectionAccessPolicy, error)
- func (s *CollectionConfigRetriever) WithCollectionConfig(collConfig *pb.StaticCollectionConfig) *CollectionConfigRetriever
- func (s *CollectionConfigRetriever) WithCollectionPolicy(collPolicy privdata.CollectionAccessPolicy) *CollectionConfigRetriever
- func (s *CollectionConfigRetriever) WithError(err error) *CollectionConfigRetriever
- type ConfigUpdateBuilder
- type DataProvider
- func (p *DataProvider) RetrieverForChannel(channel string) storeapi.Retriever
- func (p *DataProvider) WithData(key *storeapi.Key, value *storeapi.ExpiringValue) *DataProvider
- func (p *DataProvider) WithError(err error) *DataProvider
- func (p *DataProvider) WithQueryResults(key *storeapi.QueryKey, results []*storeapi.QueryResult) *DataProvider
- type DataStore
- func (m *DataStore) Close()
- func (m *DataStore) Data(key *storeapi.Key, value *storeapi.ExpiringValue) *DataStore
- func (m *DataStore) Error(err error) *DataStore
- func (m *DataStore) GetData(key *storeapi.Key) (*storeapi.ExpiringValue, error)
- func (m *DataStore) GetDataMultipleKeys(key *storeapi.MultiKey) (storeapi.ExpiringValues, error)
- func (m *DataStore) GetTransientData(key *storeapi.Key) (*storeapi.ExpiringValue, error)
- func (m *DataStore) GetTransientDataMultipleKeys(key *storeapi.MultiKey) (storeapi.ExpiringValues, error)
- func (m *DataStore) Persist(txid string, ...) error
- func (m *DataStore) PutData(config *pb.StaticCollectionConfig, key *storeapi.Key, ...) error
- func (m *DataStore) Query(key *storeapi.QueryKey) (storeapi.ResultsIterator, error)
- func (m *DataStore) TransientData(key *storeapi.Key, value *storeapi.ExpiringValue) *DataStore
- func (m *DataStore) WithQueryResults(key *storeapi.QueryKey, results []*storeapi.QueryResult) *DataStore
- func (m *DataStore) WithResultsIteratorError(err error) *DataStore
- type GossipProvider
- func (fake *GossipProvider) GetGossipService() gossipapi.GossipService
- func (fake *GossipProvider) GetGossipServiceCallCount() int
- func (fake *GossipProvider) GetGossipServiceReturns(result1 gossipapi.GossipService)
- func (fake *GossipProvider) GetGossipServiceReturnsOnCall(i int, result1 gossipapi.GossipService)
- func (fake *GossipProvider) Invocations() map[string][][]interface{}
- type IdentifierProvider
- func (fake *IdentifierProvider) GetIdentifier() (string, error)
- func (fake *IdentifierProvider) GetIdentifierCallCount() int
- func (fake *IdentifierProvider) GetIdentifierReturns(result1 string, result2 error)
- func (fake *IdentifierProvider) GetIdentifierReturnsOnCall(i int, result1 string, result2 error)
- func (fake *IdentifierProvider) Invocations() map[string][][]interface{}
- type IdentityDeserializer
- func (fake *IdentityDeserializer) DeserializeIdentity(serializedIdentity []byte) (msp.Identity, error)
- func (fake *IdentityDeserializer) DeserializeIdentityArgsForCall(i int) []byte
- func (fake *IdentityDeserializer) DeserializeIdentityCallCount() int
- func (fake *IdentityDeserializer) DeserializeIdentityReturns(result1 msp.Identity, result2 error)
- func (fake *IdentityDeserializer) DeserializeIdentityReturnsOnCall(i int, result1 msp.Identity, result2 error)
- func (fake *IdentityDeserializer) Invocations() map[string][][]interface{}
- func (fake *IdentityDeserializer) IsWellFormed(identity *mspfabric_protos.SerializedIdentity) error
- func (fake *IdentityDeserializer) IsWellFormedArgsForCall(i int) *mspfabric_protos.SerializedIdentity
- func (fake *IdentityDeserializer) IsWellFormedCallCount() int
- func (fake *IdentityDeserializer) IsWellFormedReturns(result1 error)
- func (fake *IdentityDeserializer) IsWellFormedReturnsOnCall(i int, result1 error)
- type IdentityDeserializerProvider
- func (fake *IdentityDeserializerProvider) GetIdentityDeserializer(channelID string) msp.IdentityDeserializer
- func (fake *IdentityDeserializerProvider) GetIdentityDeserializerArgsForCall(i int) string
- func (fake *IdentityDeserializerProvider) GetIdentityDeserializerCallCount() int
- func (fake *IdentityDeserializerProvider) GetIdentityDeserializerReturns(result1 msp.IdentityDeserializer)
- func (fake *IdentityDeserializerProvider) GetIdentityDeserializerReturnsOnCall(i int, result1 msp.IdentityDeserializer)
- func (fake *IdentityDeserializerProvider) Invocations() map[string][][]interface{}
- type IdentityProvider
- func (fake *IdentityProvider) GetDefaultSigningIdentity() (msp.SigningIdentity, error)
- func (fake *IdentityProvider) GetDefaultSigningIdentityCallCount() int
- func (fake *IdentityProvider) GetDefaultSigningIdentityReturns(result1 msp.SigningIdentity, result2 error)
- func (fake *IdentityProvider) GetDefaultSigningIdentityReturnsOnCall(i int, result1 msp.SigningIdentity, result2 error)
- func (fake *IdentityProvider) Invocations() map[string][][]interface{}
- type KVIterator
- type KeyVal
- type Ledger
- func (m *Ledger) CheckpointBlock(*common.Block, func()) error
- func (m *Ledger) Close()
- func (m *Ledger) CommitLegacy(blockAndPvtdata *ledger2.BlockAndPvtData, commitOpts *ledger2.CommitOptions) error
- func (m *Ledger) CommitPvtDataOfOldBlocks(reconciledPvtdata []*ledger2.ReconciledPvtdata, ...) ([]*ledger2.PvtdataHashMismatch, error)
- func (m *Ledger) CommitWithPvtData(blockAndPvtdata *ledger2.BlockAndPvtData) error
- func (m *Ledger) DoesPvtDataInfoExist(blockNum uint64) (bool, error)
- func (m *Ledger) GetBlockByHash(blockHash []byte) (*common.Block, error)
- func (m *Ledger) GetBlockByNumber(blockNumber uint64) (*common.Block, error)
- func (m *Ledger) GetBlockByTxID(txID string) (*common.Block, error)
- func (m *Ledger) GetBlockchainInfo() (*common.BlockchainInfo, error)
- func (m *Ledger) GetBlocksIterator(startBlockNumber uint64) (ledger.ResultsIterator, error)
- func (m *Ledger) GetConfigHistoryRetriever() (ledger2.ConfigHistoryRetriever, error)
- func (m *Ledger) GetMissingPvtDataTracker() (ledger2.MissingPvtDataTracker, error)
- func (m *Ledger) GetPvtDataAndBlockByNum(blockNum uint64, filter ledger2.PvtNsCollFilter) (*ledger2.BlockAndPvtData, error)
- func (m *Ledger) GetPvtDataByNum(blockNum uint64, filter ledger2.PvtNsCollFilter) ([]*ledger2.TxPvtData, error)
- func (m *Ledger) GetTransactionByID(txID string) (*peer.ProcessedTransaction, error)
- func (m *Ledger) GetTxValidationCodeByTxID(txID string) (peer.TxValidationCode, error)
- func (m *Ledger) NewHistoryQueryExecutor() (ledger2.HistoryQueryExecutor, error)
- func (m *Ledger) NewQueryExecutor() (ledger2.QueryExecutor, error)
- func (m *Ledger) NewQueryExecutorNoLock() (ledger2.QueryExecutor, error)
- func (m *Ledger) NewTxSimulator(txid string) (ledger2.TxSimulator, error)
- type LedgerProvider
- func (fake *LedgerProvider) GetLedger(cid string) ledger.PeerLedger
- func (fake *LedgerProvider) GetLedgerArgsForCall(i int) string
- func (fake *LedgerProvider) GetLedgerCallCount() int
- func (fake *LedgerProvider) GetLedgerReturns(result1 ledger.PeerLedger)
- func (fake *LedgerProvider) GetLedgerReturnsOnCall(i int, result1 ledger.PeerLedger)
- func (fake *LedgerProvider) Invocations() map[string][][]interface{}
- type MessageHandler
- type MockAccessPolicy
- func (m *MockAccessPolicy) AccessFilter() privdata.Filter
- func (m *MockAccessPolicy) IsMemberOnlyRead() bool
- func (m *MockAccessPolicy) IsMemberOnlyWrite() bool
- func (m *MockAccessPolicy) MaximumPeerCount() int
- func (m *MockAccessPolicy) MemberOrgs() map[string]struct{}
- func (m *MockAccessPolicy) RequiredPeerCount() int
- type MockBlockHandler
- func (m *MockBlockHandler) HandleBlock(block *cb.Block) error
- func (m *MockBlockHandler) HandleChaincodeEvent(txMetadata api.TxMetadata, event *pb.ChaincodeEvent) error
- func (m *MockBlockHandler) HandleChaincodeUpgradeEvent(txMetadata api.TxMetadata, chaincodeName string) error
- func (m *MockBlockHandler) HandleCollHashRead(txMetadata api.TxMetadata, namespace, collection string, ...) error
- func (m *MockBlockHandler) HandleCollHashWrite(txMetadata api.TxMetadata, namespace, collection string, ...) error
- func (m *MockBlockHandler) HandleConfigUpdate(blockNum uint64, configUpdate *cb.ConfigUpdate) error
- func (m *MockBlockHandler) HandleLSCCWrite(txMetadata api.TxMetadata, chaincodeName string, ...) error
- func (m *MockBlockHandler) HandleRead(txMetadata api.TxMetadata, namespace string, kvRead *kvrwset.KVRead) error
- func (m *MockBlockHandler) HandleWrite(txMetadata api.TxMetadata, namespace string, kvWrite *kvrwset.KVWrite) error
- func (m *MockBlockHandler) NumBlocks() int
- func (m *MockBlockHandler) NumCCEvents() int
- func (m *MockBlockHandler) NumCCUpgradeEvents() int
- func (m *MockBlockHandler) NumCollHashReads() int
- func (m *MockBlockHandler) NumCollHashWrites() int
- func (m *MockBlockHandler) NumConfigUpdates() int
- func (m *MockBlockHandler) NumLSCCWrites() int
- func (m *MockBlockHandler) NumReads() int
- func (m *MockBlockHandler) NumWrites() int
- func (m *MockBlockHandler) WithError(err error) *MockBlockHandler
- type MockBlockPublisher
- func (m *MockBlockPublisher) AddBlockHandler(handler gossipapi.PublishedBlockHandler)
- func (m *MockBlockPublisher) AddCCEventHandler(handler gossipapi.ChaincodeEventHandler)
- func (m *MockBlockPublisher) AddCCUpgradeHandler(handler gossipapi.ChaincodeUpgradeHandler)
- func (m *MockBlockPublisher) AddCollHashReadHandler(handler gossipapi.CollHashReadHandler)
- func (m *MockBlockPublisher) AddCollHashWriteHandler(handler gossipapi.CollHashWriteHandler)
- func (m *MockBlockPublisher) AddConfigUpdateHandler(handler gossipapi.ConfigUpdateHandler)
- func (m *MockBlockPublisher) AddLSCCWriteHandler(handler gossipapi.LSCCWriteHandler)
- func (m *MockBlockPublisher) AddReadHandler(handler gossipapi.ReadHandler)
- func (m *MockBlockPublisher) AddWriteHandler(handler gossipapi.WriteHandler)
- func (m *MockBlockPublisher) LedgerHeight() uint64
- func (m *MockBlockPublisher) Publish(_ *common.Block, _ ledger.TxPvtDataMap)
- type MockBlockPublisherProvider
- type MockGossipAdapter
- func (m *MockGossipAdapter) Accept(acceptor common.MessageAcceptor, passThrough bool) (<-chan *gossipproto.GossipMessage, <-chan protoext.ReceivedMessage)
- func (m *MockGossipAdapter) DistributePrivateData(chainID string, txID string, ...) error
- func (m *MockGossipAdapter) Gossip(msg *gossipproto.GossipMessage)
- func (m *MockGossipAdapter) IdentityInfo() gossipapi.PeerIdentitySet
- func (m *MockGossipAdapter) IsInMyOrg(member discovery.NetworkMember) bool
- func (m *MockGossipAdapter) Member(mspID string, member discovery.NetworkMember) *MockGossipAdapter
- func (m *MockGossipAdapter) MemberWithNoPKIID(mspID string, member discovery.NetworkMember) *MockGossipAdapter
- func (m *MockGossipAdapter) MessageHandler(handler MessageHandler) *MockGossipAdapter
- func (m *MockGossipAdapter) Peers() []discovery.NetworkMember
- func (m *MockGossipAdapter) PeersOfChannel(common.ChannelID) []discovery.NetworkMember
- func (m *MockGossipAdapter) Self(mspID string, self discovery.NetworkMember) *MockGossipAdapter
- func (m *MockGossipAdapter) SelfChannelInfo(common.ChannelID) *protoext.SignedGossipMessage
- func (m *MockGossipAdapter) SelfMembershipInfo() discovery.NetworkMember
- func (m *MockGossipAdapter) Send(msg *gossipproto.GossipMessage, peers ...*comm.RemotePeer)
- func (m *MockGossipAdapter) SendByCriteria(*protoext.SignedGossipMessage, gossip.SendCriteria) error
- type MockReceivedMessage
- func (m *MockReceivedMessage) Ack(err error)
- func (m *MockReceivedMessage) GetConnectionInfo() *protoext.ConnectionInfo
- func (m *MockReceivedMessage) GetGossipMessage() *protoext.SignedGossipMessage
- func (m *MockReceivedMessage) GetSourceEnvelope() *gproto.Envelope
- func (m *MockReceivedMessage) Respond(msg *gproto.GossipMessage)
- type MockSupport
- func (s *MockSupport) BlockPublisher(channelID string) gossipapi.BlockPublisher
- func (s *MockSupport) CollectionConfig(collConfig *pb.StaticCollectionConfig) *MockSupport
- func (s *MockSupport) CollectionPolicy(collPolicy privdata.CollectionAccessPolicy) *MockSupport
- func (s *MockSupport) Config(channelID, ns, coll string) (*pb.StaticCollectionConfig, error)
- func (s *MockSupport) Policy(channelID, ns, coll string) (privdata.CollectionAccessPolicy, error)
- type NamespaceBuilder
- func (b *NamespaceBuilder) BuildCollectionConfig() *peer.CollectionConfigPackage
- func (b *NamespaceBuilder) BuildCollectionHashedRWSets() []*rwset.CollectionHashedReadWriteSet
- func (b *NamespaceBuilder) BuildNSReadWriteSets() []byte
- func (b *NamespaceBuilder) BuildReadWriteSets() []*rwset.CollectionPvtReadWriteSet
- func (b *NamespaceBuilder) Collection(name string) *CollectionBuilder
- func (b *NamespaceBuilder) Delete(key string) *NamespaceBuilder
- func (b *NamespaceBuilder) Read(key string, blockNum uint64, txIdx uint64) *NamespaceBuilder
- func (b *NamespaceBuilder) WithMarshalError() *NamespaceBuilder
- func (b *NamespaceBuilder) Write(key string, value []byte) *NamespaceBuilder
- type NamespaceRWSetBuilder
- func (b *NamespaceRWSetBuilder) Build() *rwsetutil.NsRwSet
- func (b *NamespaceRWSetBuilder) Collection(coll string) *CollHashedRWSetBuilder
- func (b *NamespaceRWSetBuilder) Delete(key string) *NamespaceRWSetBuilder
- func (b *NamespaceRWSetBuilder) Read(key string, version *kvrwset.Version) *NamespaceRWSetBuilder
- func (b *NamespaceRWSetBuilder) Write(key string, value []byte) *NamespaceRWSetBuilder
- type PeerConfig
- func (fake *PeerConfig) Invocations() map[string][][]interface{}
- func (fake *PeerConfig) MSPConfigPath() string
- func (fake *PeerConfig) MSPConfigPathCallCount() int
- func (fake *PeerConfig) MSPConfigPathReturns(result1 string)
- func (fake *PeerConfig) MSPConfigPathReturnsOnCall(i int, result1 string)
- func (fake *PeerConfig) MSPID() string
- func (fake *PeerConfig) MSPIDCallCount() int
- func (fake *PeerConfig) MSPIDReturns(result1 string)
- func (fake *PeerConfig) MSPIDReturnsOnCall(i int, result1 string)
- func (fake *PeerConfig) PeerAddress() string
- func (fake *PeerConfig) PeerAddressCallCount() int
- func (fake *PeerConfig) PeerAddressReturns(result1 string)
- func (fake *PeerConfig) PeerAddressReturnsOnCall(i int, result1 string)
- func (fake *PeerConfig) PeerID() string
- func (fake *PeerConfig) PeerIDCallCount() int
- func (fake *PeerConfig) PeerIDReturns(result1 string)
- func (fake *PeerConfig) PeerIDReturnsOnCall(i int, result1 string)
- func (fake *PeerConfig) TLSCertPath() string
- func (fake *PeerConfig) TLSCertPathCallCount() int
- func (fake *PeerConfig) TLSCertPathReturns(result1 string)
- func (fake *PeerConfig) TLSCertPathReturnsOnCall(i int, result1 string)
- type PvtReadWriteSetBuilder
- func (b *PvtReadWriteSetBuilder) Build() *transientstore.TxPvtReadWriteSetWithConfigInfo
- func (b *PvtReadWriteSetBuilder) BuildCollectionConfigs() map[string]*peer.CollectionConfigPackage
- func (b *PvtReadWriteSetBuilder) BuildReadWriteSet() *rwset.TxPvtReadWriteSet
- func (b *PvtReadWriteSetBuilder) Namespace(name string) *NamespaceBuilder
- type QueryExecutor
- func (m *QueryExecutor) Done()
- func (m *QueryExecutor) ExecuteQuery(namespace, query string) (commonledger.ResultsIterator, error)
- func (m *QueryExecutor) ExecuteQueryOnPrivateData(namespace, collection, query string) (commonledger.ResultsIterator, error)
- func (m *QueryExecutor) ExecuteQueryWithMetadata(namespace, query string, metadata map[string]interface{}) (ledger.QueryResultsIterator, error)
- func (m *QueryExecutor) ExecuteQueryWithPagination(namespace, query, bookmark string, pageSize int32) (ledger.QueryResultsIterator, error)
- func (m *QueryExecutor) GetPrivateData(namespace, collection, key string) ([]byte, error)
- func (m *QueryExecutor) GetPrivateDataHash(namespace, collection, key string) ([]byte, error)
- func (m *QueryExecutor) GetPrivateDataMetadata(namespace, collection, key string) (map[string][]byte, error)
- func (m *QueryExecutor) GetPrivateDataMetadataByHash(namespace, collection string, keyhash []byte) (map[string][]byte, error)
- func (m *QueryExecutor) GetPrivateDataMultipleKeys(namespace, collection string, keys []string) ([][]byte, error)
- func (m *QueryExecutor) GetPrivateDataRangeScanIterator(namespace, collection, startKey, endKey string) (commonledger.ResultsIterator, error)
- func (m *QueryExecutor) GetState(namespace string, key string) ([]byte, error)
- func (m *QueryExecutor) GetStateMetadata(namespace, key string) (map[string][]byte, error)
- func (m *QueryExecutor) GetStateMultipleKeys(namespace string, keys []string) ([][]byte, error)
- func (m *QueryExecutor) GetStateRangeScanIterator(namespace string, startKey string, endKey string) (commonledger.ResultsIterator, error)
- func (m *QueryExecutor) GetStateRangeScanIteratorWithMetadata(namespace string, startKey, endKey string, metadata map[string]interface{}) (ledger.QueryResultsIterator, error)
- func (m *QueryExecutor) GetStateRangeScanIteratorWithPagination(namespace string, startKey, endKey string, pageSize int32) (ledger.QueryResultsIterator, error)
- func (m *QueryExecutor) WithDeletedPrivateState(ns, collection, key string) *QueryExecutor
- func (m *QueryExecutor) WithDeletedState(ns, key string) *QueryExecutor
- func (m *QueryExecutor) WithError(err error) *QueryExecutor
- func (m *QueryExecutor) WithIteratorProvider(p func() *ResultsIterator) *QueryExecutor
- func (m *QueryExecutor) WithPrivateQueryResults(ns, coll, query string, results []*queryresult.KV) *QueryExecutor
- func (m *QueryExecutor) WithPrivateState(ns, collection, key string, value []byte) *QueryExecutor
- func (m *QueryExecutor) WithQueryError(err error) *QueryExecutor
- func (m *QueryExecutor) WithQueryResults(ns, query string, results []*queryresult.KV) *QueryExecutor
- func (m *QueryExecutor) WithState(ns, key string, value []byte) *QueryExecutor
- type QueryExecutorProvider
- type ReadWriteSetBuilder
- type ResultsIterator
- type SigningIdentity
- func (fake *SigningIdentity) Anonymous() bool
- func (fake *SigningIdentity) AnonymousCallCount() int
- func (fake *SigningIdentity) AnonymousReturns(result1 bool)
- func (fake *SigningIdentity) AnonymousReturnsOnCall(i int, result1 bool)
- func (fake *SigningIdentity) ExpiresAt() time.Time
- func (fake *SigningIdentity) ExpiresAtCallCount() int
- func (fake *SigningIdentity) ExpiresAtReturns(result1 time.Time)
- func (fake *SigningIdentity) ExpiresAtReturnsOnCall(i int, result1 time.Time)
- func (fake *SigningIdentity) GetIdentifier() *msp.IdentityIdentifier
- func (fake *SigningIdentity) GetIdentifierCallCount() int
- func (fake *SigningIdentity) GetIdentifierReturns(result1 *msp.IdentityIdentifier)
- func (fake *SigningIdentity) GetIdentifierReturnsOnCall(i int, result1 *msp.IdentityIdentifier)
- func (fake *SigningIdentity) GetMSPIdentifier() string
- func (fake *SigningIdentity) GetMSPIdentifierCallCount() int
- func (fake *SigningIdentity) GetMSPIdentifierReturns(result1 string)
- func (fake *SigningIdentity) GetMSPIdentifierReturnsOnCall(i int, result1 string)
- func (fake *SigningIdentity) GetOrganizationalUnits() []*msp.OUIdentifier
- func (fake *SigningIdentity) GetOrganizationalUnitsCallCount() int
- func (fake *SigningIdentity) GetOrganizationalUnitsReturns(result1 []*msp.OUIdentifier)
- func (fake *SigningIdentity) GetOrganizationalUnitsReturnsOnCall(i int, result1 []*msp.OUIdentifier)
- func (fake *SigningIdentity) GetPublicVersion() msp.Identity
- func (fake *SigningIdentity) GetPublicVersionCallCount() int
- func (fake *SigningIdentity) GetPublicVersionReturns(result1 msp.Identity)
- func (fake *SigningIdentity) GetPublicVersionReturnsOnCall(i int, result1 msp.Identity)
- func (fake *SigningIdentity) Invocations() map[string][][]interface{}
- func (fake *SigningIdentity) SatisfiesPrincipal(principal *mspfabric_protos.MSPPrincipal) error
- func (fake *SigningIdentity) SatisfiesPrincipalArgsForCall(i int) *mspfabric_protos.MSPPrincipal
- func (fake *SigningIdentity) SatisfiesPrincipalCallCount() int
- func (fake *SigningIdentity) SatisfiesPrincipalReturns(result1 error)
- func (fake *SigningIdentity) SatisfiesPrincipalReturnsOnCall(i int, result1 error)
- func (fake *SigningIdentity) Serialize() ([]byte, error)
- func (fake *SigningIdentity) SerializeCallCount() int
- func (fake *SigningIdentity) SerializeReturns(result1 []byte, result2 error)
- func (fake *SigningIdentity) SerializeReturnsOnCall(i int, result1 []byte, result2 error)
- func (fake *SigningIdentity) Sign(msg []byte) ([]byte, error)
- func (fake *SigningIdentity) SignArgsForCall(i int) []byte
- func (fake *SigningIdentity) SignCallCount() int
- func (fake *SigningIdentity) SignReturns(result1 []byte, result2 error)
- func (fake *SigningIdentity) SignReturnsOnCall(i int, result1 []byte, result2 error)
- func (fake *SigningIdentity) Validate() error
- func (fake *SigningIdentity) ValidateCallCount() int
- func (fake *SigningIdentity) ValidateReturns(result1 error)
- func (fake *SigningIdentity) ValidateReturnsOnCall(i int, result1 error)
- func (fake *SigningIdentity) Verify(msg []byte, sig []byte) error
- func (fake *SigningIdentity) VerifyArgsForCall(i int) ([]byte, []byte)
- func (fake *SigningIdentity) VerifyCallCount() int
- func (fake *SigningIdentity) VerifyReturns(result1 error)
- func (fake *SigningIdentity) VerifyReturnsOnCall(i int, result1 error)
- type StateDB
- func (fake *StateDB) BytesKeySupported() bool
- func (fake *StateDB) BytesKeySupportedCallCount() int
- func (fake *StateDB) BytesKeySupportedReturns(result1 bool)
- func (fake *StateDB) BytesKeySupportedReturnsOnCall(i int, result1 bool)
- func (fake *StateDB) ExecuteQuery(namespace string, query string) (statedbtxmgmt.ResultsIterator, error)
- func (fake *StateDB) ExecuteQueryArgsForCall(i int) (string, string)
- func (fake *StateDB) ExecuteQueryCallCount() int
- func (fake *StateDB) ExecuteQueryReturns(result1 statedbtxmgmt.ResultsIterator, result2 error)
- func (fake *StateDB) ExecuteQueryReturnsOnCall(i int, result1 statedbtxmgmt.ResultsIterator, result2 error)
- func (fake *StateDB) ExecuteQueryWithPagination(namespace string, query string, bookmark string, pageSize int32) (statedbtxmgmt.QueryResultsIterator, error)
- func (fake *StateDB) ExecuteQueryWithPaginationArgsForCall(i int) (string, string, string, int32)
- func (fake *StateDB) ExecuteQueryWithPaginationCallCount() int
- func (fake *StateDB) ExecuteQueryWithPaginationReturns(result1 statedbtxmgmt.QueryResultsIterator, result2 error)
- func (fake *StateDB) ExecuteQueryWithPaginationReturnsOnCall(i int, result1 statedbtxmgmt.QueryResultsIterator, result2 error)
- func (fake *StateDB) GetState(namespace string, key string) ([]byte, error)
- func (fake *StateDB) GetStateArgsForCall(i int) (string, string)
- func (fake *StateDB) GetStateCallCount() int
- func (fake *StateDB) GetStateMultipleKeys(namespace string, keys []string) ([][]byte, error)
- func (fake *StateDB) GetStateMultipleKeysArgsForCall(i int) (string, []string)
- func (fake *StateDB) GetStateMultipleKeysCallCount() int
- func (fake *StateDB) GetStateMultipleKeysReturns(result1 [][]byte, result2 error)
- func (fake *StateDB) GetStateMultipleKeysReturnsOnCall(i int, result1 [][]byte, result2 error)
- func (fake *StateDB) GetStateRangeScanIterator(namespace string, startKey string, endKey string) (statedbtxmgmt.ResultsIterator, error)
- func (fake *StateDB) GetStateRangeScanIteratorArgsForCall(i int) (string, string, string)
- func (fake *StateDB) GetStateRangeScanIteratorCallCount() int
- func (fake *StateDB) GetStateRangeScanIteratorReturns(result1 statedbtxmgmt.ResultsIterator, result2 error)
- func (fake *StateDB) GetStateRangeScanIteratorReturnsOnCall(i int, result1 statedbtxmgmt.ResultsIterator, result2 error)
- func (fake *StateDB) GetStateRangeScanIteratorWithPagination(namespace string, startKey string, endKey string, pageSize int32) (statedbtxmgmt.QueryResultsIterator, error)
- func (fake *StateDB) GetStateRangeScanIteratorWithPaginationArgsForCall(i int) (string, string, string, int32)
- func (fake *StateDB) GetStateRangeScanIteratorWithPaginationCallCount() int
- func (fake *StateDB) GetStateRangeScanIteratorWithPaginationReturns(result1 statedbtxmgmt.QueryResultsIterator, result2 error)
- func (fake *StateDB) GetStateRangeScanIteratorWithPaginationReturnsOnCall(i int, result1 statedbtxmgmt.QueryResultsIterator, result2 error)
- func (fake *StateDB) GetStateReturns(result1 []byte, result2 error)
- func (fake *StateDB) GetStateReturnsOnCall(i int, result1 []byte, result2 error)
- func (fake *StateDB) Invocations() map[string][][]interface{}
- func (fake *StateDB) UpdateCache(blockNum uint64, updates []byte) error
- func (fake *StateDB) UpdateCacheArgsForCall(i int) (uint64, []byte)
- func (fake *StateDB) UpdateCacheCallCount() int
- func (fake *StateDB) UpdateCacheReturns(result1 error)
- func (fake *StateDB) UpdateCacheReturnsOnCall(i int, result1 error)
- type StoreProvider
- func (fake *StoreProvider) Invocations() map[string][][]interface{}
- func (fake *StoreProvider) StoreForChannel(channelID string) storeapi.Store
- func (fake *StoreProvider) StoreForChannelArgsForCall(i int) string
- func (fake *StoreProvider) StoreForChannelCallCount() int
- func (fake *StoreProvider) StoreForChannelReturns(result1 storeapi.Store)
- func (fake *StoreProvider) StoreForChannelReturnsOnCall(i int, result1 storeapi.Store)
- type TxBuilder
- type TxSimulator
- func (fake *TxSimulator) DeletePrivateData(namespace string, collection string, key string) error
- func (fake *TxSimulator) DeletePrivateDataArgsForCall(i int) (string, string, string)
- func (fake *TxSimulator) DeletePrivateDataCallCount() int
- func (fake *TxSimulator) DeletePrivateDataMetadata(namespace string, collection string, key string) error
- func (fake *TxSimulator) DeletePrivateDataMetadataArgsForCall(i int) (string, string, string)
- func (fake *TxSimulator) DeletePrivateDataMetadataCallCount() int
- func (fake *TxSimulator) DeletePrivateDataMetadataReturns(result1 error)
- func (fake *TxSimulator) DeletePrivateDataMetadataReturnsOnCall(i int, result1 error)
- func (fake *TxSimulator) DeletePrivateDataReturns(result1 error)
- func (fake *TxSimulator) DeletePrivateDataReturnsOnCall(i int, result1 error)
- func (fake *TxSimulator) DeleteState(namespace string, key string) error
- func (fake *TxSimulator) DeleteStateArgsForCall(i int) (string, string)
- func (fake *TxSimulator) DeleteStateCallCount() int
- func (fake *TxSimulator) DeleteStateMetadata(namespace string, key string) error
- func (fake *TxSimulator) DeleteStateMetadataArgsForCall(i int) (string, string)
- func (fake *TxSimulator) DeleteStateMetadataCallCount() int
- func (fake *TxSimulator) DeleteStateMetadataReturns(result1 error)
- func (fake *TxSimulator) DeleteStateMetadataReturnsOnCall(i int, result1 error)
- func (fake *TxSimulator) DeleteStateReturns(result1 error)
- func (fake *TxSimulator) DeleteStateReturnsOnCall(i int, result1 error)
- func (fake *TxSimulator) Done()
- func (fake *TxSimulator) DoneCallCount() int
- func (fake *TxSimulator) ExecuteQuery(namespace string, query string) (commonledger.ResultsIterator, error)
- func (fake *TxSimulator) ExecuteQueryArgsForCall(i int) (string, string)
- func (fake *TxSimulator) ExecuteQueryCallCount() int
- func (fake *TxSimulator) ExecuteQueryOnPrivateData(namespace string, collection string, query string) (commonledger.ResultsIterator, error)
- func (fake *TxSimulator) ExecuteQueryOnPrivateDataArgsForCall(i int) (string, string, string)
- func (fake *TxSimulator) ExecuteQueryOnPrivateDataCallCount() int
- func (fake *TxSimulator) ExecuteQueryOnPrivateDataReturns(result1 commonledger.ResultsIterator, result2 error)
- func (fake *TxSimulator) ExecuteQueryOnPrivateDataReturnsOnCall(i int, result1 commonledger.ResultsIterator, result2 error)
- func (fake *TxSimulator) ExecuteQueryReturns(result1 commonledger.ResultsIterator, result2 error)
- func (fake *TxSimulator) ExecuteQueryReturnsOnCall(i int, result1 commonledger.ResultsIterator, result2 error)
- func (fake *TxSimulator) ExecuteQueryWithPagination(namespace string, query string, bookmark string, pageSize int32) (ledger.QueryResultsIterator, error)
- func (fake *TxSimulator) ExecuteQueryWithPaginationArgsForCall(i int) (string, string, string, int32)
- func (fake *TxSimulator) ExecuteQueryWithPaginationCallCount() int
- func (fake *TxSimulator) ExecuteQueryWithPaginationReturns(result1 ledger.QueryResultsIterator, result2 error)
- func (fake *TxSimulator) ExecuteQueryWithPaginationReturnsOnCall(i int, result1 ledger.QueryResultsIterator, result2 error)
- func (fake *TxSimulator) ExecuteUpdate(query string) error
- func (fake *TxSimulator) ExecuteUpdateArgsForCall(i int) string
- func (fake *TxSimulator) ExecuteUpdateCallCount() int
- func (fake *TxSimulator) ExecuteUpdateReturns(result1 error)
- func (fake *TxSimulator) ExecuteUpdateReturnsOnCall(i int, result1 error)
- func (fake *TxSimulator) GetPrivateData(namespace string, collection string, key string) ([]byte, error)
- func (fake *TxSimulator) GetPrivateDataArgsForCall(i int) (string, string, string)
- func (fake *TxSimulator) GetPrivateDataCallCount() int
- func (fake *TxSimulator) GetPrivateDataHash(namespace string, collection string, key string) ([]byte, error)
- func (fake *TxSimulator) GetPrivateDataHashArgsForCall(i int) (string, string, string)
- func (fake *TxSimulator) GetPrivateDataHashCallCount() int
- func (fake *TxSimulator) GetPrivateDataHashReturns(result1 []byte, result2 error)
- func (fake *TxSimulator) GetPrivateDataHashReturnsOnCall(i int, result1 []byte, result2 error)
- func (fake *TxSimulator) GetPrivateDataMetadata(namespace string, collection string, key string) (map[string][]byte, error)
- func (fake *TxSimulator) GetPrivateDataMetadataArgsForCall(i int) (string, string, string)
- func (fake *TxSimulator) GetPrivateDataMetadataByHash(namespace string, collection string, keyhash []byte) (map[string][]byte, error)
- func (fake *TxSimulator) GetPrivateDataMetadataByHashArgsForCall(i int) (string, string, []byte)
- func (fake *TxSimulator) GetPrivateDataMetadataByHashCallCount() int
- func (fake *TxSimulator) GetPrivateDataMetadataByHashReturns(result1 map[string][]byte, result2 error)
- func (fake *TxSimulator) GetPrivateDataMetadataByHashReturnsOnCall(i int, result1 map[string][]byte, result2 error)
- func (fake *TxSimulator) GetPrivateDataMetadataCallCount() int
- func (fake *TxSimulator) GetPrivateDataMetadataReturns(result1 map[string][]byte, result2 error)
- func (fake *TxSimulator) GetPrivateDataMetadataReturnsOnCall(i int, result1 map[string][]byte, result2 error)
- func (fake *TxSimulator) GetPrivateDataMultipleKeys(namespace string, collection string, keys []string) ([][]byte, error)
- func (fake *TxSimulator) GetPrivateDataMultipleKeysArgsForCall(i int) (string, string, []string)
- func (fake *TxSimulator) GetPrivateDataMultipleKeysCallCount() int
- func (fake *TxSimulator) GetPrivateDataMultipleKeysReturns(result1 [][]byte, result2 error)
- func (fake *TxSimulator) GetPrivateDataMultipleKeysReturnsOnCall(i int, result1 [][]byte, result2 error)
- func (fake *TxSimulator) GetPrivateDataRangeScanIterator(namespace string, collection string, startKey string, endKey string) (commonledger.ResultsIterator, error)
- func (fake *TxSimulator) GetPrivateDataRangeScanIteratorArgsForCall(i int) (string, string, string, string)
- func (fake *TxSimulator) GetPrivateDataRangeScanIteratorCallCount() int
- func (fake *TxSimulator) GetPrivateDataRangeScanIteratorReturns(result1 commonledger.ResultsIterator, result2 error)
- func (fake *TxSimulator) GetPrivateDataRangeScanIteratorReturnsOnCall(i int, result1 commonledger.ResultsIterator, result2 error)
- func (fake *TxSimulator) GetPrivateDataReturns(result1 []byte, result2 error)
- func (fake *TxSimulator) GetPrivateDataReturnsOnCall(i int, result1 []byte, result2 error)
- func (fake *TxSimulator) GetState(namespace string, key string) ([]byte, error)
- func (fake *TxSimulator) GetStateArgsForCall(i int) (string, string)
- func (fake *TxSimulator) GetStateCallCount() int
- func (fake *TxSimulator) GetStateMetadata(namespace string, key string) (map[string][]byte, error)
- func (fake *TxSimulator) GetStateMetadataArgsForCall(i int) (string, string)
- func (fake *TxSimulator) GetStateMetadataCallCount() int
- func (fake *TxSimulator) GetStateMetadataReturns(result1 map[string][]byte, result2 error)
- func (fake *TxSimulator) GetStateMetadataReturnsOnCall(i int, result1 map[string][]byte, result2 error)
- func (fake *TxSimulator) GetStateMultipleKeys(namespace string, keys []string) ([][]byte, error)
- func (fake *TxSimulator) GetStateMultipleKeysArgsForCall(i int) (string, []string)
- func (fake *TxSimulator) GetStateMultipleKeysCallCount() int
- func (fake *TxSimulator) GetStateMultipleKeysReturns(result1 [][]byte, result2 error)
- func (fake *TxSimulator) GetStateMultipleKeysReturnsOnCall(i int, result1 [][]byte, result2 error)
- func (fake *TxSimulator) GetStateRangeScanIterator(namespace string, startKey string, endKey string) (commonledger.ResultsIterator, error)
- func (fake *TxSimulator) GetStateRangeScanIteratorArgsForCall(i int) (string, string, string)
- func (fake *TxSimulator) GetStateRangeScanIteratorCallCount() int
- func (fake *TxSimulator) GetStateRangeScanIteratorReturns(result1 commonledger.ResultsIterator, result2 error)
- func (fake *TxSimulator) GetStateRangeScanIteratorReturnsOnCall(i int, result1 commonledger.ResultsIterator, result2 error)
- func (fake *TxSimulator) GetStateRangeScanIteratorWithPagination(namespace string, startKey string, endKey string, pageSize int32) (ledger.QueryResultsIterator, error)
- func (fake *TxSimulator) GetStateRangeScanIteratorWithPaginationArgsForCall(i int) (string, string, string, int32)
- func (fake *TxSimulator) GetStateRangeScanIteratorWithPaginationCallCount() int
- func (fake *TxSimulator) GetStateRangeScanIteratorWithPaginationReturns(result1 ledger.QueryResultsIterator, result2 error)
- func (fake *TxSimulator) GetStateRangeScanIteratorWithPaginationReturnsOnCall(i int, result1 ledger.QueryResultsIterator, result2 error)
- func (fake *TxSimulator) GetStateReturns(result1 []byte, result2 error)
- func (fake *TxSimulator) GetStateReturnsOnCall(i int, result1 []byte, result2 error)
- func (fake *TxSimulator) GetTxSimulationResults() (*ledger.TxSimulationResults, error)
- func (fake *TxSimulator) GetTxSimulationResultsCallCount() int
- func (fake *TxSimulator) GetTxSimulationResultsReturns(result1 *ledger.TxSimulationResults, result2 error)
- func (fake *TxSimulator) GetTxSimulationResultsReturnsOnCall(i int, result1 *ledger.TxSimulationResults, result2 error)
- func (fake *TxSimulator) Invocations() map[string][][]interface{}
- func (fake *TxSimulator) SetPrivateData(namespace string, collection string, key string, value []byte) error
- func (fake *TxSimulator) SetPrivateDataArgsForCall(i int) (string, string, string, []byte)
- func (fake *TxSimulator) SetPrivateDataCallCount() int
- func (fake *TxSimulator) SetPrivateDataMetadata(namespace string, collection string, key string, metadata map[string][]byte) error
- func (fake *TxSimulator) SetPrivateDataMetadataArgsForCall(i int) (string, string, string, map[string][]byte)
- func (fake *TxSimulator) SetPrivateDataMetadataCallCount() int
- func (fake *TxSimulator) SetPrivateDataMetadataReturns(result1 error)
- func (fake *TxSimulator) SetPrivateDataMetadataReturnsOnCall(i int, result1 error)
- func (fake *TxSimulator) SetPrivateDataMultipleKeys(namespace string, collection string, kvs map[string][]byte) error
- func (fake *TxSimulator) SetPrivateDataMultipleKeysArgsForCall(i int) (string, string, map[string][]byte)
- func (fake *TxSimulator) SetPrivateDataMultipleKeysCallCount() int
- func (fake *TxSimulator) SetPrivateDataMultipleKeysReturns(result1 error)
- func (fake *TxSimulator) SetPrivateDataMultipleKeysReturnsOnCall(i int, result1 error)
- func (fake *TxSimulator) SetPrivateDataReturns(result1 error)
- func (fake *TxSimulator) SetPrivateDataReturnsOnCall(i int, result1 error)
- func (fake *TxSimulator) SetState(namespace string, key string, value []byte) error
- func (fake *TxSimulator) SetStateArgsForCall(i int) (string, string, []byte)
- func (fake *TxSimulator) SetStateCallCount() int
- func (fake *TxSimulator) SetStateMetadata(namespace string, key string, metadata map[string][]byte) error
- func (fake *TxSimulator) SetStateMetadataArgsForCall(i int) (string, string, map[string][]byte)
- func (fake *TxSimulator) SetStateMetadataCallCount() int
- func (fake *TxSimulator) SetStateMetadataReturns(result1 error)
- func (fake *TxSimulator) SetStateMetadataReturnsOnCall(i int, result1 error)
- func (fake *TxSimulator) SetStateMultipleKeys(namespace string, kvs map[string][]byte) error
- func (fake *TxSimulator) SetStateMultipleKeysArgsForCall(i int) (string, map[string][]byte)
- func (fake *TxSimulator) SetStateMultipleKeysCallCount() int
- func (fake *TxSimulator) SetStateMultipleKeysReturns(result1 error)
- func (fake *TxSimulator) SetStateMultipleKeysReturnsOnCall(i int, result1 error)
- func (fake *TxSimulator) SetStateReturns(result1 error)
- func (fake *TxSimulator) SetStateReturnsOnCall(i int, result1 error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAppDataReqMsg ¶ added in v0.1.4
func NewAppDataReqMsg(channelID string, reqID uint64, dataType string, reqPayload []byte) *protoext.SignedGossipMessage
NewAppDataReqMsg returns a mock application data request message
func NewAppDataResMsg ¶ added in v0.1.4
func NewAppDataResMsg(channelID string, reqID uint64, response []byte) *protoext.SignedGossipMessage
NewAppDataResMsg returns a mock application data response message
func NewCollDataReqMsg ¶
func NewCollDataReqMsg(channelID string, reqID uint64, keys ...*store.Key) *protoext.SignedGossipMessage
NewCollDataReqMsg returns a mock collection data request message
func NewCollDataReqMsgWithDigests ¶ added in v0.1.1
func NewCollDataReqMsgWithDigests(channelID string, reqID uint64, digests ...*gproto.CollDataDigest) *protoext.SignedGossipMessage
NewCollDataReqMsgWithDigests returns a mock collection data request message
func NewCollDataResMsg ¶
func NewCollDataResMsg(channelID string, reqID uint64, keyVals ...*KeyVal) *protoext.SignedGossipMessage
NewCollDataResMsg returns a mock collection data response message
func NewDataMsg ¶
func NewDataMsg(channelID string) *protoext.SignedGossipMessage
NewDataMsg returns a mock data message
Types ¶
type ACLProvider ¶ added in v0.1.4
type ACLProvider struct { CheckACLStub func(resName string, channelID string, idinfo interface{}) error // contains filtered or unexported fields }
func (*ACLProvider) CheckACL ¶ added in v0.1.4
func (fake *ACLProvider) CheckACL(resName string, channelID string, idinfo interface{}) error
func (*ACLProvider) CheckACLArgsForCall ¶ added in v0.1.4
func (fake *ACLProvider) CheckACLArgsForCall(i int) (string, string, interface{})
func (*ACLProvider) CheckACLCallCount ¶ added in v0.1.4
func (fake *ACLProvider) CheckACLCallCount() int
func (*ACLProvider) CheckACLReturns ¶ added in v0.1.4
func (fake *ACLProvider) CheckACLReturns(result1 error)
func (*ACLProvider) CheckACLReturnsOnCall ¶ added in v0.1.4
func (fake *ACLProvider) CheckACLReturnsOnCall(i int, result1 error)
func (*ACLProvider) Invocations ¶ added in v0.1.4
func (fake *ACLProvider) Invocations() map[string][][]interface{}
type BlockBuilder ¶
type BlockBuilder struct {
// contains filtered or unexported fields
}
BlockBuilder builds a mock Block
func NewBlockBuilder ¶
func NewBlockBuilder(channelID string, blockNum uint64) *BlockBuilder
NewBlockBuilder returns a new mock BlockBuilder
func (*BlockBuilder) ConfigUpdate ¶
func (b *BlockBuilder) ConfigUpdate() *ConfigUpdateBuilder
ConfigUpdate adds a config update
func (*BlockBuilder) Transaction ¶
func (b *BlockBuilder) Transaction(txID string, validationCode pb.TxValidationCode) *TxBuilder
Transaction adds a new transaction
type ChaincodeActionBuilder ¶
type ChaincodeActionBuilder struct {
// contains filtered or unexported fields
}
ChaincodeActionBuilder builds a mock Chaincode Action
func NewChaincodeActionBuilder ¶
func NewChaincodeActionBuilder(ccID, txID string) *ChaincodeActionBuilder
NewChaincodeActionBuilder returns a new ChaincodeActionBuilder
func (*ChaincodeActionBuilder) Build ¶
func (b *ChaincodeActionBuilder) Build() []byte
Build builds the chaincode action
func (*ChaincodeActionBuilder) ChaincodeEvent ¶
func (b *ChaincodeActionBuilder) ChaincodeEvent(eventName string, payload []byte) *ChaincodeActionBuilder
ChaincodeEvent adds a chaincode event to the chaincode action
func (*ChaincodeActionBuilder) Collection ¶
func (b *ChaincodeActionBuilder) Collection(coll string) *CollHashedRWSetBuilder
Collection starts a new collection read/write set
func (*ChaincodeActionBuilder) Delete ¶
func (b *ChaincodeActionBuilder) Delete(key string) *ChaincodeActionBuilder
Delete adds a KV write (with delete=true) to the read/write set
func (*ChaincodeActionBuilder) Read ¶
func (b *ChaincodeActionBuilder) Read(key string, version *kvrwset.Version) *ChaincodeActionBuilder
Read adds a KV read to the read/write set
func (*ChaincodeActionBuilder) Response ¶
func (b *ChaincodeActionBuilder) Response(response *pb.Response) *ChaincodeActionBuilder
Response sets the chaincode response
func (*ChaincodeActionBuilder) Write ¶
func (b *ChaincodeActionBuilder) Write(key string, value []byte) *ChaincodeActionBuilder
Write adds a KV write to the read/write set
type ChaincodeInfoProvider ¶ added in v0.1.4
type ChaincodeInfoProvider struct {
// contains filtered or unexported fields
}
ChaincodeInfoProvider is a mock chaincode info provider
func NewChaincodeInfoProvider ¶ added in v0.1.4
func NewChaincodeInfoProvider() *ChaincodeInfoProvider
NewChaincodeInfoProvider returns a mock chaincode info provider
func (*ChaincodeInfoProvider) ChaincodeInfo ¶ added in v0.1.4
func (p *ChaincodeInfoProvider) ChaincodeInfo(channelName, chaincodeName string, qe ledger.SimpleQueryExecutor) (*ledger.DeployedChaincodeInfo, error)
ChaincodeInfo returns mock chaincode info
func (*ChaincodeInfoProvider) WithData ¶ added in v0.1.4
func (p *ChaincodeInfoProvider) WithData(ccName string, ccInfo *ledger.DeployedChaincodeInfo) *ChaincodeInfoProvider
WithData adds mock data for a given chaincode
func (*ChaincodeInfoProvider) WithError ¶ added in v0.1.4
func (p *ChaincodeInfoProvider) WithError(err error) *ChaincodeInfoProvider
WithError injects an error
type ChaincodeUpdateHandler ¶ added in v0.1.4
type ChaincodeUpdateHandler struct { HandleStateUpdatesStub func(trigger *ledger.StateUpdateTrigger) error // contains filtered or unexported fields }
func (*ChaincodeUpdateHandler) HandleStateUpdates ¶ added in v0.1.4
func (fake *ChaincodeUpdateHandler) HandleStateUpdates(trigger *ledger.StateUpdateTrigger) error
func (*ChaincodeUpdateHandler) HandleStateUpdatesArgsForCall ¶ added in v0.1.4
func (fake *ChaincodeUpdateHandler) HandleStateUpdatesArgsForCall(i int) *ledger.StateUpdateTrigger
func (*ChaincodeUpdateHandler) HandleStateUpdatesCallCount ¶ added in v0.1.4
func (fake *ChaincodeUpdateHandler) HandleStateUpdatesCallCount() int
func (*ChaincodeUpdateHandler) HandleStateUpdatesReturns ¶ added in v0.1.4
func (fake *ChaincodeUpdateHandler) HandleStateUpdatesReturns(result1 error)
func (*ChaincodeUpdateHandler) HandleStateUpdatesReturnsOnCall ¶ added in v0.1.4
func (fake *ChaincodeUpdateHandler) HandleStateUpdatesReturnsOnCall(i int, result1 error)
func (*ChaincodeUpdateHandler) Invocations ¶ added in v0.1.4
func (fake *ChaincodeUpdateHandler) Invocations() map[string][][]interface{}
type CollHashedRWSetBuilder ¶ added in v0.1.4
type CollHashedRWSetBuilder struct {
// contains filtered or unexported fields
}
CollHashedRWSetBuilder builds a mock read/write set for a given collection
func NewCollHashedRWSetBuilder ¶ added in v0.1.4
func NewCollHashedRWSetBuilder(coll string) *CollHashedRWSetBuilder
NewCollHashedRWSetBuilder returns a new collection hashed read/write set builder
func (*CollHashedRWSetBuilder) Build ¶ added in v0.1.4
func (b *CollHashedRWSetBuilder) Build() *rwsetutil.CollHashedRwSet
Build builds a namespace read/write set
func (*CollHashedRWSetBuilder) Delete ¶ added in v0.1.4
func (b *CollHashedRWSetBuilder) Delete(keyHash []byte) *CollHashedRWSetBuilder
Delete adds a KV hashed write (with delete=true) to the hashed read/write set
func (*CollHashedRWSetBuilder) HashedRead ¶ added in v0.1.4
func (b *CollHashedRWSetBuilder) HashedRead(keyHash []byte, version *kvrwset.Version) *CollHashedRWSetBuilder
HashedRead adds a KV hashed read to the hashed read/write set
func (*CollHashedRWSetBuilder) HashedWrite ¶ added in v0.1.4
func (b *CollHashedRWSetBuilder) HashedWrite(keyHash, valueHash []byte) *CollHashedRWSetBuilder
HashedWrite adds a KV hashed write to the hashed read/write set
type CollectionBuilder ¶
type CollectionBuilder struct {
// contains filtered or unexported fields
}
CollectionBuilder is a utility that builds a CollectionConfig and private data read/write sets for unit testing
func NewPvtReadWriteSetCollectionBuilder ¶
func NewPvtReadWriteSetCollectionBuilder(name string) *CollectionBuilder
NewPvtReadWriteSetCollectionBuilder returns a new private read-write set collection builder
func (*CollectionBuilder) Build ¶
func (c *CollectionBuilder) Build() *rwset.CollectionPvtReadWriteSet
Build builds the collection private read-write set
func (*CollectionBuilder) BuildConfig ¶ added in v0.1.5
func (c *CollectionBuilder) BuildConfig() *peer.CollectionConfig
BuildConfig builds the collection configuration
func (*CollectionBuilder) DCASConfig ¶
func (c *CollectionBuilder) DCASConfig(policy string, requiredPeerCount, maximumPeerCount int32, ttl string) *CollectionBuilder
DCASConfig sets the DCAS collection config
func (*CollectionBuilder) Delete ¶
func (c *CollectionBuilder) Delete(key string) *CollectionBuilder
Delete adds a new write with 'IsDelete=true' to the collection
func (*CollectionBuilder) OffLedgerConfig ¶
func (c *CollectionBuilder) OffLedgerConfig(policy string, requiredPeerCount, maximumPeerCount int32, ttl string) *CollectionBuilder
OffLedgerConfig sets the off-ledger collection config
func (*CollectionBuilder) Read ¶
func (c *CollectionBuilder) Read(key string, blockNum uint64, txIdx uint64) *CollectionBuilder
Read adds a new read to the collection
func (*CollectionBuilder) StaticConfig ¶
func (c *CollectionBuilder) StaticConfig(policy string, requiredPeerCount, maximumPeerCount int32, btl uint64) *CollectionBuilder
StaticConfig sets the static collection config
func (*CollectionBuilder) TransientConfig ¶
func (c *CollectionBuilder) TransientConfig(policy string, requiredPeerCount, maximumPeerCount int32, ttl string) *CollectionBuilder
TransientConfig sets the transient collection config
func (*CollectionBuilder) WithMarshalError ¶
func (c *CollectionBuilder) WithMarshalError() *CollectionBuilder
WithMarshalError simulates a marshalling error
func (*CollectionBuilder) Write ¶
func (c *CollectionBuilder) Write(key string, value []byte) *CollectionBuilder
Write adds a new write to the collection
type CollectionConfigProvider ¶ added in v0.1.1
type CollectionConfigProvider struct { ForChannelStub func(channelID string) support.CollectionConfigRetriever // contains filtered or unexported fields }
func (*CollectionConfigProvider) ForChannel ¶ added in v0.1.1
func (fake *CollectionConfigProvider) ForChannel(channelID string) support.CollectionConfigRetriever
func (*CollectionConfigProvider) ForChannelArgsForCall ¶ added in v0.1.1
func (fake *CollectionConfigProvider) ForChannelArgsForCall(i int) string
func (*CollectionConfigProvider) ForChannelCallCount ¶ added in v0.1.1
func (fake *CollectionConfigProvider) ForChannelCallCount() int
func (*CollectionConfigProvider) ForChannelReturns ¶ added in v0.1.1
func (fake *CollectionConfigProvider) ForChannelReturns(result1 support.CollectionConfigRetriever)
func (*CollectionConfigProvider) ForChannelReturnsOnCall ¶ added in v0.1.1
func (fake *CollectionConfigProvider) ForChannelReturnsOnCall(i int, result1 support.CollectionConfigRetriever)
func (*CollectionConfigProvider) Invocations ¶ added in v0.1.1
func (fake *CollectionConfigProvider) Invocations() map[string][][]interface{}
type CollectionConfigRetriever ¶ added in v0.1.1
type CollectionConfigRetriever struct {
// contains filtered or unexported fields
}
CollectionConfigRetriever is a mock collection config retriever
func NewCollectionConfigRetriever ¶ added in v0.1.1
func NewCollectionConfigRetriever() *CollectionConfigRetriever
NewCollectionConfigRetriever returns a mock collection config retriever
func (*CollectionConfigRetriever) Config ¶ added in v0.1.1
func (s *CollectionConfigRetriever) Config(ns, coll string) (*pb.StaticCollectionConfig, error)
Config returns the collection config for the given collection
func (*CollectionConfigRetriever) Policy ¶ added in v0.1.1
func (s *CollectionConfigRetriever) Policy(ns, coll string) (privdata.CollectionAccessPolicy, error)
Policy returns the collection access policy for the given collection
func (*CollectionConfigRetriever) WithCollectionConfig ¶ added in v0.1.1
func (s *CollectionConfigRetriever) WithCollectionConfig(collConfig *pb.StaticCollectionConfig) *CollectionConfigRetriever
WithCollectionConfig sets the collection config for the given collection
func (*CollectionConfigRetriever) WithCollectionPolicy ¶ added in v0.1.1
func (s *CollectionConfigRetriever) WithCollectionPolicy(collPolicy privdata.CollectionAccessPolicy) *CollectionConfigRetriever
WithCollectionPolicy sets the collection access policy for the given collection
func (*CollectionConfigRetriever) WithError ¶ added in v0.1.1
func (s *CollectionConfigRetriever) WithError(err error) *CollectionConfigRetriever
WithError injects an error
type ConfigUpdateBuilder ¶
type ConfigUpdateBuilder struct {
// contains filtered or unexported fields
}
ConfigUpdateBuilder builds a mock config update envelope
func NewConfigUpdateBuilder ¶
func NewConfigUpdateBuilder(channelID string) *ConfigUpdateBuilder
NewConfigUpdateBuilder returns a new mock ConfigUpdateBuilder
func (*ConfigUpdateBuilder) Build ¶
func (b *ConfigUpdateBuilder) Build() []byte
Build builds a config update envelope
type DataProvider ¶
type DataProvider struct {
// contains filtered or unexported fields
}
DataProvider is a mock transient data provider
func NewDataProvider ¶
func NewDataProvider() *DataProvider
NewDataProvider returns a new Data Provider
func (*DataProvider) RetrieverForChannel ¶
func (p *DataProvider) RetrieverForChannel(channel string) storeapi.Retriever
RetrieverForChannel returns the retriever for the given channel
func (*DataProvider) WithData ¶
func (p *DataProvider) WithData(key *storeapi.Key, value *storeapi.ExpiringValue) *DataProvider
WithData sets the data to be returned by the retriever
func (*DataProvider) WithError ¶
func (p *DataProvider) WithError(err error) *DataProvider
WithError sets the error to be returned by the retriever
func (*DataProvider) WithQueryResults ¶
func (p *DataProvider) WithQueryResults(key *storeapi.QueryKey, results []*storeapi.QueryResult) *DataProvider
WithQueryResults sets the mock query results for the given query string
type DataStore ¶
type DataStore struct {
// contains filtered or unexported fields
}
DataStore implements a mock data store
func (*DataStore) GetDataMultipleKeys ¶
GetDataMultipleKeys gets the values for the multiple DCAS items in a single call
func (*DataStore) GetTransientData ¶
GetTransientData gets the value for the given transient data item
func (*DataStore) GetTransientDataMultipleKeys ¶
func (m *DataStore) GetTransientDataMultipleKeys(key *storeapi.MultiKey) (storeapi.ExpiringValues, error)
GetTransientDataMultipleKeys gets the values for the multiple transient data items in a single call
func (*DataStore) Persist ¶
func (m *DataStore) Persist(txid string, privateSimulationResultsWithConfig *proto.TxPvtReadWriteSetWithConfigInfo) error
Persist stores the private write set of a transaction along with the collection config in the transient store based on txid and the block height the private data was received at
func (*DataStore) PutData ¶
func (m *DataStore) PutData(config *pb.StaticCollectionConfig, key *storeapi.Key, value *storeapi.ExpiringValue) error
PutData stores the key/value
func (*DataStore) TransientData ¶
TransientData sets the transient data for the given key
func (*DataStore) WithQueryResults ¶ added in v0.1.1
func (m *DataStore) WithQueryResults(key *storeapi.QueryKey, results []*storeapi.QueryResult) *DataStore
WithQueryResults sets the mock query results for the given query string
func (*DataStore) WithResultsIteratorError ¶ added in v0.1.1
WithResultsIteratorError sets an error on the results iterator
type GossipProvider ¶ added in v0.1.1
type GossipProvider struct { GetGossipServiceStub func() gossipapi.GossipService // contains filtered or unexported fields }
func (*GossipProvider) GetGossipService ¶ added in v0.1.1
func (fake *GossipProvider) GetGossipService() gossipapi.GossipService
func (*GossipProvider) GetGossipServiceCallCount ¶ added in v0.1.1
func (fake *GossipProvider) GetGossipServiceCallCount() int
func (*GossipProvider) GetGossipServiceReturns ¶ added in v0.1.1
func (fake *GossipProvider) GetGossipServiceReturns(result1 gossipapi.GossipService)
func (*GossipProvider) GetGossipServiceReturnsOnCall ¶ added in v0.1.1
func (fake *GossipProvider) GetGossipServiceReturnsOnCall(i int, result1 gossipapi.GossipService)
func (*GossipProvider) Invocations ¶ added in v0.1.1
func (fake *GossipProvider) Invocations() map[string][][]interface{}
type IdentifierProvider ¶ added in v0.1.1
type IdentifierProvider struct { GetIdentifierStub func() (string, error) // contains filtered or unexported fields }
func (*IdentifierProvider) GetIdentifier ¶ added in v0.1.1
func (fake *IdentifierProvider) GetIdentifier() (string, error)
func (*IdentifierProvider) GetIdentifierCallCount ¶ added in v0.1.1
func (fake *IdentifierProvider) GetIdentifierCallCount() int
func (*IdentifierProvider) GetIdentifierReturns ¶ added in v0.1.1
func (fake *IdentifierProvider) GetIdentifierReturns(result1 string, result2 error)
func (*IdentifierProvider) GetIdentifierReturnsOnCall ¶ added in v0.1.1
func (fake *IdentifierProvider) GetIdentifierReturnsOnCall(i int, result1 string, result2 error)
func (*IdentifierProvider) Invocations ¶ added in v0.1.1
func (fake *IdentifierProvider) Invocations() map[string][][]interface{}
type IdentityDeserializer ¶ added in v0.1.1
type IdentityDeserializer struct { DeserializeIdentityStub func(serializedIdentity []byte) (msp.Identity, error) IsWellFormedStub func(identity *mspfabric_protos.SerializedIdentity) error // contains filtered or unexported fields }
func (*IdentityDeserializer) DeserializeIdentity ¶ added in v0.1.1
func (fake *IdentityDeserializer) DeserializeIdentity(serializedIdentity []byte) (msp.Identity, error)
func (*IdentityDeserializer) DeserializeIdentityArgsForCall ¶ added in v0.1.1
func (fake *IdentityDeserializer) DeserializeIdentityArgsForCall(i int) []byte
func (*IdentityDeserializer) DeserializeIdentityCallCount ¶ added in v0.1.1
func (fake *IdentityDeserializer) DeserializeIdentityCallCount() int
func (*IdentityDeserializer) DeserializeIdentityReturns ¶ added in v0.1.1
func (fake *IdentityDeserializer) DeserializeIdentityReturns(result1 msp.Identity, result2 error)
func (*IdentityDeserializer) DeserializeIdentityReturnsOnCall ¶ added in v0.1.1
func (fake *IdentityDeserializer) DeserializeIdentityReturnsOnCall(i int, result1 msp.Identity, result2 error)
func (*IdentityDeserializer) Invocations ¶ added in v0.1.1
func (fake *IdentityDeserializer) Invocations() map[string][][]interface{}
func (*IdentityDeserializer) IsWellFormed ¶ added in v0.1.1
func (fake *IdentityDeserializer) IsWellFormed(identity *mspfabric_protos.SerializedIdentity) error
func (*IdentityDeserializer) IsWellFormedArgsForCall ¶ added in v0.1.1
func (fake *IdentityDeserializer) IsWellFormedArgsForCall(i int) *mspfabric_protos.SerializedIdentity
func (*IdentityDeserializer) IsWellFormedCallCount ¶ added in v0.1.1
func (fake *IdentityDeserializer) IsWellFormedCallCount() int
func (*IdentityDeserializer) IsWellFormedReturns ¶ added in v0.1.1
func (fake *IdentityDeserializer) IsWellFormedReturns(result1 error)
func (*IdentityDeserializer) IsWellFormedReturnsOnCall ¶ added in v0.1.1
func (fake *IdentityDeserializer) IsWellFormedReturnsOnCall(i int, result1 error)
type IdentityDeserializerProvider ¶ added in v0.1.1
type IdentityDeserializerProvider struct { GetIdentityDeserializerStub func(channelID string) msp.IdentityDeserializer // contains filtered or unexported fields }
func (*IdentityDeserializerProvider) GetIdentityDeserializer ¶ added in v0.1.1
func (fake *IdentityDeserializerProvider) GetIdentityDeserializer(channelID string) msp.IdentityDeserializer
func (*IdentityDeserializerProvider) GetIdentityDeserializerArgsForCall ¶ added in v0.1.1
func (fake *IdentityDeserializerProvider) GetIdentityDeserializerArgsForCall(i int) string
func (*IdentityDeserializerProvider) GetIdentityDeserializerCallCount ¶ added in v0.1.1
func (fake *IdentityDeserializerProvider) GetIdentityDeserializerCallCount() int
func (*IdentityDeserializerProvider) GetIdentityDeserializerReturns ¶ added in v0.1.1
func (fake *IdentityDeserializerProvider) GetIdentityDeserializerReturns(result1 msp.IdentityDeserializer)
func (*IdentityDeserializerProvider) GetIdentityDeserializerReturnsOnCall ¶ added in v0.1.1
func (fake *IdentityDeserializerProvider) GetIdentityDeserializerReturnsOnCall(i int, result1 msp.IdentityDeserializer)
func (*IdentityDeserializerProvider) Invocations ¶ added in v0.1.1
func (fake *IdentityDeserializerProvider) Invocations() map[string][][]interface{}
type IdentityProvider ¶ added in v0.1.1
type IdentityProvider struct { GetDefaultSigningIdentityStub func() (msp.SigningIdentity, error) // contains filtered or unexported fields }
func (*IdentityProvider) GetDefaultSigningIdentity ¶ added in v0.1.1
func (fake *IdentityProvider) GetDefaultSigningIdentity() (msp.SigningIdentity, error)
func (*IdentityProvider) GetDefaultSigningIdentityCallCount ¶ added in v0.1.1
func (fake *IdentityProvider) GetDefaultSigningIdentityCallCount() int
func (*IdentityProvider) GetDefaultSigningIdentityReturns ¶ added in v0.1.1
func (fake *IdentityProvider) GetDefaultSigningIdentityReturns(result1 msp.SigningIdentity, result2 error)
func (*IdentityProvider) GetDefaultSigningIdentityReturnsOnCall ¶ added in v0.1.1
func (fake *IdentityProvider) GetDefaultSigningIdentityReturnsOnCall(i int, result1 msp.SigningIdentity, result2 error)
func (*IdentityProvider) Invocations ¶ added in v0.1.1
func (fake *IdentityProvider) Invocations() map[string][][]interface{}
type KVIterator ¶
type KVIterator struct {
// contains filtered or unexported fields
}
KVIterator is a mock key-value iterator
func NewKVIterator ¶
func NewKVIterator(kvs []*statedb.VersionedKV) *KVIterator
NewKVIterator returns a mock key-value iterator
func (*KVIterator) Close ¶
func (it *KVIterator) Close()
Close releases resources occupied by the iterator
func (*KVIterator) Next ¶
func (it *KVIterator) Next() (commonledger.QueryResult, error)
Next returns the next item in the result set. The `QueryResult` is expected to be nil when the iterator gets exhausted
func (*KVIterator) WithError ¶
func (it *KVIterator) WithError(err error) *KVIterator
WithError injects an error
type KeyVal ¶
type KeyVal struct { *store.Key *store.ExpiringValue }
KeyVal stores a key and a value
func NewKeyValue ¶
func NewKeyValue(key *store.Key, value *store.ExpiringValue) *KeyVal
NewKeyValue creates a new KeyVal
type Ledger ¶
type Ledger struct { QueryExecutor *QueryExecutor TxSimulator *TxSimulator BlockchainInfo *common.BlockchainInfo Error error BcInfoError error }
Ledger is a struct which is used to retrieve data using query
func (*Ledger) CheckpointBlock ¶
CheckpointBlock updates checkpoint info to given block
func (*Ledger) CommitLegacy ¶ added in v0.1.1
func (m *Ledger) CommitLegacy(blockAndPvtdata *ledger2.BlockAndPvtData, commitOpts *ledger2.CommitOptions) error
CommitLegacy commits the block and the corresponding pvt data in an atomic operation following the v14 validation/commit path
func (*Ledger) CommitPvtDataOfOldBlocks ¶
func (m *Ledger) CommitPvtDataOfOldBlocks(reconciledPvtdata []*ledger2.ReconciledPvtdata, unreconciled ledger2.MissingPvtDataInfo) ([]*ledger2.PvtdataHashMismatch, error)
CommitPvtDataOfOldBlocks commits the private data of old blocks
func (*Ledger) CommitWithPvtData ¶
func (m *Ledger) CommitWithPvtData(blockAndPvtdata *ledger2.BlockAndPvtData) error
CommitWithPvtData commits the private data
func (*Ledger) DoesPvtDataInfoExist ¶ added in v0.1.1
DoesPvtDataInfoExist returns true when (1) the ledger has pvtdata associated with the given block number (or) (2) a few or all pvtdata associated with the given block number is missing but the
missing info is recorded in the ledger (or)
(3) the block is committed and does not contain any pvtData.
func (*Ledger) GetBlockByHash ¶
GetBlockByHash returns the block by hash
func (*Ledger) GetBlockByNumber ¶
GetBlockByNumber returns the block by number
func (*Ledger) GetBlockByTxID ¶
GetBlockByTxID gets the block by transaction id
func (*Ledger) GetBlockchainInfo ¶
func (m *Ledger) GetBlockchainInfo() (*common.BlockchainInfo, error)
GetBlockchainInfo returns the block chain info
func (*Ledger) GetBlocksIterator ¶
func (m *Ledger) GetBlocksIterator(startBlockNumber uint64) (ledger.ResultsIterator, error)
GetBlocksIterator returns the block iterator
func (*Ledger) GetConfigHistoryRetriever ¶
func (m *Ledger) GetConfigHistoryRetriever() (ledger2.ConfigHistoryRetriever, error)
GetConfigHistoryRetriever returns the config history retriever
func (*Ledger) GetMissingPvtDataTracker ¶
func (m *Ledger) GetMissingPvtDataTracker() (ledger2.MissingPvtDataTracker, error)
GetMissingPvtDataTracker returns the private data tracker
func (*Ledger) GetPvtDataAndBlockByNum ¶
func (m *Ledger) GetPvtDataAndBlockByNum(blockNum uint64, filter ledger2.PvtNsCollFilter) (*ledger2.BlockAndPvtData, error)
GetPvtDataAndBlockByNum gets private data and block by block number
func (*Ledger) GetPvtDataByNum ¶
func (m *Ledger) GetPvtDataByNum(blockNum uint64, filter ledger2.PvtNsCollFilter) ([]*ledger2.TxPvtData, error)
GetPvtDataByNum gets private data by number
func (*Ledger) GetTransactionByID ¶
func (m *Ledger) GetTransactionByID(txID string) (*peer.ProcessedTransaction, error)
GetTransactionByID gets the transaction by id
func (*Ledger) GetTxValidationCodeByTxID ¶
func (m *Ledger) GetTxValidationCodeByTxID(txID string) (peer.TxValidationCode, error)
GetTxValidationCodeByTxID gets the validation code
func (*Ledger) NewHistoryQueryExecutor ¶
func (m *Ledger) NewHistoryQueryExecutor() (ledger2.HistoryQueryExecutor, error)
NewHistoryQueryExecutor returns the history query executor
func (*Ledger) NewQueryExecutor ¶
func (m *Ledger) NewQueryExecutor() (ledger2.QueryExecutor, error)
NewQueryExecutor returns the query executor
func (*Ledger) NewQueryExecutorNoLock ¶ added in v0.1.6
func (m *Ledger) NewQueryExecutorNoLock() (ledger2.QueryExecutor, error)
NewQueryExecutorNoLock returns the query executor
func (*Ledger) NewTxSimulator ¶
func (m *Ledger) NewTxSimulator(txid string) (ledger2.TxSimulator, error)
NewTxSimulator returns the transaction simulator
type LedgerProvider ¶ added in v0.1.1
type LedgerProvider struct { GetLedgerStub func(cid string) ledger.PeerLedger // contains filtered or unexported fields }
func (*LedgerProvider) GetLedger ¶ added in v0.1.1
func (fake *LedgerProvider) GetLedger(cid string) ledger.PeerLedger
func (*LedgerProvider) GetLedgerArgsForCall ¶ added in v0.1.1
func (fake *LedgerProvider) GetLedgerArgsForCall(i int) string
func (*LedgerProvider) GetLedgerCallCount ¶ added in v0.1.1
func (fake *LedgerProvider) GetLedgerCallCount() int
func (*LedgerProvider) GetLedgerReturns ¶ added in v0.1.1
func (fake *LedgerProvider) GetLedgerReturns(result1 ledger.PeerLedger)
func (*LedgerProvider) GetLedgerReturnsOnCall ¶ added in v0.1.1
func (fake *LedgerProvider) GetLedgerReturnsOnCall(i int, result1 ledger.PeerLedger)
func (*LedgerProvider) Invocations ¶ added in v0.1.1
func (fake *LedgerProvider) Invocations() map[string][][]interface{}
type MessageHandler ¶
type MessageHandler func(msg *gossipproto.GossipMessage)
MessageHandler defines a function that handles a gossip message.
type MockAccessPolicy ¶
type MockAccessPolicy struct { ReqPeerCount int MaxPeerCount int Orgs []string OnlyRead bool OnlyWrite bool Filter privdata.Filter }
MockAccessPolicy implements a mock CollectionAccessPolicy
func (*MockAccessPolicy) AccessFilter ¶
func (m *MockAccessPolicy) AccessFilter() privdata.Filter
AccessFilter returns a member filter function for a collection
func (*MockAccessPolicy) IsMemberOnlyRead ¶
func (m *MockAccessPolicy) IsMemberOnlyRead() bool
IsMemberOnlyRead returns a true if only collection members can read the private data
func (*MockAccessPolicy) IsMemberOnlyWrite ¶
func (m *MockAccessPolicy) IsMemberOnlyWrite() bool
IsMemberOnlyWrite returns a true if only collection members can write the private data
func (*MockAccessPolicy) MaximumPeerCount ¶
func (m *MockAccessPolicy) MaximumPeerCount() int
MaximumPeerCount The maximum number of peers that private data will be sent to upon endorsement. This number has to be bigger than RequiredPeerCount().
func (*MockAccessPolicy) MemberOrgs ¶
func (m *MockAccessPolicy) MemberOrgs() map[string]struct{}
MemberOrgs returns the collection's members as MSP IDs. This serves as a human-readable way of quickly identifying who is part of a collection.
func (*MockAccessPolicy) RequiredPeerCount ¶
func (m *MockAccessPolicy) RequiredPeerCount() int
RequiredPeerCount The minimum number of peers private data will be sent to upon endorsement. The endorsement would fail if dissemination to at least this number of peers is not achieved.
type MockBlockHandler ¶
type MockBlockHandler struct {
// contains filtered or unexported fields
}
MockBlockHandler is a mock block handler
func NewMockBlockHandler ¶
func NewMockBlockHandler() *MockBlockHandler
NewMockBlockHandler returns a mock Block Handler
func (*MockBlockHandler) HandleBlock ¶ added in v0.1.6
func (m *MockBlockHandler) HandleBlock(block *cb.Block) error
HandleBlock handles a block by incrementing the block counter
func (*MockBlockHandler) HandleChaincodeEvent ¶
func (m *MockBlockHandler) HandleChaincodeEvent(txMetadata api.TxMetadata, event *pb.ChaincodeEvent) error
HandleChaincodeEvent handle a chaincode event by incrementing the CC event counter
func (*MockBlockHandler) HandleChaincodeUpgradeEvent ¶
func (m *MockBlockHandler) HandleChaincodeUpgradeEvent(txMetadata api.TxMetadata, chaincodeName string) error
HandleChaincodeUpgradeEvent handles a chaincode upgrade event by incrementing the chaincode upgrade counter
func (*MockBlockHandler) HandleCollHashRead ¶ added in v0.1.4
func (m *MockBlockHandler) HandleCollHashRead(txMetadata api.TxMetadata, namespace, collection string, kvRead *kvrwset.KVReadHash) error
HandleCollHashRead handles a collection hash read event by incrementing the read counter
func (*MockBlockHandler) HandleCollHashWrite ¶ added in v0.1.4
func (m *MockBlockHandler) HandleCollHashWrite(txMetadata api.TxMetadata, namespace, collection string, kvWrite *kvrwset.KVWriteHash) error
HandleCollHashWrite handles a collection hash write event by incrementing the write counter
func (*MockBlockHandler) HandleConfigUpdate ¶
func (m *MockBlockHandler) HandleConfigUpdate(blockNum uint64, configUpdate *cb.ConfigUpdate) error
HandleConfigUpdate handles a config update by incrementing the config update counter
func (*MockBlockHandler) HandleLSCCWrite ¶
func (m *MockBlockHandler) HandleLSCCWrite(txMetadata api.TxMetadata, chaincodeName string, ccData *ccprovider.ChaincodeData, ccp *pb.CollectionConfigPackage) error
HandleLSCCWrite handles an LSCC write by incrementing the LSCC write counter
func (*MockBlockHandler) HandleRead ¶
func (m *MockBlockHandler) HandleRead(txMetadata api.TxMetadata, namespace string, kvRead *kvrwset.KVRead) error
HandleRead handles a read event by incrementing the read counter
func (*MockBlockHandler) HandleWrite ¶
func (m *MockBlockHandler) HandleWrite(txMetadata api.TxMetadata, namespace string, kvWrite *kvrwset.KVWrite) error
HandleWrite handles a write event by incrementing the write counter
func (*MockBlockHandler) NumBlocks ¶ added in v0.1.6
func (m *MockBlockHandler) NumBlocks() int
NumBlocks returns the number of blocks handled
func (*MockBlockHandler) NumCCEvents ¶
func (m *MockBlockHandler) NumCCEvents() int
NumCCEvents returns the number of chaincode events handled
func (*MockBlockHandler) NumCCUpgradeEvents ¶
func (m *MockBlockHandler) NumCCUpgradeEvents() int
NumCCUpgradeEvents returns the number of chaincode upgrades handled
func (*MockBlockHandler) NumCollHashReads ¶ added in v0.1.4
func (m *MockBlockHandler) NumCollHashReads() int
NumCollHashReads returns the number of collection hash reads handled
func (*MockBlockHandler) NumCollHashWrites ¶ added in v0.1.4
func (m *MockBlockHandler) NumCollHashWrites() int
NumCollHashWrites returns the number of collection hash writes handled
func (*MockBlockHandler) NumConfigUpdates ¶
func (m *MockBlockHandler) NumConfigUpdates() int
NumConfigUpdates returns the number of configuration updates handled
func (*MockBlockHandler) NumLSCCWrites ¶
func (m *MockBlockHandler) NumLSCCWrites() int
NumLSCCWrites returns the number of LSCC writes handled
func (*MockBlockHandler) NumReads ¶
func (m *MockBlockHandler) NumReads() int
NumReads returns the number of reads handled
func (*MockBlockHandler) NumWrites ¶
func (m *MockBlockHandler) NumWrites() int
NumWrites returns the number of writes handled
func (*MockBlockHandler) WithError ¶
func (m *MockBlockHandler) WithError(err error) *MockBlockHandler
WithError sets an error
type MockBlockPublisher ¶
type MockBlockPublisher struct { HandleUpgrade gossipapi.ChaincodeUpgradeHandler HandleConfigUpdate gossipapi.ConfigUpdateHandler HandleWrite gossipapi.WriteHandler HandleRead gossipapi.ReadHandler HandleCollHashWrite gossipapi.CollHashWriteHandler HandleCollHashRead gossipapi.CollHashReadHandler HandleLSCCWrite gossipapi.LSCCWriteHandler HandleCCEvent gossipapi.ChaincodeEventHandler HandleBlock gossipapi.PublishedBlockHandler Height uint64 }
MockBlockPublisher is a mock block publisher
func NewBlockPublisher ¶
func NewBlockPublisher() *MockBlockPublisher
NewBlockPublisher returns a mock block publisher
func (*MockBlockPublisher) AddBlockHandler ¶ added in v0.1.6
func (m *MockBlockPublisher) AddBlockHandler(handler gossipapi.PublishedBlockHandler)
AddBlockHandler adds a block handler
func (*MockBlockPublisher) AddCCEventHandler ¶
func (m *MockBlockPublisher) AddCCEventHandler(handler gossipapi.ChaincodeEventHandler)
AddCCEventHandler adds a chaincode event handler
func (*MockBlockPublisher) AddCCUpgradeHandler ¶
func (m *MockBlockPublisher) AddCCUpgradeHandler(handler gossipapi.ChaincodeUpgradeHandler)
AddCCUpgradeHandler adds a chaincode upgrade handler
func (*MockBlockPublisher) AddCollHashReadHandler ¶ added in v0.1.4
func (m *MockBlockPublisher) AddCollHashReadHandler(handler gossipapi.CollHashReadHandler)
AddCollHashReadHandler adds a read handler
func (*MockBlockPublisher) AddCollHashWriteHandler ¶ added in v0.1.4
func (m *MockBlockPublisher) AddCollHashWriteHandler(handler gossipapi.CollHashWriteHandler)
AddCollHashWriteHandler adds a collection hash write handler
func (*MockBlockPublisher) AddConfigUpdateHandler ¶
func (m *MockBlockPublisher) AddConfigUpdateHandler(handler gossipapi.ConfigUpdateHandler)
AddConfigUpdateHandler adds a config update handler
func (*MockBlockPublisher) AddLSCCWriteHandler ¶
func (m *MockBlockPublisher) AddLSCCWriteHandler(handler gossipapi.LSCCWriteHandler)
AddLSCCWriteHandler adds a write handler
func (*MockBlockPublisher) AddReadHandler ¶
func (m *MockBlockPublisher) AddReadHandler(handler gossipapi.ReadHandler)
AddReadHandler adds a read handler
func (*MockBlockPublisher) AddWriteHandler ¶
func (m *MockBlockPublisher) AddWriteHandler(handler gossipapi.WriteHandler)
AddWriteHandler adds a write handler
func (*MockBlockPublisher) LedgerHeight ¶
func (m *MockBlockPublisher) LedgerHeight() uint64
LedgerHeight is not implemented and panics if invoked
func (*MockBlockPublisher) Publish ¶
func (m *MockBlockPublisher) Publish(_ *common.Block, _ ledger.TxPvtDataMap)
Publish is not implemented and panics if invoked
type MockBlockPublisherProvider ¶
type MockBlockPublisherProvider struct {
// contains filtered or unexported fields
}
MockBlockPublisherProvider is a mock block publisher provider
func NewBlockPublisherProvider ¶
func NewBlockPublisherProvider() *MockBlockPublisherProvider
NewBlockPublisherProvider returns a mock block publisher provider
func (*MockBlockPublisherProvider) ForChannel ¶
func (m *MockBlockPublisherProvider) ForChannel(channelID string) gossipapi.BlockPublisher
ForChannel returns the mock block publisher
func (*MockBlockPublisherProvider) WithBlockPublisher ¶ added in v0.1.1
func (m *MockBlockPublisherProvider) WithBlockPublisher(publisher gossipapi.BlockPublisher) *MockBlockPublisherProvider
WithBlockPublisher sets the block publisher
type MockGossipAdapter ¶
type MockGossipAdapter struct {
// contains filtered or unexported fields
}
MockGossipAdapter is the gossip adapter
func NewMockGossipAdapter ¶
func NewMockGossipAdapter() *MockGossipAdapter
NewMockGossipAdapter returns the adapter
func (*MockGossipAdapter) Accept ¶ added in v0.1.1
func (m *MockGossipAdapter) Accept(acceptor common.MessageAcceptor, passThrough bool) (<-chan *gossipproto.GossipMessage, <-chan protoext.ReceivedMessage)
Accept returns a dedicated read-only channel for messages sent by other nodes that match a certain predicate.
func (*MockGossipAdapter) DistributePrivateData ¶ added in v0.1.1
func (m *MockGossipAdapter) DistributePrivateData(chainID string, txID string, privateData *transientstore.TxPvtReadWriteSetWithConfigInfo, blkHt uint64) error
DistributePrivateData distributes private data to the peers in the collections according to policies induced by the PolicyStore and PolicyParser
func (*MockGossipAdapter) Gossip ¶ added in v0.1.1
func (m *MockGossipAdapter) Gossip(msg *gossipproto.GossipMessage)
Gossip sends a message to other peers to the network
func (*MockGossipAdapter) IdentityInfo ¶
func (m *MockGossipAdapter) IdentityInfo() gossipapi.PeerIdentitySet
IdentityInfo returns the identitySet of this adapter
func (*MockGossipAdapter) IsInMyOrg ¶ added in v0.1.1
func (m *MockGossipAdapter) IsInMyOrg(member discovery.NetworkMember) bool
IsInMyOrg checks whether a network member is in this peer's org
func (*MockGossipAdapter) Member ¶
func (m *MockGossipAdapter) Member(mspID string, member discovery.NetworkMember) *MockGossipAdapter
Member adds the network member
func (*MockGossipAdapter) MemberWithNoPKIID ¶
func (m *MockGossipAdapter) MemberWithNoPKIID(mspID string, member discovery.NetworkMember) *MockGossipAdapter
MemberWithNoPKIID appends the member
func (*MockGossipAdapter) MessageHandler ¶
func (m *MockGossipAdapter) MessageHandler(handler MessageHandler) *MockGossipAdapter
MessageHandler sets the handler
func (*MockGossipAdapter) Peers ¶ added in v0.1.1
func (m *MockGossipAdapter) Peers() []discovery.NetworkMember
Peers returns the NetworkMembers considered alive
func (*MockGossipAdapter) PeersOfChannel ¶
func (m *MockGossipAdapter) PeersOfChannel(common.ChannelID) []discovery.NetworkMember
PeersOfChannel returns the members
func (*MockGossipAdapter) Self ¶
func (m *MockGossipAdapter) Self(mspID string, self discovery.NetworkMember) *MockGossipAdapter
Self discovers a network member
func (*MockGossipAdapter) SelfChannelInfo ¶ added in v0.1.1
func (m *MockGossipAdapter) SelfChannelInfo(common.ChannelID) *protoext.SignedGossipMessage
SelfChannelInfo returns the peer's latest StateInfo message of a given channel
func (*MockGossipAdapter) SelfMembershipInfo ¶
func (m *MockGossipAdapter) SelfMembershipInfo() discovery.NetworkMember
SelfMembershipInfo returns self
func (*MockGossipAdapter) Send ¶
func (m *MockGossipAdapter) Send(msg *gossipproto.GossipMessage, peers ...*comm.RemotePeer)
Send sends a message to remote peers
func (*MockGossipAdapter) SendByCriteria ¶ added in v0.1.1
func (m *MockGossipAdapter) SendByCriteria(*protoext.SignedGossipMessage, gossip.SendCriteria) error
SendByCriteria sends a given message to all peers that match the given SendCriteria
type MockReceivedMessage ¶
type MockReceivedMessage struct { Message *protoext.SignedGossipMessage RespondTo func(msg *gproto.GossipMessage) Member discovery.NetworkMember }
MockReceivedMessage mocks the Gossip received message
func (*MockReceivedMessage) GetConnectionInfo ¶
func (m *MockReceivedMessage) GetConnectionInfo() *protoext.ConnectionInfo
GetConnectionInfo returns the connection information of the source of the message
func (*MockReceivedMessage) GetGossipMessage ¶
func (m *MockReceivedMessage) GetGossipMessage() *protoext.SignedGossipMessage
GetGossipMessage returns the mock signed gossip message
func (*MockReceivedMessage) GetSourceEnvelope ¶
func (m *MockReceivedMessage) GetSourceEnvelope() *gproto.Envelope
GetSourceEnvelope is not implemented
func (*MockReceivedMessage) Respond ¶
func (m *MockReceivedMessage) Respond(msg *gproto.GossipMessage)
Respond responds to the given request
type MockSupport ¶
type MockSupport struct { CollPolicy privdata.CollectionAccessPolicy CollConfigs []*pb.StaticCollectionConfig Err error Publisher *MockBlockPublisher }
MockSupport is a holder of policy, config and error
func (*MockSupport) BlockPublisher ¶
func (s *MockSupport) BlockPublisher(channelID string) gossipapi.BlockPublisher
BlockPublisher returns a mock block publisher for the given channel
func (*MockSupport) CollectionConfig ¶
func (s *MockSupport) CollectionConfig(collConfig *pb.StaticCollectionConfig) *MockSupport
CollectionConfig sets the collection config for the given collection
func (*MockSupport) CollectionPolicy ¶
func (s *MockSupport) CollectionPolicy(collPolicy privdata.CollectionAccessPolicy) *MockSupport
CollectionPolicy sets the collection access policy for the given collection
func (*MockSupport) Config ¶
func (s *MockSupport) Config(channelID, ns, coll string) (*pb.StaticCollectionConfig, error)
Config returns the collection config for the given collection
func (*MockSupport) Policy ¶
func (s *MockSupport) Policy(channelID, ns, coll string) (privdata.CollectionAccessPolicy, error)
Policy returns the collection access policy for the given collection
type NamespaceBuilder ¶
type NamespaceBuilder struct {
// contains filtered or unexported fields
}
NamespaceBuilder is a utility that builds a CollectionPvtReadWriteSet and CollectionConfigPackage for unit testing
func NewNamespaceBuilder ¶
func NewNamespaceBuilder(name string) *NamespaceBuilder
NewNamespaceBuilder returns a new namespace builder
func (*NamespaceBuilder) BuildCollectionConfig ¶
func (b *NamespaceBuilder) BuildCollectionConfig() *peer.CollectionConfigPackage
BuildCollectionConfig builds the collection config package for the namespace
func (*NamespaceBuilder) BuildCollectionHashedRWSets ¶
func (b *NamespaceBuilder) BuildCollectionHashedRWSets() []*rwset.CollectionHashedReadWriteSet
BuildCollectionHashedRWSets builds the collection-hashed read-write sets
func (*NamespaceBuilder) BuildNSReadWriteSets ¶
func (b *NamespaceBuilder) BuildNSReadWriteSets() []byte
BuildNSReadWriteSets builds the read-write sets
func (*NamespaceBuilder) BuildReadWriteSets ¶
func (b *NamespaceBuilder) BuildReadWriteSets() []*rwset.CollectionPvtReadWriteSet
BuildReadWriteSets builds the collection read-write sets for the namespace
func (*NamespaceBuilder) Collection ¶
func (b *NamespaceBuilder) Collection(name string) *CollectionBuilder
Collection adds a new collection
func (*NamespaceBuilder) Delete ¶
func (b *NamespaceBuilder) Delete(key string) *NamespaceBuilder
Delete adds a new write with 'IsDelete=true' to the namespace
func (*NamespaceBuilder) Read ¶
func (b *NamespaceBuilder) Read(key string, blockNum uint64, txIdx uint64) *NamespaceBuilder
Read adds a new read to the namespace
func (*NamespaceBuilder) WithMarshalError ¶
func (b *NamespaceBuilder) WithMarshalError() *NamespaceBuilder
WithMarshalError simulates a marshalling error
func (*NamespaceBuilder) Write ¶
func (b *NamespaceBuilder) Write(key string, value []byte) *NamespaceBuilder
Write adds a new write to the namespace
type NamespaceRWSetBuilder ¶
type NamespaceRWSetBuilder struct {
// contains filtered or unexported fields
}
NamespaceRWSetBuilder builds a mock read/write set for a given namespace
func NewNamespaceRWSetBuilder ¶
func NewNamespaceRWSetBuilder(ns string) *NamespaceRWSetBuilder
NewNamespaceRWSetBuilder returns a new namespace read/write set builder
func (*NamespaceRWSetBuilder) Build ¶
func (b *NamespaceRWSetBuilder) Build() *rwsetutil.NsRwSet
Build builds a namespace read/write set
func (*NamespaceRWSetBuilder) Collection ¶ added in v0.1.4
func (b *NamespaceRWSetBuilder) Collection(coll string) *CollHashedRWSetBuilder
Collection starts a new collection hashed read/write set
func (*NamespaceRWSetBuilder) Delete ¶
func (b *NamespaceRWSetBuilder) Delete(key string) *NamespaceRWSetBuilder
Delete adds a KV write (with delete=true) to the read/write set
func (*NamespaceRWSetBuilder) Read ¶
func (b *NamespaceRWSetBuilder) Read(key string, version *kvrwset.Version) *NamespaceRWSetBuilder
Read adds a KV read to the read/write set
func (*NamespaceRWSetBuilder) Write ¶
func (b *NamespaceRWSetBuilder) Write(key string, value []byte) *NamespaceRWSetBuilder
Write adds a KV write to the read/write set
type PeerConfig ¶ added in v0.1.1
type PeerConfig struct { PeerIDStub func() string MSPIDStub func() string PeerAddressStub func() string MSPConfigPathStub func() string TLSCertPathStub func() string // contains filtered or unexported fields }
func (*PeerConfig) Invocations ¶ added in v0.1.1
func (fake *PeerConfig) Invocations() map[string][][]interface{}
func (*PeerConfig) MSPConfigPath ¶ added in v0.1.1
func (fake *PeerConfig) MSPConfigPath() string
func (*PeerConfig) MSPConfigPathCallCount ¶ added in v0.1.1
func (fake *PeerConfig) MSPConfigPathCallCount() int
func (*PeerConfig) MSPConfigPathReturns ¶ added in v0.1.1
func (fake *PeerConfig) MSPConfigPathReturns(result1 string)
func (*PeerConfig) MSPConfigPathReturnsOnCall ¶ added in v0.1.1
func (fake *PeerConfig) MSPConfigPathReturnsOnCall(i int, result1 string)
func (*PeerConfig) MSPID ¶ added in v0.1.1
func (fake *PeerConfig) MSPID() string
func (*PeerConfig) MSPIDCallCount ¶ added in v0.1.1
func (fake *PeerConfig) MSPIDCallCount() int
func (*PeerConfig) MSPIDReturns ¶ added in v0.1.1
func (fake *PeerConfig) MSPIDReturns(result1 string)
func (*PeerConfig) MSPIDReturnsOnCall ¶ added in v0.1.1
func (fake *PeerConfig) MSPIDReturnsOnCall(i int, result1 string)
func (*PeerConfig) PeerAddress ¶ added in v0.1.1
func (fake *PeerConfig) PeerAddress() string
func (*PeerConfig) PeerAddressCallCount ¶ added in v0.1.1
func (fake *PeerConfig) PeerAddressCallCount() int
func (*PeerConfig) PeerAddressReturns ¶ added in v0.1.1
func (fake *PeerConfig) PeerAddressReturns(result1 string)
func (*PeerConfig) PeerAddressReturnsOnCall ¶ added in v0.1.1
func (fake *PeerConfig) PeerAddressReturnsOnCall(i int, result1 string)
func (*PeerConfig) PeerID ¶ added in v0.1.1
func (fake *PeerConfig) PeerID() string
func (*PeerConfig) PeerIDCallCount ¶ added in v0.1.1
func (fake *PeerConfig) PeerIDCallCount() int
func (*PeerConfig) PeerIDReturns ¶ added in v0.1.1
func (fake *PeerConfig) PeerIDReturns(result1 string)
func (*PeerConfig) PeerIDReturnsOnCall ¶ added in v0.1.1
func (fake *PeerConfig) PeerIDReturnsOnCall(i int, result1 string)
func (*PeerConfig) TLSCertPath ¶ added in v0.1.1
func (fake *PeerConfig) TLSCertPath() string
func (*PeerConfig) TLSCertPathCallCount ¶ added in v0.1.1
func (fake *PeerConfig) TLSCertPathCallCount() int
func (*PeerConfig) TLSCertPathReturns ¶ added in v0.1.1
func (fake *PeerConfig) TLSCertPathReturns(result1 string)
func (*PeerConfig) TLSCertPathReturnsOnCall ¶ added in v0.1.1
func (fake *PeerConfig) TLSCertPathReturnsOnCall(i int, result1 string)
type PvtReadWriteSetBuilder ¶
type PvtReadWriteSetBuilder struct {
// contains filtered or unexported fields
}
PvtReadWriteSetBuilder is a utility that builds a TxPvtReadWriteSetWithConfigInfo for unit testing
func NewPvtReadWriteSetBuilder ¶
func NewPvtReadWriteSetBuilder() *PvtReadWriteSetBuilder
NewPvtReadWriteSetBuilder returns a new PvtReadWriteSetBuilder
func (*PvtReadWriteSetBuilder) Build ¶
func (b *PvtReadWriteSetBuilder) Build() *transientstore.TxPvtReadWriteSetWithConfigInfo
Build builds a TxPvtReadWriteSetWithConfigInfo
func (*PvtReadWriteSetBuilder) BuildCollectionConfigs ¶
func (b *PvtReadWriteSetBuilder) BuildCollectionConfigs() map[string]*peer.CollectionConfigPackage
BuildCollectionConfigs builds the collection config package
func (*PvtReadWriteSetBuilder) BuildReadWriteSet ¶
func (b *PvtReadWriteSetBuilder) BuildReadWriteSet() *rwset.TxPvtReadWriteSet
BuildReadWriteSet builds the private read-write sets
func (*PvtReadWriteSetBuilder) Namespace ¶
func (b *PvtReadWriteSetBuilder) Namespace(name string) *NamespaceBuilder
Namespace returns a new NamespaceBuilder
type QueryExecutor ¶
type QueryExecutor struct {
// contains filtered or unexported fields
}
QueryExecutor is a mock query executor
func NewQueryExecutor ¶
func NewQueryExecutor() *QueryExecutor
NewQueryExecutor returns a new mock query executor
func (*QueryExecutor) ExecuteQuery ¶
func (m *QueryExecutor) ExecuteQuery(namespace, query string) (commonledger.ResultsIterator, error)
ExecuteQuery returns mock results for the given query
func (*QueryExecutor) ExecuteQueryOnPrivateData ¶
func (m *QueryExecutor) ExecuteQueryOnPrivateData(namespace, collection, query string) (commonledger.ResultsIterator, error)
ExecuteQueryOnPrivateData returns mock results for the given query
func (*QueryExecutor) ExecuteQueryWithMetadata ¶
func (m *QueryExecutor) ExecuteQueryWithMetadata(namespace, query string, metadata map[string]interface{}) (ledger.QueryResultsIterator, error)
ExecuteQueryWithMetadata is not currently implemented and will panic if called
func (*QueryExecutor) ExecuteQueryWithPagination ¶ added in v0.1.4
func (m *QueryExecutor) ExecuteQueryWithPagination(namespace, query, bookmark string, pageSize int32) (ledger.QueryResultsIterator, error)
ExecuteQueryWithPagination is not currently implemented and will panic if called
func (*QueryExecutor) GetPrivateData ¶
func (m *QueryExecutor) GetPrivateData(namespace, collection, key string) ([]byte, error)
GetPrivateData returns the private data for the given namespace, collection, and key
func (*QueryExecutor) GetPrivateDataHash ¶
func (m *QueryExecutor) GetPrivateDataHash(namespace, collection, key string) ([]byte, error)
GetPrivateDataHash is not currently implemented and will panic if called
func (*QueryExecutor) GetPrivateDataMetadata ¶
func (m *QueryExecutor) GetPrivateDataMetadata(namespace, collection, key string) (map[string][]byte, error)
GetPrivateDataMetadata is not currently implemented and will panic if called
func (*QueryExecutor) GetPrivateDataMetadataByHash ¶
func (m *QueryExecutor) GetPrivateDataMetadataByHash(namespace, collection string, keyhash []byte) (map[string][]byte, error)
GetPrivateDataMetadataByHash is not currently implemented and will panic if called
func (*QueryExecutor) GetPrivateDataMultipleKeys ¶
func (m *QueryExecutor) GetPrivateDataMultipleKeys(namespace, collection string, keys []string) ([][]byte, error)
GetPrivateDataMultipleKeys returns the private data for the given namespace, collection, and keys
func (*QueryExecutor) GetPrivateDataRangeScanIterator ¶
func (m *QueryExecutor) GetPrivateDataRangeScanIterator(namespace, collection, startKey, endKey string) (commonledger.ResultsIterator, error)
GetPrivateDataRangeScanIterator is not currently implemented and will panic if called
func (*QueryExecutor) GetState ¶
func (m *QueryExecutor) GetState(namespace string, key string) ([]byte, error)
GetState returns the mock state for the given namespace and key
func (*QueryExecutor) GetStateMetadata ¶
func (m *QueryExecutor) GetStateMetadata(namespace, key string) (map[string][]byte, error)
GetStateMetadata is not currently implemented and will panic if called
func (*QueryExecutor) GetStateMultipleKeys ¶
func (m *QueryExecutor) GetStateMultipleKeys(namespace string, keys []string) ([][]byte, error)
GetStateMultipleKeys returns the mock state for the given namespace and keys
func (*QueryExecutor) GetStateRangeScanIterator ¶
func (m *QueryExecutor) GetStateRangeScanIterator(namespace string, startKey string, endKey string) (commonledger.ResultsIterator, error)
GetStateRangeScanIterator returns an iterator for mock results ranging from startKey (inclusive) to endKey (exclusive)
func (*QueryExecutor) GetStateRangeScanIteratorWithMetadata ¶
func (m *QueryExecutor) GetStateRangeScanIteratorWithMetadata(namespace string, startKey, endKey string, metadata map[string]interface{}) (ledger.QueryResultsIterator, error)
GetStateRangeScanIteratorWithMetadata is not currently implemented and will panic if called
func (*QueryExecutor) GetStateRangeScanIteratorWithPagination ¶ added in v0.1.4
func (m *QueryExecutor) GetStateRangeScanIteratorWithPagination(namespace string, startKey, endKey string, pageSize int32) (ledger.QueryResultsIterator, error)
GetStateRangeScanIteratorWithPagination is not currently implemented and will panic if called
func (*QueryExecutor) WithDeletedPrivateState ¶
func (m *QueryExecutor) WithDeletedPrivateState(ns, collection, key string) *QueryExecutor
WithDeletedPrivateState deletes the state
func (*QueryExecutor) WithDeletedState ¶
func (m *QueryExecutor) WithDeletedState(ns, key string) *QueryExecutor
WithDeletedState deletes the state
func (*QueryExecutor) WithError ¶
func (m *QueryExecutor) WithError(err error) *QueryExecutor
WithError injects an error to the mock executor
func (*QueryExecutor) WithIteratorProvider ¶
func (m *QueryExecutor) WithIteratorProvider(p func() *ResultsIterator) *QueryExecutor
WithIteratorProvider sets the results iterator provider
func (*QueryExecutor) WithPrivateQueryResults ¶
func (m *QueryExecutor) WithPrivateQueryResults(ns, coll, query string, results []*queryresult.KV) *QueryExecutor
WithPrivateQueryResults sets the query results for a given query on a private collection
func (*QueryExecutor) WithPrivateState ¶
func (m *QueryExecutor) WithPrivateState(ns, collection, key string, value []byte) *QueryExecutor
WithPrivateState sets the private state
func (*QueryExecutor) WithQueryError ¶
func (m *QueryExecutor) WithQueryError(err error) *QueryExecutor
WithQueryError injects an error to the mock executor for queries
func (*QueryExecutor) WithQueryResults ¶
func (m *QueryExecutor) WithQueryResults(ns, query string, results []*queryresult.KV) *QueryExecutor
WithQueryResults sets the query results for a given query on a namespace
func (*QueryExecutor) WithState ¶
func (m *QueryExecutor) WithState(ns, key string, value []byte) *QueryExecutor
WithState sets the state
type QueryExecutorProvider ¶
type QueryExecutorProvider struct {
// contains filtered or unexported fields
}
QueryExecutorProvider is a mock query executor provider
func NewQueryExecutorProvider ¶
func NewQueryExecutorProvider() *QueryExecutorProvider
NewQueryExecutorProvider returns a mock query executor provider
func (*QueryExecutorProvider) GetQueryExecutorForLedger ¶
func (m *QueryExecutorProvider) GetQueryExecutorForLedger(channelID string) (ledger.QueryExecutor, error)
GetQueryExecutorForLedger returns the query executor for the given channel ID
func (*QueryExecutorProvider) WithError ¶
func (m *QueryExecutorProvider) WithError(err error) *QueryExecutorProvider
WithError injects an error into the mock provider
func (*QueryExecutorProvider) WithMockQueryExecutor ¶
func (m *QueryExecutorProvider) WithMockQueryExecutor(qe *QueryExecutor) *QueryExecutorProvider
WithMockQueryExecutor sets the mock query executor
type ReadWriteSetBuilder ¶
type ReadWriteSetBuilder struct {
// contains filtered or unexported fields
}
ReadWriteSetBuilder is a utility that builds a TxReadWriteSet for unit testing
func NewReadWriteSetBuilder ¶
func NewReadWriteSetBuilder() *ReadWriteSetBuilder
NewReadWriteSetBuilder returns a new ReadWriteSetBuilder
func (*ReadWriteSetBuilder) Build ¶
func (b *ReadWriteSetBuilder) Build() *rwset.TxReadWriteSet
Build builds the read-write sets
func (*ReadWriteSetBuilder) BuildBytes ¶ added in v0.1.4
func (b *ReadWriteSetBuilder) BuildBytes() []byte
BuildBytes builds the read-write set bytes
func (*ReadWriteSetBuilder) Namespace ¶
func (b *ReadWriteSetBuilder) Namespace(name string) *NamespaceBuilder
Namespace returns a new NamespaceBuilder
type ResultsIterator ¶
type ResultsIterator struct {
// contains filtered or unexported fields
}
ResultsIterator is a mock key-value iterator
func NewResultsIterator ¶
func NewResultsIterator() *ResultsIterator
NewResultsIterator returns a mock key-value iterator
func (*ResultsIterator) Close ¶
func (m *ResultsIterator) Close()
Close releases resources occupied by the iterator
func (*ResultsIterator) Next ¶
func (m *ResultsIterator) Next() (commonledger.QueryResult, error)
Next returns the next item in the result set. The `QueryResult` is expected to be nil when the iterator gets exhausted
func (*ResultsIterator) WithError ¶
func (m *ResultsIterator) WithError(err error) *ResultsIterator
WithError injects an error
func (*ResultsIterator) WithResults ¶
func (m *ResultsIterator) WithResults(results []*queryresult.KV) *ResultsIterator
WithResults sets the mock results
type SigningIdentity ¶ added in v0.1.1
type SigningIdentity struct { ExpiresAtStub func() time.Time GetIdentifierStub func() *msp.IdentityIdentifier GetMSPIdentifierStub func() string ValidateStub func() error GetOrganizationalUnitsStub func() []*msp.OUIdentifier AnonymousStub func() bool VerifyStub func(msg []byte, sig []byte) error SerializeStub func() ([]byte, error) SatisfiesPrincipalStub func(principal *mspfabric_protos.MSPPrincipal) error SignStub func(msg []byte) ([]byte, error) GetPublicVersionStub func() msp.Identity // contains filtered or unexported fields }
func (*SigningIdentity) Anonymous ¶ added in v0.1.1
func (fake *SigningIdentity) Anonymous() bool
func (*SigningIdentity) AnonymousCallCount ¶ added in v0.1.1
func (fake *SigningIdentity) AnonymousCallCount() int
func (*SigningIdentity) AnonymousReturns ¶ added in v0.1.1
func (fake *SigningIdentity) AnonymousReturns(result1 bool)
func (*SigningIdentity) AnonymousReturnsOnCall ¶ added in v0.1.1
func (fake *SigningIdentity) AnonymousReturnsOnCall(i int, result1 bool)
func (*SigningIdentity) ExpiresAt ¶ added in v0.1.1
func (fake *SigningIdentity) ExpiresAt() time.Time
func (*SigningIdentity) ExpiresAtCallCount ¶ added in v0.1.1
func (fake *SigningIdentity) ExpiresAtCallCount() int
func (*SigningIdentity) ExpiresAtReturns ¶ added in v0.1.1
func (fake *SigningIdentity) ExpiresAtReturns(result1 time.Time)
func (*SigningIdentity) ExpiresAtReturnsOnCall ¶ added in v0.1.1
func (fake *SigningIdentity) ExpiresAtReturnsOnCall(i int, result1 time.Time)
func (*SigningIdentity) GetIdentifier ¶ added in v0.1.1
func (fake *SigningIdentity) GetIdentifier() *msp.IdentityIdentifier
func (*SigningIdentity) GetIdentifierCallCount ¶ added in v0.1.1
func (fake *SigningIdentity) GetIdentifierCallCount() int
func (*SigningIdentity) GetIdentifierReturns ¶ added in v0.1.1
func (fake *SigningIdentity) GetIdentifierReturns(result1 *msp.IdentityIdentifier)
func (*SigningIdentity) GetIdentifierReturnsOnCall ¶ added in v0.1.1
func (fake *SigningIdentity) GetIdentifierReturnsOnCall(i int, result1 *msp.IdentityIdentifier)
func (*SigningIdentity) GetMSPIdentifier ¶ added in v0.1.1
func (fake *SigningIdentity) GetMSPIdentifier() string
func (*SigningIdentity) GetMSPIdentifierCallCount ¶ added in v0.1.1
func (fake *SigningIdentity) GetMSPIdentifierCallCount() int
func (*SigningIdentity) GetMSPIdentifierReturns ¶ added in v0.1.1
func (fake *SigningIdentity) GetMSPIdentifierReturns(result1 string)
func (*SigningIdentity) GetMSPIdentifierReturnsOnCall ¶ added in v0.1.1
func (fake *SigningIdentity) GetMSPIdentifierReturnsOnCall(i int, result1 string)
func (*SigningIdentity) GetOrganizationalUnits ¶ added in v0.1.1
func (fake *SigningIdentity) GetOrganizationalUnits() []*msp.OUIdentifier
func (*SigningIdentity) GetOrganizationalUnitsCallCount ¶ added in v0.1.1
func (fake *SigningIdentity) GetOrganizationalUnitsCallCount() int
func (*SigningIdentity) GetOrganizationalUnitsReturns ¶ added in v0.1.1
func (fake *SigningIdentity) GetOrganizationalUnitsReturns(result1 []*msp.OUIdentifier)
func (*SigningIdentity) GetOrganizationalUnitsReturnsOnCall ¶ added in v0.1.1
func (fake *SigningIdentity) GetOrganizationalUnitsReturnsOnCall(i int, result1 []*msp.OUIdentifier)
func (*SigningIdentity) GetPublicVersion ¶ added in v0.1.1
func (fake *SigningIdentity) GetPublicVersion() msp.Identity
func (*SigningIdentity) GetPublicVersionCallCount ¶ added in v0.1.1
func (fake *SigningIdentity) GetPublicVersionCallCount() int
func (*SigningIdentity) GetPublicVersionReturns ¶ added in v0.1.1
func (fake *SigningIdentity) GetPublicVersionReturns(result1 msp.Identity)
func (*SigningIdentity) GetPublicVersionReturnsOnCall ¶ added in v0.1.1
func (fake *SigningIdentity) GetPublicVersionReturnsOnCall(i int, result1 msp.Identity)
func (*SigningIdentity) Invocations ¶ added in v0.1.1
func (fake *SigningIdentity) Invocations() map[string][][]interface{}
func (*SigningIdentity) SatisfiesPrincipal ¶ added in v0.1.1
func (fake *SigningIdentity) SatisfiesPrincipal(principal *mspfabric_protos.MSPPrincipal) error
func (*SigningIdentity) SatisfiesPrincipalArgsForCall ¶ added in v0.1.1
func (fake *SigningIdentity) SatisfiesPrincipalArgsForCall(i int) *mspfabric_protos.MSPPrincipal
func (*SigningIdentity) SatisfiesPrincipalCallCount ¶ added in v0.1.1
func (fake *SigningIdentity) SatisfiesPrincipalCallCount() int
func (*SigningIdentity) SatisfiesPrincipalReturns ¶ added in v0.1.1
func (fake *SigningIdentity) SatisfiesPrincipalReturns(result1 error)
func (*SigningIdentity) SatisfiesPrincipalReturnsOnCall ¶ added in v0.1.1
func (fake *SigningIdentity) SatisfiesPrincipalReturnsOnCall(i int, result1 error)
func (*SigningIdentity) Serialize ¶ added in v0.1.1
func (fake *SigningIdentity) Serialize() ([]byte, error)
func (*SigningIdentity) SerializeCallCount ¶ added in v0.1.1
func (fake *SigningIdentity) SerializeCallCount() int
func (*SigningIdentity) SerializeReturns ¶ added in v0.1.1
func (fake *SigningIdentity) SerializeReturns(result1 []byte, result2 error)
func (*SigningIdentity) SerializeReturnsOnCall ¶ added in v0.1.1
func (fake *SigningIdentity) SerializeReturnsOnCall(i int, result1 []byte, result2 error)
func (*SigningIdentity) Sign ¶ added in v0.1.1
func (fake *SigningIdentity) Sign(msg []byte) ([]byte, error)
func (*SigningIdentity) SignArgsForCall ¶ added in v0.1.1
func (fake *SigningIdentity) SignArgsForCall(i int) []byte
func (*SigningIdentity) SignCallCount ¶ added in v0.1.1
func (fake *SigningIdentity) SignCallCount() int
func (*SigningIdentity) SignReturns ¶ added in v0.1.1
func (fake *SigningIdentity) SignReturns(result1 []byte, result2 error)
func (*SigningIdentity) SignReturnsOnCall ¶ added in v0.1.1
func (fake *SigningIdentity) SignReturnsOnCall(i int, result1 []byte, result2 error)
func (*SigningIdentity) Validate ¶ added in v0.1.1
func (fake *SigningIdentity) Validate() error
func (*SigningIdentity) ValidateCallCount ¶ added in v0.1.1
func (fake *SigningIdentity) ValidateCallCount() int
func (*SigningIdentity) ValidateReturns ¶ added in v0.1.1
func (fake *SigningIdentity) ValidateReturns(result1 error)
func (*SigningIdentity) ValidateReturnsOnCall ¶ added in v0.1.1
func (fake *SigningIdentity) ValidateReturnsOnCall(i int, result1 error)
func (*SigningIdentity) Verify ¶ added in v0.1.1
func (fake *SigningIdentity) Verify(msg []byte, sig []byte) error
func (*SigningIdentity) VerifyArgsForCall ¶ added in v0.1.1
func (fake *SigningIdentity) VerifyArgsForCall(i int) ([]byte, []byte)
func (*SigningIdentity) VerifyCallCount ¶ added in v0.1.1
func (fake *SigningIdentity) VerifyCallCount() int
func (*SigningIdentity) VerifyReturns ¶ added in v0.1.1
func (fake *SigningIdentity) VerifyReturns(result1 error)
func (*SigningIdentity) VerifyReturnsOnCall ¶ added in v0.1.1
func (fake *SigningIdentity) VerifyReturnsOnCall(i int, result1 error)
type StateDB ¶ added in v0.1.4
type StateDB struct { GetStateStub func(namespace string, key string) ([]byte, error) GetStateMultipleKeysStub func(namespace string, keys []string) ([][]byte, error) GetStateRangeScanIteratorStub func(namespace string, startKey string, endKey string) (statedbtxmgmt.ResultsIterator, error) GetStateRangeScanIteratorWithPaginationStub func(namespace string, startKey string, endKey string, pageSize int32) (statedbtxmgmt.QueryResultsIterator, error) ExecuteQueryStub func(namespace, query string) (statedbtxmgmt.ResultsIterator, error) ExecuteQueryWithPaginationStub func(namespace, query, bookmark string, pageSize int32) (statedbtxmgmt.QueryResultsIterator, error) BytesKeySupportedStub func() bool UpdateCacheStub func(blockNum uint64, updates []byte) error // contains filtered or unexported fields }
func (*StateDB) BytesKeySupported ¶ added in v0.1.4
func (*StateDB) BytesKeySupportedCallCount ¶ added in v0.1.4
func (*StateDB) BytesKeySupportedReturns ¶ added in v0.1.4
func (*StateDB) BytesKeySupportedReturnsOnCall ¶ added in v0.1.4
func (*StateDB) ExecuteQuery ¶ added in v0.1.4
func (fake *StateDB) ExecuteQuery(namespace string, query string) (statedbtxmgmt.ResultsIterator, error)
func (*StateDB) ExecuteQueryArgsForCall ¶ added in v0.1.4
func (*StateDB) ExecuteQueryCallCount ¶ added in v0.1.4
func (*StateDB) ExecuteQueryReturns ¶ added in v0.1.4
func (fake *StateDB) ExecuteQueryReturns(result1 statedbtxmgmt.ResultsIterator, result2 error)
func (*StateDB) ExecuteQueryReturnsOnCall ¶ added in v0.1.4
func (fake *StateDB) ExecuteQueryReturnsOnCall(i int, result1 statedbtxmgmt.ResultsIterator, result2 error)
func (*StateDB) ExecuteQueryWithPagination ¶ added in v0.1.4
func (fake *StateDB) ExecuteQueryWithPagination(namespace string, query string, bookmark string, pageSize int32) (statedbtxmgmt.QueryResultsIterator, error)
func (*StateDB) ExecuteQueryWithPaginationArgsForCall ¶ added in v0.1.4
func (*StateDB) ExecuteQueryWithPaginationCallCount ¶ added in v0.1.4
func (*StateDB) ExecuteQueryWithPaginationReturns ¶ added in v0.1.4
func (fake *StateDB) ExecuteQueryWithPaginationReturns(result1 statedbtxmgmt.QueryResultsIterator, result2 error)
func (*StateDB) ExecuteQueryWithPaginationReturnsOnCall ¶ added in v0.1.4
func (fake *StateDB) ExecuteQueryWithPaginationReturnsOnCall(i int, result1 statedbtxmgmt.QueryResultsIterator, result2 error)
func (*StateDB) GetStateArgsForCall ¶ added in v0.1.4
func (*StateDB) GetStateCallCount ¶ added in v0.1.4
func (*StateDB) GetStateMultipleKeys ¶ added in v0.1.4
func (*StateDB) GetStateMultipleKeysArgsForCall ¶ added in v0.1.4
func (*StateDB) GetStateMultipleKeysCallCount ¶ added in v0.1.4
func (*StateDB) GetStateMultipleKeysReturns ¶ added in v0.1.4
func (*StateDB) GetStateMultipleKeysReturnsOnCall ¶ added in v0.1.4
func (*StateDB) GetStateRangeScanIterator ¶ added in v0.1.4
func (fake *StateDB) GetStateRangeScanIterator(namespace string, startKey string, endKey string) (statedbtxmgmt.ResultsIterator, error)
func (*StateDB) GetStateRangeScanIteratorArgsForCall ¶ added in v0.1.4
func (*StateDB) GetStateRangeScanIteratorCallCount ¶ added in v0.1.4
func (*StateDB) GetStateRangeScanIteratorReturns ¶ added in v0.1.4
func (fake *StateDB) GetStateRangeScanIteratorReturns(result1 statedbtxmgmt.ResultsIterator, result2 error)
func (*StateDB) GetStateRangeScanIteratorReturnsOnCall ¶ added in v0.1.4
func (fake *StateDB) GetStateRangeScanIteratorReturnsOnCall(i int, result1 statedbtxmgmt.ResultsIterator, result2 error)
func (*StateDB) GetStateRangeScanIteratorWithPagination ¶ added in v0.1.4
func (fake *StateDB) GetStateRangeScanIteratorWithPagination(namespace string, startKey string, endKey string, pageSize int32) (statedbtxmgmt.QueryResultsIterator, error)
func (*StateDB) GetStateRangeScanIteratorWithPaginationArgsForCall ¶ added in v0.1.4
func (*StateDB) GetStateRangeScanIteratorWithPaginationCallCount ¶ added in v0.1.4
func (*StateDB) GetStateRangeScanIteratorWithPaginationReturns ¶ added in v0.1.4
func (fake *StateDB) GetStateRangeScanIteratorWithPaginationReturns(result1 statedbtxmgmt.QueryResultsIterator, result2 error)
func (*StateDB) GetStateRangeScanIteratorWithPaginationReturnsOnCall ¶ added in v0.1.4
func (fake *StateDB) GetStateRangeScanIteratorWithPaginationReturnsOnCall(i int, result1 statedbtxmgmt.QueryResultsIterator, result2 error)
func (*StateDB) GetStateReturns ¶ added in v0.1.4
func (*StateDB) GetStateReturnsOnCall ¶ added in v0.1.4
func (*StateDB) Invocations ¶ added in v0.1.4
func (*StateDB) UpdateCache ¶ added in v0.1.5
func (*StateDB) UpdateCacheArgsForCall ¶ added in v0.1.5
func (*StateDB) UpdateCacheCallCount ¶ added in v0.1.5
func (*StateDB) UpdateCacheReturns ¶ added in v0.1.5
func (*StateDB) UpdateCacheReturnsOnCall ¶ added in v0.1.5
type StoreProvider ¶ added in v0.1.1
type StoreProvider struct { StoreForChannelStub func(channelID string) storeapi.Store // contains filtered or unexported fields }
func (*StoreProvider) Invocations ¶ added in v0.1.1
func (fake *StoreProvider) Invocations() map[string][][]interface{}
func (*StoreProvider) StoreForChannel ¶ added in v0.1.1
func (fake *StoreProvider) StoreForChannel(channelID string) storeapi.Store
func (*StoreProvider) StoreForChannelArgsForCall ¶ added in v0.1.1
func (fake *StoreProvider) StoreForChannelArgsForCall(i int) string
func (*StoreProvider) StoreForChannelCallCount ¶ added in v0.1.1
func (fake *StoreProvider) StoreForChannelCallCount() int
func (*StoreProvider) StoreForChannelReturns ¶ added in v0.1.1
func (fake *StoreProvider) StoreForChannelReturns(result1 storeapi.Store)
func (*StoreProvider) StoreForChannelReturnsOnCall ¶ added in v0.1.1
func (fake *StoreProvider) StoreForChannelReturnsOnCall(i int, result1 storeapi.Store)
type TxBuilder ¶
type TxBuilder struct {
// contains filtered or unexported fields
}
TxBuilder builds a mock Transaction
func NewTxBuilder ¶
func NewTxBuilder(channelID, txID string, validationCode pb.TxValidationCode) *TxBuilder
NewTxBuilder returns a new mock TxBuilder
func (*TxBuilder) Build ¶
func (b *TxBuilder) Build() ([]byte, pb.TxValidationCode)
Build builds a transaction
func (*TxBuilder) ChaincodeAction ¶
func (b *TxBuilder) ChaincodeAction(ccID string) *ChaincodeActionBuilder
ChaincodeAction adds a chaincode action to the transaction
type TxSimulator ¶
type TxSimulator struct { GetStateStub func(namespace string, key string) ([]byte, error) GetStateRangeScanIteratorStub func(namespace string, startKey string, endKey string) (commonledger.ResultsIterator, error) GetPrivateDataHashStub func(namespace, collection, key string) ([]byte, error) GetStateMetadataStub func(namespace, key string) (map[string][]byte, error) GetStateMultipleKeysStub func(namespace string, keys []string) ([][]byte, error) GetStateRangeScanIteratorWithPaginationStub func(namespace string, startKey, endKey string, pageSize int32) (ledger.QueryResultsIterator, error) ExecuteQueryStub func(namespace, query string) (commonledger.ResultsIterator, error) ExecuteQueryWithPaginationStub func(namespace, query, bookmark string, pageSize int32) (ledger.QueryResultsIterator, error) GetPrivateDataStub func(namespace, collection, key string) ([]byte, error) GetPrivateDataMetadataStub func(namespace, collection, key string) (map[string][]byte, error) GetPrivateDataMetadataByHashStub func(namespace, collection string, keyhash []byte) (map[string][]byte, error) GetPrivateDataMultipleKeysStub func(namespace, collection string, keys []string) ([][]byte, error) GetPrivateDataRangeScanIteratorStub func(namespace, collection, startKey, endKey string) (commonledger.ResultsIterator, error) ExecuteQueryOnPrivateDataStub func(namespace, collection, query string) (commonledger.ResultsIterator, error) DoneStub func() SetStateStub func(namespace string, key string, value []byte) error DeleteStateStub func(namespace string, key string) error SetStateMultipleKeysStub func(namespace string, kvs map[string][]byte) error SetStateMetadataStub func(namespace, key string, metadata map[string][]byte) error DeleteStateMetadataStub func(namespace, key string) error ExecuteUpdateStub func(query string) error SetPrivateDataStub func(namespace, collection, key string, value []byte) error SetPrivateDataMultipleKeysStub func(namespace, collection string, kvs map[string][]byte) error DeletePrivateDataStub func(namespace, collection, key string) error SetPrivateDataMetadataStub func(namespace, collection, key string, metadata map[string][]byte) error DeletePrivateDataMetadataStub func(namespace, collection, key string) error GetTxSimulationResultsStub func() (*ledger.TxSimulationResults, error) // contains filtered or unexported fields }
func (*TxSimulator) DeletePrivateData ¶
func (fake *TxSimulator) DeletePrivateData(namespace string, collection string, key string) error
func (*TxSimulator) DeletePrivateDataArgsForCall ¶ added in v0.1.2
func (fake *TxSimulator) DeletePrivateDataArgsForCall(i int) (string, string, string)
func (*TxSimulator) DeletePrivateDataCallCount ¶ added in v0.1.2
func (fake *TxSimulator) DeletePrivateDataCallCount() int
func (*TxSimulator) DeletePrivateDataMetadata ¶
func (fake *TxSimulator) DeletePrivateDataMetadata(namespace string, collection string, key string) error
func (*TxSimulator) DeletePrivateDataMetadataArgsForCall ¶ added in v0.1.2
func (fake *TxSimulator) DeletePrivateDataMetadataArgsForCall(i int) (string, string, string)
func (*TxSimulator) DeletePrivateDataMetadataCallCount ¶ added in v0.1.2
func (fake *TxSimulator) DeletePrivateDataMetadataCallCount() int
func (*TxSimulator) DeletePrivateDataMetadataReturns ¶ added in v0.1.2
func (fake *TxSimulator) DeletePrivateDataMetadataReturns(result1 error)
func (*TxSimulator) DeletePrivateDataMetadataReturnsOnCall ¶ added in v0.1.2
func (fake *TxSimulator) DeletePrivateDataMetadataReturnsOnCall(i int, result1 error)
func (*TxSimulator) DeletePrivateDataReturns ¶ added in v0.1.2
func (fake *TxSimulator) DeletePrivateDataReturns(result1 error)
func (*TxSimulator) DeletePrivateDataReturnsOnCall ¶ added in v0.1.2
func (fake *TxSimulator) DeletePrivateDataReturnsOnCall(i int, result1 error)
func (*TxSimulator) DeleteState ¶
func (fake *TxSimulator) DeleteState(namespace string, key string) error
func (*TxSimulator) DeleteStateArgsForCall ¶ added in v0.1.2
func (fake *TxSimulator) DeleteStateArgsForCall(i int) (string, string)
func (*TxSimulator) DeleteStateCallCount ¶ added in v0.1.2
func (fake *TxSimulator) DeleteStateCallCount() int
func (*TxSimulator) DeleteStateMetadata ¶
func (fake *TxSimulator) DeleteStateMetadata(namespace string, key string) error
func (*TxSimulator) DeleteStateMetadataArgsForCall ¶ added in v0.1.2
func (fake *TxSimulator) DeleteStateMetadataArgsForCall(i int) (string, string)
func (*TxSimulator) DeleteStateMetadataCallCount ¶ added in v0.1.2
func (fake *TxSimulator) DeleteStateMetadataCallCount() int
func (*TxSimulator) DeleteStateMetadataReturns ¶ added in v0.1.2
func (fake *TxSimulator) DeleteStateMetadataReturns(result1 error)
func (*TxSimulator) DeleteStateMetadataReturnsOnCall ¶ added in v0.1.2
func (fake *TxSimulator) DeleteStateMetadataReturnsOnCall(i int, result1 error)
func (*TxSimulator) DeleteStateReturns ¶ added in v0.1.2
func (fake *TxSimulator) DeleteStateReturns(result1 error)
func (*TxSimulator) DeleteStateReturnsOnCall ¶ added in v0.1.2
func (fake *TxSimulator) DeleteStateReturnsOnCall(i int, result1 error)
func (*TxSimulator) Done ¶ added in v0.1.2
func (fake *TxSimulator) Done()
func (*TxSimulator) DoneCallCount ¶ added in v0.1.2
func (fake *TxSimulator) DoneCallCount() int
func (*TxSimulator) ExecuteQuery ¶ added in v0.1.2
func (fake *TxSimulator) ExecuteQuery(namespace string, query string) (commonledger.ResultsIterator, error)
func (*TxSimulator) ExecuteQueryArgsForCall ¶ added in v0.1.2
func (fake *TxSimulator) ExecuteQueryArgsForCall(i int) (string, string)
func (*TxSimulator) ExecuteQueryCallCount ¶ added in v0.1.2
func (fake *TxSimulator) ExecuteQueryCallCount() int
func (*TxSimulator) ExecuteQueryOnPrivateData ¶ added in v0.1.2
func (fake *TxSimulator) ExecuteQueryOnPrivateData(namespace string, collection string, query string) (commonledger.ResultsIterator, error)
func (*TxSimulator) ExecuteQueryOnPrivateDataArgsForCall ¶ added in v0.1.2
func (fake *TxSimulator) ExecuteQueryOnPrivateDataArgsForCall(i int) (string, string, string)
func (*TxSimulator) ExecuteQueryOnPrivateDataCallCount ¶ added in v0.1.2
func (fake *TxSimulator) ExecuteQueryOnPrivateDataCallCount() int
func (*TxSimulator) ExecuteQueryOnPrivateDataReturns ¶ added in v0.1.2
func (fake *TxSimulator) ExecuteQueryOnPrivateDataReturns(result1 commonledger.ResultsIterator, result2 error)
func (*TxSimulator) ExecuteQueryOnPrivateDataReturnsOnCall ¶ added in v0.1.2
func (fake *TxSimulator) ExecuteQueryOnPrivateDataReturnsOnCall(i int, result1 commonledger.ResultsIterator, result2 error)
func (*TxSimulator) ExecuteQueryReturns ¶ added in v0.1.2
func (fake *TxSimulator) ExecuteQueryReturns(result1 commonledger.ResultsIterator, result2 error)
func (*TxSimulator) ExecuteQueryReturnsOnCall ¶ added in v0.1.2
func (fake *TxSimulator) ExecuteQueryReturnsOnCall(i int, result1 commonledger.ResultsIterator, result2 error)
func (*TxSimulator) ExecuteQueryWithPagination ¶ added in v0.1.4
func (fake *TxSimulator) ExecuteQueryWithPagination(namespace string, query string, bookmark string, pageSize int32) (ledger.QueryResultsIterator, error)
func (*TxSimulator) ExecuteQueryWithPaginationArgsForCall ¶ added in v0.1.4
func (*TxSimulator) ExecuteQueryWithPaginationCallCount ¶ added in v0.1.4
func (fake *TxSimulator) ExecuteQueryWithPaginationCallCount() int
func (*TxSimulator) ExecuteQueryWithPaginationReturns ¶ added in v0.1.4
func (fake *TxSimulator) ExecuteQueryWithPaginationReturns(result1 ledger.QueryResultsIterator, result2 error)
func (*TxSimulator) ExecuteQueryWithPaginationReturnsOnCall ¶ added in v0.1.4
func (fake *TxSimulator) ExecuteQueryWithPaginationReturnsOnCall(i int, result1 ledger.QueryResultsIterator, result2 error)
func (*TxSimulator) ExecuteUpdate ¶
func (fake *TxSimulator) ExecuteUpdate(query string) error
func (*TxSimulator) ExecuteUpdateArgsForCall ¶ added in v0.1.2
func (fake *TxSimulator) ExecuteUpdateArgsForCall(i int) string
func (*TxSimulator) ExecuteUpdateCallCount ¶ added in v0.1.2
func (fake *TxSimulator) ExecuteUpdateCallCount() int
func (*TxSimulator) ExecuteUpdateReturns ¶ added in v0.1.2
func (fake *TxSimulator) ExecuteUpdateReturns(result1 error)
func (*TxSimulator) ExecuteUpdateReturnsOnCall ¶ added in v0.1.2
func (fake *TxSimulator) ExecuteUpdateReturnsOnCall(i int, result1 error)
func (*TxSimulator) GetPrivateData ¶ added in v0.1.2
func (*TxSimulator) GetPrivateDataArgsForCall ¶ added in v0.1.2
func (fake *TxSimulator) GetPrivateDataArgsForCall(i int) (string, string, string)
func (*TxSimulator) GetPrivateDataCallCount ¶ added in v0.1.2
func (fake *TxSimulator) GetPrivateDataCallCount() int
func (*TxSimulator) GetPrivateDataHash ¶ added in v0.1.2
func (*TxSimulator) GetPrivateDataHashArgsForCall ¶ added in v0.1.2
func (fake *TxSimulator) GetPrivateDataHashArgsForCall(i int) (string, string, string)
func (*TxSimulator) GetPrivateDataHashCallCount ¶ added in v0.1.2
func (fake *TxSimulator) GetPrivateDataHashCallCount() int
func (*TxSimulator) GetPrivateDataHashReturns ¶ added in v0.1.2
func (fake *TxSimulator) GetPrivateDataHashReturns(result1 []byte, result2 error)
func (*TxSimulator) GetPrivateDataHashReturnsOnCall ¶ added in v0.1.2
func (fake *TxSimulator) GetPrivateDataHashReturnsOnCall(i int, result1 []byte, result2 error)
func (*TxSimulator) GetPrivateDataMetadata ¶ added in v0.1.2
func (*TxSimulator) GetPrivateDataMetadataArgsForCall ¶ added in v0.1.2
func (fake *TxSimulator) GetPrivateDataMetadataArgsForCall(i int) (string, string, string)
func (*TxSimulator) GetPrivateDataMetadataByHash ¶ added in v0.1.2
func (*TxSimulator) GetPrivateDataMetadataByHashArgsForCall ¶ added in v0.1.2
func (fake *TxSimulator) GetPrivateDataMetadataByHashArgsForCall(i int) (string, string, []byte)
func (*TxSimulator) GetPrivateDataMetadataByHashCallCount ¶ added in v0.1.2
func (fake *TxSimulator) GetPrivateDataMetadataByHashCallCount() int
func (*TxSimulator) GetPrivateDataMetadataByHashReturns ¶ added in v0.1.2
func (fake *TxSimulator) GetPrivateDataMetadataByHashReturns(result1 map[string][]byte, result2 error)
func (*TxSimulator) GetPrivateDataMetadataByHashReturnsOnCall ¶ added in v0.1.2
func (fake *TxSimulator) GetPrivateDataMetadataByHashReturnsOnCall(i int, result1 map[string][]byte, result2 error)
func (*TxSimulator) GetPrivateDataMetadataCallCount ¶ added in v0.1.2
func (fake *TxSimulator) GetPrivateDataMetadataCallCount() int
func (*TxSimulator) GetPrivateDataMetadataReturns ¶ added in v0.1.2
func (fake *TxSimulator) GetPrivateDataMetadataReturns(result1 map[string][]byte, result2 error)
func (*TxSimulator) GetPrivateDataMetadataReturnsOnCall ¶ added in v0.1.2
func (fake *TxSimulator) GetPrivateDataMetadataReturnsOnCall(i int, result1 map[string][]byte, result2 error)
func (*TxSimulator) GetPrivateDataMultipleKeys ¶ added in v0.1.2
func (*TxSimulator) GetPrivateDataMultipleKeysArgsForCall ¶ added in v0.1.2
func (fake *TxSimulator) GetPrivateDataMultipleKeysArgsForCall(i int) (string, string, []string)
func (*TxSimulator) GetPrivateDataMultipleKeysCallCount ¶ added in v0.1.2
func (fake *TxSimulator) GetPrivateDataMultipleKeysCallCount() int
func (*TxSimulator) GetPrivateDataMultipleKeysReturns ¶ added in v0.1.2
func (fake *TxSimulator) GetPrivateDataMultipleKeysReturns(result1 [][]byte, result2 error)
func (*TxSimulator) GetPrivateDataMultipleKeysReturnsOnCall ¶ added in v0.1.2
func (fake *TxSimulator) GetPrivateDataMultipleKeysReturnsOnCall(i int, result1 [][]byte, result2 error)
func (*TxSimulator) GetPrivateDataRangeScanIterator ¶ added in v0.1.2
func (fake *TxSimulator) GetPrivateDataRangeScanIterator(namespace string, collection string, startKey string, endKey string) (commonledger.ResultsIterator, error)
func (*TxSimulator) GetPrivateDataRangeScanIteratorArgsForCall ¶ added in v0.1.2
func (*TxSimulator) GetPrivateDataRangeScanIteratorCallCount ¶ added in v0.1.2
func (fake *TxSimulator) GetPrivateDataRangeScanIteratorCallCount() int
func (*TxSimulator) GetPrivateDataRangeScanIteratorReturns ¶ added in v0.1.2
func (fake *TxSimulator) GetPrivateDataRangeScanIteratorReturns(result1 commonledger.ResultsIterator, result2 error)
func (*TxSimulator) GetPrivateDataRangeScanIteratorReturnsOnCall ¶ added in v0.1.2
func (fake *TxSimulator) GetPrivateDataRangeScanIteratorReturnsOnCall(i int, result1 commonledger.ResultsIterator, result2 error)
func (*TxSimulator) GetPrivateDataReturns ¶ added in v0.1.2
func (fake *TxSimulator) GetPrivateDataReturns(result1 []byte, result2 error)
func (*TxSimulator) GetPrivateDataReturnsOnCall ¶ added in v0.1.2
func (fake *TxSimulator) GetPrivateDataReturnsOnCall(i int, result1 []byte, result2 error)
func (*TxSimulator) GetState ¶ added in v0.1.2
func (fake *TxSimulator) GetState(namespace string, key string) ([]byte, error)
func (*TxSimulator) GetStateArgsForCall ¶ added in v0.1.2
func (fake *TxSimulator) GetStateArgsForCall(i int) (string, string)
func (*TxSimulator) GetStateCallCount ¶ added in v0.1.2
func (fake *TxSimulator) GetStateCallCount() int
func (*TxSimulator) GetStateMetadata ¶ added in v0.1.2
func (*TxSimulator) GetStateMetadataArgsForCall ¶ added in v0.1.2
func (fake *TxSimulator) GetStateMetadataArgsForCall(i int) (string, string)
func (*TxSimulator) GetStateMetadataCallCount ¶ added in v0.1.2
func (fake *TxSimulator) GetStateMetadataCallCount() int
func (*TxSimulator) GetStateMetadataReturns ¶ added in v0.1.2
func (fake *TxSimulator) GetStateMetadataReturns(result1 map[string][]byte, result2 error)
func (*TxSimulator) GetStateMetadataReturnsOnCall ¶ added in v0.1.2
func (fake *TxSimulator) GetStateMetadataReturnsOnCall(i int, result1 map[string][]byte, result2 error)
func (*TxSimulator) GetStateMultipleKeys ¶ added in v0.1.2
func (fake *TxSimulator) GetStateMultipleKeys(namespace string, keys []string) ([][]byte, error)
func (*TxSimulator) GetStateMultipleKeysArgsForCall ¶ added in v0.1.2
func (fake *TxSimulator) GetStateMultipleKeysArgsForCall(i int) (string, []string)
func (*TxSimulator) GetStateMultipleKeysCallCount ¶ added in v0.1.2
func (fake *TxSimulator) GetStateMultipleKeysCallCount() int
func (*TxSimulator) GetStateMultipleKeysReturns ¶ added in v0.1.2
func (fake *TxSimulator) GetStateMultipleKeysReturns(result1 [][]byte, result2 error)
func (*TxSimulator) GetStateMultipleKeysReturnsOnCall ¶ added in v0.1.2
func (fake *TxSimulator) GetStateMultipleKeysReturnsOnCall(i int, result1 [][]byte, result2 error)
func (*TxSimulator) GetStateRangeScanIterator ¶ added in v0.1.2
func (fake *TxSimulator) GetStateRangeScanIterator(namespace string, startKey string, endKey string) (commonledger.ResultsIterator, error)
func (*TxSimulator) GetStateRangeScanIteratorArgsForCall ¶ added in v0.1.2
func (fake *TxSimulator) GetStateRangeScanIteratorArgsForCall(i int) (string, string, string)
func (*TxSimulator) GetStateRangeScanIteratorCallCount ¶ added in v0.1.2
func (fake *TxSimulator) GetStateRangeScanIteratorCallCount() int
func (*TxSimulator) GetStateRangeScanIteratorReturns ¶ added in v0.1.2
func (fake *TxSimulator) GetStateRangeScanIteratorReturns(result1 commonledger.ResultsIterator, result2 error)
func (*TxSimulator) GetStateRangeScanIteratorReturnsOnCall ¶ added in v0.1.2
func (fake *TxSimulator) GetStateRangeScanIteratorReturnsOnCall(i int, result1 commonledger.ResultsIterator, result2 error)
func (*TxSimulator) GetStateRangeScanIteratorWithPagination ¶ added in v0.1.4
func (fake *TxSimulator) GetStateRangeScanIteratorWithPagination(namespace string, startKey string, endKey string, pageSize int32) (ledger.QueryResultsIterator, error)
func (*TxSimulator) GetStateRangeScanIteratorWithPaginationArgsForCall ¶ added in v0.1.4
func (*TxSimulator) GetStateRangeScanIteratorWithPaginationCallCount ¶ added in v0.1.4
func (fake *TxSimulator) GetStateRangeScanIteratorWithPaginationCallCount() int
func (*TxSimulator) GetStateRangeScanIteratorWithPaginationReturns ¶ added in v0.1.4
func (fake *TxSimulator) GetStateRangeScanIteratorWithPaginationReturns(result1 ledger.QueryResultsIterator, result2 error)
func (*TxSimulator) GetStateRangeScanIteratorWithPaginationReturnsOnCall ¶ added in v0.1.4
func (fake *TxSimulator) GetStateRangeScanIteratorWithPaginationReturnsOnCall(i int, result1 ledger.QueryResultsIterator, result2 error)
func (*TxSimulator) GetStateReturns ¶ added in v0.1.2
func (fake *TxSimulator) GetStateReturns(result1 []byte, result2 error)
func (*TxSimulator) GetStateReturnsOnCall ¶ added in v0.1.2
func (fake *TxSimulator) GetStateReturnsOnCall(i int, result1 []byte, result2 error)
func (*TxSimulator) GetTxSimulationResults ¶
func (fake *TxSimulator) GetTxSimulationResults() (*ledger.TxSimulationResults, error)
func (*TxSimulator) GetTxSimulationResultsCallCount ¶ added in v0.1.2
func (fake *TxSimulator) GetTxSimulationResultsCallCount() int
func (*TxSimulator) GetTxSimulationResultsReturns ¶ added in v0.1.2
func (fake *TxSimulator) GetTxSimulationResultsReturns(result1 *ledger.TxSimulationResults, result2 error)
func (*TxSimulator) GetTxSimulationResultsReturnsOnCall ¶ added in v0.1.2
func (fake *TxSimulator) GetTxSimulationResultsReturnsOnCall(i int, result1 *ledger.TxSimulationResults, result2 error)
func (*TxSimulator) Invocations ¶ added in v0.1.2
func (fake *TxSimulator) Invocations() map[string][][]interface{}
func (*TxSimulator) SetPrivateData ¶
func (*TxSimulator) SetPrivateDataArgsForCall ¶ added in v0.1.2
func (*TxSimulator) SetPrivateDataCallCount ¶ added in v0.1.2
func (fake *TxSimulator) SetPrivateDataCallCount() int
func (*TxSimulator) SetPrivateDataMetadata ¶
func (*TxSimulator) SetPrivateDataMetadataArgsForCall ¶ added in v0.1.2
func (*TxSimulator) SetPrivateDataMetadataCallCount ¶ added in v0.1.2
func (fake *TxSimulator) SetPrivateDataMetadataCallCount() int
func (*TxSimulator) SetPrivateDataMetadataReturns ¶ added in v0.1.2
func (fake *TxSimulator) SetPrivateDataMetadataReturns(result1 error)
func (*TxSimulator) SetPrivateDataMetadataReturnsOnCall ¶ added in v0.1.2
func (fake *TxSimulator) SetPrivateDataMetadataReturnsOnCall(i int, result1 error)
func (*TxSimulator) SetPrivateDataMultipleKeys ¶
func (*TxSimulator) SetPrivateDataMultipleKeysArgsForCall ¶ added in v0.1.2
func (*TxSimulator) SetPrivateDataMultipleKeysCallCount ¶ added in v0.1.2
func (fake *TxSimulator) SetPrivateDataMultipleKeysCallCount() int
func (*TxSimulator) SetPrivateDataMultipleKeysReturns ¶ added in v0.1.2
func (fake *TxSimulator) SetPrivateDataMultipleKeysReturns(result1 error)
func (*TxSimulator) SetPrivateDataMultipleKeysReturnsOnCall ¶ added in v0.1.2
func (fake *TxSimulator) SetPrivateDataMultipleKeysReturnsOnCall(i int, result1 error)
func (*TxSimulator) SetPrivateDataReturns ¶ added in v0.1.2
func (fake *TxSimulator) SetPrivateDataReturns(result1 error)
func (*TxSimulator) SetPrivateDataReturnsOnCall ¶ added in v0.1.2
func (fake *TxSimulator) SetPrivateDataReturnsOnCall(i int, result1 error)
func (*TxSimulator) SetState ¶
func (fake *TxSimulator) SetState(namespace string, key string, value []byte) error
func (*TxSimulator) SetStateArgsForCall ¶ added in v0.1.2
func (fake *TxSimulator) SetStateArgsForCall(i int) (string, string, []byte)
func (*TxSimulator) SetStateCallCount ¶ added in v0.1.2
func (fake *TxSimulator) SetStateCallCount() int
func (*TxSimulator) SetStateMetadata ¶
func (*TxSimulator) SetStateMetadataArgsForCall ¶ added in v0.1.2
func (*TxSimulator) SetStateMetadataCallCount ¶ added in v0.1.2
func (fake *TxSimulator) SetStateMetadataCallCount() int
func (*TxSimulator) SetStateMetadataReturns ¶ added in v0.1.2
func (fake *TxSimulator) SetStateMetadataReturns(result1 error)
func (*TxSimulator) SetStateMetadataReturnsOnCall ¶ added in v0.1.2
func (fake *TxSimulator) SetStateMetadataReturnsOnCall(i int, result1 error)
func (*TxSimulator) SetStateMultipleKeys ¶
func (fake *TxSimulator) SetStateMultipleKeys(namespace string, kvs map[string][]byte) error
func (*TxSimulator) SetStateMultipleKeysArgsForCall ¶ added in v0.1.2
func (fake *TxSimulator) SetStateMultipleKeysArgsForCall(i int) (string, map[string][]byte)
func (*TxSimulator) SetStateMultipleKeysCallCount ¶ added in v0.1.2
func (fake *TxSimulator) SetStateMultipleKeysCallCount() int
func (*TxSimulator) SetStateMultipleKeysReturns ¶ added in v0.1.2
func (fake *TxSimulator) SetStateMultipleKeysReturns(result1 error)
func (*TxSimulator) SetStateMultipleKeysReturnsOnCall ¶ added in v0.1.2
func (fake *TxSimulator) SetStateMultipleKeysReturnsOnCall(i int, result1 error)
func (*TxSimulator) SetStateReturns ¶ added in v0.1.2
func (fake *TxSimulator) SetStateReturns(result1 error)
func (*TxSimulator) SetStateReturnsOnCall ¶ added in v0.1.2
func (fake *TxSimulator) SetStateReturnsOnCall(i int, result1 error)
Source Files ¶
- aclprovider.gen.go
- ccupdatehandler.gen.go
- chaincodeinfoprovider.go
- collconfigprovider.gen.go
- gossipprovider.gen.go
- identifierprovider.gen.go
- identitydeserializer.gen.go
- identitydeserializerprovider.gen.go
- identityprovider.gen.go
- ledgerprovider.gen.go
- mockaccesspolicy.go
- mockblockbuilder.go
- mockblockhandler.go
- mockblockpublisher.go
- mockcollconfigretriever.go
- mockdataprovider.go
- mockdatastore.go
- mockgossipadapter.go
- mockgossipmsg.go
- mockledger.go
- mockqueryexecutor.go
- mockresultsiterator.go
- mockrwsetbuilder.go
- mocksupport.go
- peerconfig.gen.go
- signingidentity.gen.go
- statedb.gen.go
- storeprovider.gen.go
- txsimulator.gen.go