package
3.0.0+incompatible
Repository: https://github.com/hyperledger/fabric.git
Documentation: pkg.go.dev
# Functions
ChaincodePackageExists returns whether the chaincode package exists in the file system.
ExtractFileEntries extract file entries from the given `tarBytes`.
ExtractStatedbArtifactsForChaincode 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.
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.
LoadPackage loads a chaincode package from the file system.
MetadataAsTarEntries extracts metadata from a chaincode package.
NewCCInfoCache returns a new cache on top of the supplied CCInfoProvider instance.
SetChaincodesPath sets the chaincode path for this peer.
# Structs
CCInfoFSImpl provides the implementation for CC on the FS and the access to it It implements CCCacheSupport.
----- CDSData ------ CDSData is data stored in the LSCC on instantiation of a CC for CDSPackage.
CDSPackage encapsulates ChaincodeDeploymentSpec.
-------- ChaincodeData is stored on the LSCC ------- 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 ------ SignedCDSData is data stored in the LSCC on instantiation of a CC for 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
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.
GetHasher interface defines a subset of bccsp which contains GetHash function.
# Type aliases
ChaincodeExtractor extracts chaincode from a given path.
DirEnumerator enumerates directories.