package
3.0.0+incompatible
Repository: https://github.com/hyperledger/fabric.git
Documentation: pkg.go.dev
# Packages
Code generated by counterfeiter.
# Functions
NewPvtNsCollFilter constructs an empty PvtNsCollFilter.
# Structs
BlockAndPvtData encapsulates the block and a map that contains the tuples <seqInBlock, *TxPvtData> The map is expected to contain the entries only for the transactions that has associated pvt data.
BlockPvtdata contains the retrieved private data as well as missing and ineligible private data for use at commit time.
ChaincodeDefinition captures the info about chaincode.
ChaincodeLifecycleDetails captures the finer details of chaincode lifecycle event.
ChaincodeLifecycleInfo captures the update info of a chaincode.
CollConfigNotDefinedError is returned whenever an operation is requested on a collection whose config has not been defined.
CollectionConfigInfo encapsulates a collection config for a chaincode and its committing block number.
CollectionPvtdataInfo contains information about the private data for a given collection.
CommitNotification is sent on each block commit to the channel returned by PeerLedger.CommitNotificationsChannel().
CommitNotificationTxInfo contains the details of a transaction that is included in the CommitNotification ChaincodeID will be nil if the transaction is not an endorser transaction.
CommitOptions encapsulates options associated with a block commit.
Config is a structure used to configure a ledger provider.
CouchDBConfig is a structure used to configure a CouchInstance.
DeployedChaincodeInfo encapsulates chaincode information from the deployed chaincodes.
HistoryDBConfig is a structure used to configure the transaction history database.
Initializer encapsulates dependencies for PeerLedgerProvider.
InvalidCollNameError is returned whenever an operation is requested on a collection whose name is invalid.
InvalidTxError is expected to be thrown by a custom transaction processor if it wants the ledger to record a particular transaction as invalid.
KVStateUpdates captures the state updates for a namespace for KV datamodel.
MissingCollectionPvtDataInfo includes the name of the chaincode and collection for which private data is missing.
MissingPvtData contains a namespace and collection for which the pvtData is not present.
PrivateDataConfig is a structure used to configure a private data storage provider.
PvtdataHashMismatch is used when the hash of private write-set does not match the corresponding hash present in the block or there is a mismatch with the boot-KV-hashes present in the private block store if the legder is created from a snapshot.
ReconciledPvtdata contains the private data for a block for reconciliation.
SnapshotsConfig is a structure used to configure snapshot function.
StateDBConfig is a structure used to configure the state parameters for the ledger.
StateUpdateTrigger encapsulates the information and helper tools that may be used by a StateListener.
TxPvtData encapsulates the transaction number and pvt write-set for a transaction.
TxPvtdataInfo captures information about the requested private data to be retrieved.
TxSimulationResults captures the details of the simulation results.
# Interfaces
ChaincodeLifecycleEventListener interface enables ledger components (mainly, intended for statedb) to be able to listen to chaincode lifecycle events.
ChaincodeLifecycleEventProvider enables ledger to create indexes in the statedb.
ConfigHistoryRetriever allow retrieving history of collection configs.
CustomTxProcessor allows to generate simulation results during commit time for custom transactions.
DeployedChaincodeInfoProvider is a dependency that is used by ledger to build collection config history LSCC module is expected to provide an implementation for this dependencies.
HashProvider provides access to a hash.Hash for ledger components.
HistoryQueryExecutor executes the history queries.
MembershipInfoProvider is a dependency that is used by ledger to determine whether the current peer is a member of a collection.
MissingPvtDataTracker allows getting information about the private data that is not missing on the peer.
PeerLedger differs from the OrdererLedger in that PeerLedger locally maintain a bitmask that tells apart valid transactions from invalid ones.
PeerLedgerProvider provides handle to ledger instances.
QueryExecutor executes the queries Get* methods are for supporting KV-based data model.
QueryResultsIterator - an iterator for query result set.
RetrievedPvtdata is a dependency that is implemented by coordinator/gossip for ledger to be able to purge the transactions from the block after retrieving private data.
SimpleQueryExecutor encapsulates basic functions.
StateListener allows a custom code for performing additional stuff upon state change for a particular namespace against which the listener is registered.
TxSimulator simulates a transaction on a consistent snapshot of the 'as recent state as possible' Set* methods are for supporting KV-based data model.
# Type aliases
MissingBlockPvtdataInfo is a map of transaction number (within the block) to MissingCollectionPvtDataInfo.
MissingPvtDataInfo is a map of block number to MissingBlockPvtdataInfo.
PrivateReads captures which private data collections are read during TX simulation.
PvtCollFilter represents the set of the collection names (as keys of the map with value 'true').
PvtNsCollFilter specifies the tuple <namespace, PvtCollFilter>.
StateUpdates encapsulates the state updates.
TxMissingPvtData is a map from txNum to the list of missing pvtData.
TxPvtDataMap is a map from txNum to the pvtData.
WritesetMetadata represents the content of the state metadata for each state (key) that gets written to during transaction simulation.