Documentation ¶
Index ¶
- func GetDeploymentPayload(path string) ([]byte, error)
- func NewCCPackage(chaincodePath string, goPath string) (*resource.CCPackage, error)
- func NewCDSPackage(chaincodePath string, goPath string) (*resource.CCPackage, error)
- func WriteFileToPackage(localpath string, packagepath string, tw *tar.Writer) error
- func WriteFolderToTarPackage(tw *tar.Writer, srcPath string, excludeDirs []string, ...) error
- func WriteStreamToPackage(is io.Reader, localpath string, packagepath string, tw *tar.Writer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDeploymentPayload ¶
func NewCCPackage ¶
NewCCPackage creates new node chaincode package
func NewCDSPackage ¶
func WriteFileToPackage ¶
WriteFileToPackage writes a file to the tarball
func WriteFolderToTarPackage ¶
func WriteFolderToTarPackage(tw *tar.Writer, srcPath string, excludeDirs []string, includeFileTypeMap map[string]bool, excludeFileTypeMap map[string]bool) error
WriteFolderToTarPackage writes source files to a tarball. This utility is used for node js chaincode packaging, but not golang chaincode. Golang chaincode has more sophisticated file packaging, as implemented in golang/platform.go.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.