package
1.1.0
Repository: https://github.com/lightkool/fabric.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

ChaincodePackageExists returns whether the chaincode package exists in the file system.
No description provided by the author
EnableCCInfoCache can be called to enable the cache.
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.
GetChaincodePackage returns the chaincode package from the file system.
GetChaincodeProvider returns instances of ChaincodeProvider; the actual implementation is controlled by the factory that is registered via RegisterChaincodeProviderFactory.
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.
NewCCContext just construct a new struct with whatever args.
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.
RegisterChaincodeProviderFactory is to be called once to set the factory that will be used to obtain instances of ChaincodeProvider.
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.
ChaincodeData defines the datastructure for chaincodes to be serialized by protoType provides an additional check by directing to use a specific package after instantiationData is Type specifc (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.

# 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.
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.
ChaincodeProviderFactory defines a factory interface so that the actual implementation can be injected.