...

Package node

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

Overview ▾

type Platform

Platform for chaincodes written in Go

type Platform struct {
}

func (*Platform) GenerateDockerBuild

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

func (*Platform) GenerateDockerfile

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

func (*Platform) GetDeploymentPayload

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

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

GetMetadataProvider fetches metadata provider given deployment spec

func (*Platform) Name

func (nodePlatform *Platform) Name() string

Name returns the name of this platform

func (*Platform) ValidateCodePackage

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

func (*Platform) ValidatePath

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

ValidateSpec validates Go chaincodes