package
1.4.12
Repository: https://github.com/solidityproj/fabric.git
Documentation: pkg.go.dev

# Functions

ChaincodePackageExists returns whether the chaincode package exists in the file system.
No description provided by the author
No description provided by the author
ExtractFileEntries extract file entries from the given `tarBytes`.
ExtractStatedbArtifactsAsTarbytes extracts the statedb artifacts from the code package tar and create a statedb artifact tar.
ExtractStatedbArtifactsFromCCPackage extracts the statedb artifacts from the code package tar and create a statedb artifact tar.
GetCCPackage tries each known package implementation one by one till the right package is found.
GetChaincodeData gets chaincode data from cache if there's one.
GetChaincodeFromFS retrieves chaincode information from the file system.
GetChaincodeInstallPathFromViper returns the path where chaincodes are installed.
No description provided by the author
GetChaincodePackage returns the chaincode package from the file system.
GetInstalledChaincodes returns a map whose key is the chaincode id and value is the ChaincodeDeploymentSpec struct for that chaincodes that have been installed (but not necessarily instantiated) on the peer by searching the chaincode install path.
IsChaincodeDeployed returns true if the chaincode with given name and version is deployed.
LoadPackage loads a chaincode package from the file system.
NewCCInfoCache returns a new cache on top of the supplied CCInfoProvider instance.
PutChaincodeIntoFS puts chaincode information in the file system (and also in the cache to prime it) if the cache is enabled, or directly from the file system otherwise.
SetChaincodesPath sets the chaincode path for this peer.

# Structs

CCContext pass this around instead of string of args.
CCInfoFSImpl provides the implementation for CC on the FS and the access to it It implements CCCacheSupport.
CDSData is data stored in the LSCC on instantiation of a CCfor CDSPackage.
CDSPackage encapsulates ChaincodeDeploymentSpec.
ChaincodeContainerInfo is yet another synonym for the data required to start/stop a chaincode.
ChaincodeData defines the datastructure for chaincodes to be serialized by proto Type provides an additional check by directing to use a specific package after instantiation Data is Type specific (see CDSPackage and SignedCDSPackage).
SignedCDSData is data stored in the LSCC on instantiation of a CCfor SignedCDSPackage.
SignedCDSPackage encapsulates SignedChaincodeDeploymentSpec.
tarFileEntry encapsulates a file entry and it's contents inside a tar.
TransactionParams are parameters which are tied to a particular transaction and which are required for invoking chaincode.

# Interfaces

No description provided by the author
CCPackage encapsulates a chaincode package which can be raw ChaincodeDeploymentSpec SignedChaincodeDeploymentSpec Attempt to keep the interface at a level with minimal interface for possible generalization.
-------- ChaincodeDefinition - interface for ChaincodeData ------ ChaincodeDefinition describes all of the necessary information for a peer to decide whether to endorse a proposal and whether to validate a transaction, for a particular chaincode.
ChaincodeProvider provides an abstraction layer that is used for different packages to interact with code in the chaincode package without importing it; more methods should be added below if necessary.

# Type aliases

ChaincodeExtractor extracts chaincode from a given path.
DirEnumerator enumerates directories.