package
3.0.0+incompatible
Repository: https://github.com/hyperledger/fabric.git
Documentation: pkg.go.dev
# Packages
Code generated by counterfeiter.
# Functions
NewStore creates a new chaincode persistence store using the provided path on the filesystem.
PackageID returns the package ID with the label and hash of the chaincode install package.
ParseChaincodePackage parses a set of bytes as a chaincode package and returns the parsed package as a metadata struct and a code package.
ValidateLabel return an error if the provided label contains any invalid characters, as determined by LabelRegexp.
# Constants
CodePackageFile is the expected location of the code package in the top level of the chaincode package.
MetadataFile is the expected location of the metadata json document in the top level of the chaincode package.
# Variables
LabelRegexp is the regular expression controlling the allowed characters for the package label.
# Structs
ChaincodePackage represents the un-tar-ed format of the chaincode package.
ChaincodePackageMetadata contains the information necessary to understand the embedded code package.
ChaincodePackageParser provides the ability to parse chaincode packages.
CodePackageNotFoundErr is the error returned when a code package cannot be found in the persistence store.
FilesystemIO is the production implementation of the IOWriter interface.
Store holds the information needed for persisting a chaincode install package.
# Interfaces
IOReadWriter defines the interface needed for reading, writing, removing, and checking for existence of a specified file.
MetadataProvider provides the means to retrieve metadata information (for instance the DB indexes) from a code package.