package
2.0.0-beta+incompatible
Repository: https://github.com/ibm/fabric.git
Documentation: pkg.go.dev
# Packages
Code generated by counterfeiter.
# Functions
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
NewChaincodeCustodian creates an instance of a chaincode custodian.
No description provided by the author
No description provided by the author
NewMetadataProvider returns a new MetadataProvider instance.
No description provided by the author
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.
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.
No description provided by the author
FriendlyChaincodeDefinitionType is the name exposed to the outside world for the chaincode namespace.
InstallChaincodeFuncName is the chaincode function name used to install a chaincode.
No description provided by the author
LifecycleNamespace is the namespace in the statedb where lifecycle information is stored.
No description provided by the author
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.
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.
No description provided by the author
No description provided by the author
No description provided by the author
This is a channel which was created with a lifecycle endorsement policy.
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
ChaincodeCustodian is responsible for enqueuing builds and launches of chaincodes as they become available.
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.
No description provided by the author
No description provided by the author
ChaincodeLocalPackage is a type of chaincode-source 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.
No description provided by the author
No description provided by the author
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.
No description provided by the author
No description provided by the author
No description provided by the author
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.
No description provided by the author
No description provided by the author
Resources stores the common functions needed by all components of the lifecycle by the SCC as well as internally.
No description provided by the author
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.
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author
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.
No description provided by the author
No description provided by the author
No description provided by the author
QueryExecutorProvider provides a way to retrieve the query executor assosciated with an invocation.
No description provided by the author
No description provided by the author
No description provided by the author
SCCFunctions provides a backing implementation with concrete arguments for each of the SCC functions.
No description provided by the author
# Type aliases
HandleMetadataUpdateFunc is triggered upon a change in the chaincode lifecycle.
No description provided by the author