Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BaseDockerLabel = "personal.candy"
View Source
var CommitSHA = "development build"
View Source
var DockerNamespace = "candy"
View Source
var Version = "latest"
Functions ¶
This section is empty.
Types ¶
type CodeDescriptor ¶
type CodeDescriptor struct { Source string // absolute path of the source to package MetadataRoot string // absolute path META-INF Path string // import path of the package Module bool // does this represent a go module }
CodeDescriptor describes the code we're packaging.
func DescribeCode ¶
func DescribeCode(path string) (*CodeDescriptor, error)
DescribeCode returns GOPATH and package information.
type DockerBuildOptions ¶
type GolangPlatform ¶
type GolangPlatform struct { }
func (*GolangPlatform) GenerateDockerBuild ¶
func (p *GolangPlatform) GenerateDockerBuild(cType, path string, codePackage io.Reader, client *docker.Client) (io.Reader, error)
----------------------------------------------------------------- generate dockerfile
func (*GolangPlatform) GetDeploymentPayload ¶
func (p *GolangPlatform) GetDeploymentPayload(codePath string) ([]byte, error)
func (*GolangPlatform) NormalizePath ¶
func (p *GolangPlatform) NormalizePath(cType, path string) (string, error)
type ModuleInfo ¶
type PackageInfo ¶
type PackageInfo struct { ImportPath string Dir string GoFiles []string Goroot bool CFiles []string CgoFiles []string HFiles []string SFiles []string IgnoredGoFiles []string Incomplete bool }
PackageInfo is the subset of data from `go list -deps -json` that's necessary to calculate chaincode package dependencies.
func (PackageInfo) Files ¶
func (p PackageInfo) Files() []string
type PackageWriter ¶
type PackageWriterWrapper ¶
type PlatformRegistry ¶
type SourceDescriptor ¶
Click to show internal directories.
Click to hide internal directories.