packager

package
v0.0.0-...-9a3149e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 25, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDeploymentPayload

func GetDeploymentPayload(path string) ([]byte, error)

func NewCCPackage

func NewCCPackage(chaincodePath string, goPath string) (*resource.CCPackage, error)

NewCCPackage creates new node chaincode package

func NewCDSPackage

func NewCDSPackage(chaincodePath string, goPath string) (*resource.CCPackage, error)

func WriteFileToPackage

func WriteFileToPackage(localpath string, packagepath string, tw *tar.Writer) error

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.

func WriteStreamToPackage

func WriteStreamToPackage(is io.Reader, localpath string, packagepath string, tw *tar.Writer) error

WriteStreamToPackage writes bytes (from a file reader) to the tarball

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL