type CodeDescriptor struct { Gopath, Pkg string Cleanup func() }
type Env map[string]string
type Paths map[string]bool
Platform for chaincodes written in Go
type Platform struct { }
func (goPlatform *Platform) GenerateDockerBuild(path string, code []byte, tw *tar.Writer) error
func (goPlatform *Platform) GenerateDockerfile() (string, error)
func (goPlatform *Platform) GetDeploymentPayload(path string) ([]byte, error)
Generates a deployment payload for GOLANG as a series of src/$pkg entries in .tar.gz format
func (goPlatform *Platform) GetMetadataProvider(code []byte) platforms.MetadataProvider
GetMetadataProvider fetches metadata provider given deployment spec
func (goPlatform *Platform) Name() string
Name returns the name of this platform
func (goPlatform *Platform) ValidateCodePackage(code []byte) error
func (goPlatform *Platform) ValidatePath(rawPath string) error
ValidateSpec validates Go chaincodes
type SourceDescriptor struct { Name, Path string IsMetadata bool Info os.FileInfo }
type SourceMap map[string]SourceDescriptor
type Sources []SourceDescriptor
func (s Sources) Len() int
func (s Sources) Less(i, j int) bool
func (s Sources) Swap(i, j int)