package
3.0.0+incompatible
Repository: https://github.com/hyperledger/fabric.git
Documentation: pkg.go.dev
# Packages
Code generated by counterfeiter.
# Functions
NewChaincodeCustodian creates an instance of a chaincode custodian.
NewMetadataProvider returns a new MetadataProvider instance.
StateIteratorToMap takes an iterator, and iterates over the entire thing, encoding the KVs into a map, and then closes it.
# Constants
ApproveChaincodeDefinitionForMyOrgFuncName is the chaincode function name used to approve a chaincode definition for execution by the user's own org.
ChaincodeDefinitionType is the name of the type used to store defined chaincodes.
ChaincodeLocalPackageType is the name of the type of chaincode-sources which may be serialized into the org's private data collection.
ChaincodeParametersType is the name of the type used to store the parts of the chaincode definition which are serialized as values in the statedb.
ChaincodeSourcesName is the namespace reserved for storing the information about where to find the chaincode (such as as a package on the local filesystem, or in the future, at some network resource).
CheckCommitReadinessFuncName is the chaincode function name used to check a specified chaincode definition is ready to be committed.
CommitChaincodeDefinitionFuncName is the chaincode function name used to 'commit' (previously 'instantiate') a chaincode in a channel.
DefaultEndorsementPolicyRef is the name of the default endorsement policy for this channel.
FriendlyChaincodeDefinitionType is the name exposed to the outside world for the chaincode namespace.
InstallChaincodeFuncName is the chaincode function name used to install a chaincode.
LifecycleNamespace is the namespace in the statedb where lifecycle information is stored.
NamespacesName is the prefix (or namespace) of the DB which will be used to store the information about other namespaces (for things like chaincodes) in the DB.
QueryApprovedChaincodeDefinitionFuncName is the chaincode function name used to query a approved chaincode definition for the user's own org.
QueryApprovedChaincodeDefinitionsFuncName is the chaincode function name used to query all approved chaincode definitions for the user's own org in a channel.
QueryChaincodeDefinitionFuncName is the chaincode function name used to query a committed chaincode definition in a channel.
QueryChaincodeDefinitionsFuncName is the chaincode function name used to query the committed chaincode definitions in a channel.
QueryInstalledChaincodeFuncName is the chaincode function name used to query an installed chaincode.
QueryInstalledChaincodesFuncName is the chaincode function name used to query all installed chaincodes.
# Variables
NOTE the chaincode name/version regular expressions should stay in sync with those defined in core/scc/lscc/lscc.go until LSCC has been removed.
This is a channel which was created with a lifecycle endorsement policy.
# Structs
ChaincodeCustodian is responsible for enqueuing builds and launches of chaincodes as they become available and stops when chaincodes are no longer referenced by an active chaincode definition.
ChaincodeDefinition contains the chaincode parameters, as well as the sequence number of the definition.
ChaincodeEndorsementInfo contains the information necessary to handle a chaincode invoke request.
ChaincodeLocalPackage is a type of chaincode-sources which may be serialized into the org's private data collection.
ChaincodeParameters are the parts of the chaincode definition which are serialized as values in the statedb.
ChaincodePrivateLedgerShim wraps the chaincode shim to make access to keys in a collection have the same semantics as normal public keys.
ChaincodePublicLedgerShim decorates the chaincode shim to support the state interfaces required by the serialization code.
DummyQueryExecutorShim implements the ReadableState interface.
ErrNamespaceNotDefined is the error returned when a namespace is not defined.
EventBroker receives events from lifecycle cache and in turn invokes the registered listeners.
ExternalFunctions is intended primarily to support the SCC functions.
MetadataManager stores metadata about the chaincodes installed/deployed via _lifecycle (Metadaset) and lscc (LegacyMetadataSet) and updates any registered listeners upon a change in the metadata.
Resources stores the common functions needed by all components of the lifecycle by the SCC as well as internally.
SCC implements the required methods to satisfy the chaincode interface.
Serializer is used to write structures into the db and to read them back out.
SimpleQueryExecutorShim implements the ReadableState and RangeableState interfaces based on an underlying ledger.SimpleQueryExecutor.
# Interfaces
go:generate counterfeiter -o mock/chaincode_info_cache.go --fake-name ChaincodeInfoCache .
ChaincodeInfoProvider provides metadata for a _lifecycle-defined chaincode on a specific channel.
go:generate counterfeiter -o mock/chaincode_launcher.go --fake-name ChaincodeLauncher .
ChaincodeStore provides a way to persist chaincodes.
ChannelConfigSource provides a way to retrieve the channel config for a given channel ID.
ChannelPolicyReferenceProvider is used to determine if a set of signature is valid and complies with a policy.
go:generate counterfeiter -o mock/installed_chaincodes_lister.go --fake-name InstalledChaincodesLister .
go:generate counterfeiter -o mock/install_listener.go --fake-name InstallListener .
go:generate counterfeiter -o mock/legacy_ccinfo.go --fake-name LegacyDeployedCCInfoProvider .
LegacyMetadataProvider provides metadata for a lscc-defined chaincode on a specific channel.
Lifecycle is the interface which the core/chaincode package and core/endorser package requires that lifecycle satisfy.
MetadataHandler is the interface through which the cache drives metadata updates for listeners such as gossip and service discovery.
MetadataUpdateListener runs whenever there is a change to the metadata of a chaincode in the context of a specific channel.
QueryExecutorProvider provides a way to retrieve the query executor associated with an invocation.
SCCFunctions provides a backing implementation with concrete arguments for each of the SCC functions.
# Type aliases
HandleMetadataUpdateFunc is triggered upon a change in the chaincode lifecycle.