{"modulePath":"github.com/eric-erki/https-hyperledger.org","version":"v1.4.4","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package util\n\n## Functions\n\n```go\nfunc GetDockerfileFromConfig(path string) string\n```\n\n```go\nfunc NewDockerClient() (client *docker.Client, err error)\n```\nNewDockerClient creates a docker client\n\n```go\nfunc ParseDockerfileTemplate(template string) string\n```\n\n```go\nfunc WriteBytesToPackage(name string, payload []byte, tw *tar.Writer) error\n```\n\n```go\nfunc WriteFileToPackage(localpath string, packagepath string, tw *tar.Writer) error\n```\nWriteFileToPackage writes a file to the tarball\n\n```go\nfunc WriteFolderToTarPackage(tw *tar.Writer, srcPath string, excludeDirs []string, includeFileTypeMap map[string]bool, excludeFileTypeMap map[string]bool) error\n```\nWriteFolderToTarPackage 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.\n\n```go\nfunc WriteJavaProjectToPackage(tw *tar.Writer, srcPath string) error\n```\nPackage Java project to tar file from the source path\n\n```go\nfunc WriteStreamToPackage(is io.Reader, localpath string, packagepath string, tw *tar.Writer) error\n```\nWriteStreamToPackage writes bytes (from a file reader) to the tarball\n\n","path":"github.com/eric-erki/https-hyperledger.org/core/container/util","name":"util","synopsis":"","isRedistributable":true}
