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

package node

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


Package Files


type Platform Uses

type Platform struct {

Platform for chaincodes written in Go

func (*Platform) GenerateDockerBuild Uses

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

func (*Platform) GenerateDockerfile Uses

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

func (*Platform) GetDeploymentPayload Uses

func (nodePlatform *Platform) GetDeploymentPayload(path string) ([]byte, error)

Generates a deployment payload by putting source files in src/$file entries in .tar.gz format

func (*Platform) GetMetadataProvider Uses

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

GetMetadataProvider fetches metadata provider given deployment spec

func (*Platform) Name Uses

func (nodePlatform *Platform) Name() string

Name returns the name of this platform

func (*Platform) ValidateCodePackage Uses

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

func (*Platform) ValidatePath Uses

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

ValidateSpec validates Go chaincodes

Package node imports 16 packages (graph) and is imported by 5 packages. Updated 2018-12-12. Refresh now. Tools for package owners.