Documentation
¶
Index ¶
- func GenerateDockerBuild(cds *pb.ChaincodeDeploymentSpec) (io.Reader, error)
- func GetChainCodePayload(spec *pb.ChaincodeSpec) ([]byte, error)
- func GetDeploymentPayload(spec *pb.ChaincodeSpec) ([]byte, error)
- func GetPlatformEnvPath(spec *pb.ChaincodeSpec) (string, error)
- type InputFiles
- type Platform
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateDockerBuild ¶
func GenerateDockerBuild(cds *pb.ChaincodeDeploymentSpec) (io.Reader, error)
func GetChainCodePayload ¶
func GetChainCodePayload(spec *pb.ChaincodeSpec) ([]byte, error)
func GetDeploymentPayload ¶
func GetDeploymentPayload(spec *pb.ChaincodeSpec) ([]byte, error)
func GetPlatformEnvPath ¶
func GetPlatformEnvPath(spec *pb.ChaincodeSpec) (string, error)
Types ¶
type InputFiles ¶
type Platform ¶
type Platform interface { ValidateSpec(spec *pb.ChaincodeSpec) error ValidateDeploymentSpec(spec *pb.ChaincodeDeploymentSpec) error GetChainCodePayload(spec *pb.ChaincodeSpec) ([]byte, error) GetDeploymentPayload(spec *pb.ChaincodeSpec) ([]byte, error) GenerateDockerfile(spec *pb.ChaincodeDeploymentSpec) (string, error) GenerateDockerBuild(spec *pb.ChaincodeDeploymentSpec, tw *tar.Writer) error GetPlatformEnvPath(spec *pb.ChaincodeSpec) (string, error) }
Interface for validating the specification and and writing the package for the given platform
Click to show internal directories.
Click to hide internal directories.