platforms

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2018 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateDockerBuild added in v1.0.0

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

func GetDeploymentPayload added in v1.0.0

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

Types

type InputFiles added in v1.0.0

type InputFiles map[string][]byte

type Platform

type Platform interface {
	ValidateSpec(spec *pb.ChaincodeSpec) error
	ValidateDeploymentSpec(spec *pb.ChaincodeDeploymentSpec) error
	GetDeploymentPayload(spec *pb.ChaincodeSpec) ([]byte, error)
	GenerateDockerfile(spec *pb.ChaincodeDeploymentSpec) (string, error)
	GenerateDockerBuild(spec *pb.ChaincodeDeploymentSpec, tw *tar.Writer) error
	GetMetadataProvider(spec *pb.ChaincodeDeploymentSpec) ccmetadata.MetadataProvider
}

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

func Find added in v1.0.0

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

Find returns the platform interface for the given platform type

Directories

Path Synopsis
# Copyright State Street Corp.
# Copyright State Street Corp.
# Copyright State Street Corp.
# Copyright State Street Corp.

Jump to

Keyboard shortcuts

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