Documentation ¶
Index ¶
- type MetadataProvider
- type PackageWriter
- type PackageWriterWrapper
- type Platform
- type Registry
- func (r *Registry) GenerateDockerBuild(ccType, path, name, version string, codePackage []byte) (io.Reader, error)
- func (r *Registry) GenerateDockerfile(ccType, name, version string) (string, error)
- func (r *Registry) GetDeploymentPayload(ccType, path string) ([]byte, error)
- func (r *Registry) GetMetadataProvider(ccType string, codePackage []byte) (MetadataProvider, error)
- func (r *Registry) StreamDockerBuild(ccType, path string, codePackage []byte, inputFiles map[string][]byte, ...) error
- func (r *Registry) ValidateDeploymentSpec(ccType string, codePackage []byte) error
- func (r *Registry) ValidateSpec(ccType, path string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetadataProvider ¶ added in v1.3.0
MetadataProvider is implemented by each platform in a platform specific manner. It can process metadata stored in ChaincodeDeploymentSpec in different formats. The common format is targz. Currently users expect the metadata to be presented as tar file entries (directly extracted from chaincode stored in targz format). In future, we would like provide better abstraction by extending the interface
type PackageWriter ¶ added in v1.3.0
type PackageWriterWrapper ¶ added in v1.3.0
type Platform ¶
type Platform interface { Name() string ValidatePath(path string) error ValidateCodePackage(code []byte) error GetDeploymentPayload(path string) ([]byte, error) GenerateDockerfile() (string, error) GenerateDockerBuild(path string, code []byte, tw *tar.Writer) error GetMetadataProvider(code []byte) MetadataProvider }
Interface for validating the specification and and writing the package for the given platform
type Registry ¶ added in v1.3.0
type Registry struct { Platforms map[string]Platform PackageWriter PackageWriter }
func (*Registry) GenerateDockerBuild ¶ added in v1.3.0
func (*Registry) GenerateDockerfile ¶ added in v1.3.0
func (*Registry) GetDeploymentPayload ¶ added in v1.3.0
func (*Registry) GetMetadataProvider ¶ added in v1.3.0
func (r *Registry) GetMetadataProvider(ccType string, codePackage []byte) (MetadataProvider, error)
func (*Registry) StreamDockerBuild ¶ added in v1.3.0
func (*Registry) ValidateDeploymentSpec ¶ added in v1.3.0
Click to show internal directories.
Click to hide internal directories.