fabric: github.com/hyperledger/fabric/core/container/util Index | Files

package util

import "github.com/hyperledger/fabric/core/container/util"


Package Files

dockerutil.go writer.go

func GetDockerfileFromConfig Uses

func GetDockerfileFromConfig(path string) string

func NewDockerClient Uses

func NewDockerClient() (client *docker.Client, err error)

NewDockerClient creates a docker client

func ParseDockerfileTemplate Uses

func ParseDockerfileTemplate(template string) string

func WriteBytesToPackage Uses

func WriteBytesToPackage(name string, payload []byte, tw *tar.Writer) error

func WriteFileToPackage Uses

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

WriteFileToPackage writes a file to the tarball

func WriteFolderToTarPackage Uses

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 WriteJavaProjectToPackage Uses

func WriteJavaProjectToPackage(tw *tar.Writer, srcPath string) error

Package Java project to tar file from the source path

func WriteStreamToPackage Uses

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

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

Package util imports 17 packages (graph) and is imported by 132 packages. Updated 2019-09-16. Refresh now. Tools for package owners.