golang

package
v0.0.0-...-bef689d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 28, 2019 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CodeDescriptor

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

type Env

type Env map[string]string

type Paths

type Paths map[string]bool

type Platform

type Platform struct {
}

Platform for chaincodes written in Go

func (*Platform) GenerateDockerBuild

func (goPlatform *Platform) GenerateDockerBuild(cds *pb.ChaincodeDeploymentSpec, tw *tar.Writer) error

func (*Platform) GenerateDockerfile

func (goPlatform *Platform) GenerateDockerfile(cds *pb.ChaincodeDeploymentSpec) (string, error)

func (*Platform) GetDeploymentPayload

func (goPlatform *Platform) GetDeploymentPayload(spec *pb.ChaincodeSpec) ([]byte, error)

Generates a deployment payload for GOLANG as a series of src/$pkg entries in .tar.gz format

func (*Platform) GetMetadataProvider

func (goPlatform *Platform) GetMetadataProvider(cds *pb.ChaincodeDeploymentSpec) ccmetadata.MetadataProvider

GetMetadataProvider fetches metadata provider given deployment spec

func (*Platform) ValidateDeploymentSpec

func (goPlatform *Platform) ValidateDeploymentSpec(cds *pb.ChaincodeDeploymentSpec) error

func (*Platform) ValidateSpec

func (goPlatform *Platform) ValidateSpec(spec *pb.ChaincodeSpec) error

ValidateSpec validates Go chaincodes

type SourceDescriptor

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

type SourceMap

type SourceMap map[string]SourceDescriptor

type Sources

type Sources []SourceDescriptor

func (Sources) Len

func (s Sources) Len() int

func (Sources) Less

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

func (Sources) Swap

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL