fabric: github.com/hyperledger/fabric/core/chaincode/platforms/golang Index | Files

package golang

import "github.com/hyperledger/fabric/core/chaincode/platforms/golang"


Package Files

env.go list.go package.go platform.go

type CodeDescriptor Uses

type CodeDescriptor struct {
    Gopath, Pkg string
    Cleanup     func()

type Env Uses

type Env map[string]string

type Paths Uses

type Paths map[string]bool

type Platform Uses

type Platform struct {

Platform for chaincodes written in Go

func (*Platform) GenerateDockerBuild Uses

func (goPlatform *Platform) GenerateDockerBuild(path string, code []byte, tw *tar.Writer) error

func (*Platform) GenerateDockerfile Uses

func (goPlatform *Platform) GenerateDockerfile() (string, error)

func (*Platform) GetDeploymentPayload Uses

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 (*Platform) GetMetadataProvider Uses

func (goPlatform *Platform) GetMetadataProvider(code []byte) platforms.MetadataProvider

GetMetadataProvider fetches metadata provider given deployment spec

func (*Platform) Name Uses

func (goPlatform *Platform) Name() string

Name returns the name of this platform

func (*Platform) ValidateCodePackage Uses

func (goPlatform *Platform) ValidateCodePackage(code []byte) error

func (*Platform) ValidatePath Uses

func (goPlatform *Platform) ValidatePath(rawPath string) error

ValidateSpec validates Go chaincodes

type SourceDescriptor Uses

type SourceDescriptor struct {
    Name, Path string
    IsMetadata bool
    Info       os.FileInfo

type SourceMap Uses

type SourceMap map[string]SourceDescriptor

type Sources Uses

type Sources []SourceDescriptor

func (Sources) Len Uses

func (s Sources) Len() int

func (Sources) Less Uses

func (s Sources) Less(i, j int) bool

func (Sources) Swap Uses

func (s Sources) Swap(i, j int)

Package golang imports 23 packages (graph) and is imported by 33 packages. Updated 2018-12-11. Refresh now. Tools for package owners.