Documentation ¶
Index ¶
- func WriteBytesToPackage(raw []byte, packagepath string, tw *tar.Writer) error
- type Platform
- func (p *Platform) GetDeploymentPayload(codepath string, replacer replacer.Func) ([]byte, error)
- func (p *Platform) Name() string
- func (p *Platform) NormalizePath(rawPath string) (string, error)
- func (p *Platform) ValidateCodePackage(code []byte) error
- func (p *Platform) ValidatePath(rawPath string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Platform ¶
type Platform struct{}
Platform for external chaincodes
func (*Platform) GetDeploymentPayload ¶
GetDeploymentPayload creates a gzip compressed tape archive that contains the required assets to build and run go chaincode.
NOTE: this is only used at the _client_ side by the peer CLI.
func (*Platform) NormalizePath ¶
NormalizePath is used to extract a relative module path from a module root. This should not impact legacy GOPATH chaincode.
NOTE: this is only used at the _client_ side by the peer CLI.
func (*Platform) ValidateCodePackage ¶
ValidateCodePackage examines the chaincode archive to ensure it is valid.
NOTE: this code is used in some transaction validation paths but can be changed post 2.0.
func (*Platform) ValidatePath ¶
ValidatePath is used to ensure that path provided points to something that looks like go chainccode.
NOTE: this is only used at the _client_ side by the peer CLI.