package
2.0.0-beta+incompatible
Repository: https://github.com/ibm/fabric.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Code generated by counterfeiter.
No description provided by the author
No description provided by the author
No description provided by the author
# 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.
CommitOptions encapsulates options associated with a block commit.
Config is a structure used to configure a ledger provider.
DeployedChaincodeInfo encapsulates chaincode information from the deployed chaincodes.
ErrCollectionConfigNotYetAvailable is an error which is returned from the function ConfigHistoryRetriever.CollectionConfigAt() if the latest block number committed is lower than the block number specified in the request.
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 See function `PeerLedger.CommitPvtData` for the usages.
ReconciledPvtdata contains the private data for a block for reconciliation.
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.
No description provided by the author
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.
Hasher implements the hash function that should be used for all ledger components.
No description provided by the author
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.
NotFoundInIndexErr is used to indicate missing entry in the index.
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.
TxMissingPvtDataMap is a map from txNum to the list of missing pvtData.
TxPvtDataMap is a map from txNum to the pvtData.