platforms

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2020 License: GPL-3.0, GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateDockerBuild

func GenerateDockerBuild(cds *pb.PtnChaincodeDeploymentSpec) (io.Reader, error)

func GetChainCodePayload

func GetChainCodePayload(spec *pb.PtnChaincodeSpec) ([]byte, error)

func GetDeploymentPayload

func GetDeploymentPayload(spec *pb.PtnChaincodeSpec) ([]byte, error)

func GetPlatformEnvPath

func GetPlatformEnvPath(spec *pb.PtnChaincodeSpec) (string, error)

Types

type InputFiles

type InputFiles map[string][]byte

type Platform

type Platform interface {
	ValidateSpec(spec *pb.PtnChaincodeSpec) error
	ValidateDeploymentSpec(spec *pb.PtnChaincodeDeploymentSpec) error
	GetChainCodePayload(spec *pb.PtnChaincodeSpec) ([]byte, error)
	GetDeploymentPayload(spec *pb.PtnChaincodeSpec) ([]byte, error)
	GenerateDockerfile(spec *pb.PtnChaincodeDeploymentSpec) (string, error)
	GenerateDockerBuild(spec *pb.PtnChaincodeDeploymentSpec, tw *tar.Writer) error
	GetPlatformEnvPath(spec *pb.PtnChaincodeSpec) (string, error)
}

Interface for validating the specification and and writing the package for the given platform

func Find

func Find(chaincodeType pb.PtnChaincodeSpec_Type) (Platform, error)

Find returns the platform interface for the given platform type

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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