Documentation
¶
Index ¶
- Variables
- type NormalizePather
- type PackageInput
- type PackageMetadata
- type Packager
- type Platform
- type PlatformRegistry
- type Registry
- func (r *Registry) GetDeploymentPayload(ccType, path string, replacer replacer.Func) ([]byte, error)
- func (r *Registry) NormalizePath(ccType, path string) (string, error)
- func (r *Registry) ValidateDeploymentSpec(ccType string, codePackage []byte) error
- func (r *Registry) ValidateSpec(ccType, path string) error
- type Writer
Constants ¶
This section is empty.
Variables ¶
SupportedPlatforms is the canonical list of platforms Fabric supports
Functions ¶
This section is empty.
Types ¶
type NormalizePather ¶
NormalizePather is an optional interface that can be implemented by platforms to modify the path stored in the chaincode ID.
type PackageInput ¶
PackageInput holds the input parameters for packaging a ChaincodeInstallPackage
func (*PackageInput) Validate ¶
func (p *PackageInput) Validate() error
Validate checks for the required inputs
type PackageMetadata ¶
type PackageMetadata struct {
Path string `json:"path"`
Type string `json:"type"`
Label string `json:"label"`
}
PackageMetadata holds the path and type for a chaincode package
type Packager ¶
type Packager struct {
Input *PackageInput
PlatformRegistry PlatformRegistry
Writer Writer
}
Packager holds the dependencies needed to package a chaincode and write it
func NewWithRegistry ¶ added in v0.4.0
func NewWithRegistry(PlatformRegistry PlatformRegistry) *Packager
type Platform ¶
type Platform interface {
Name() string
ValidatePath(path string) error
ValidateCodePackage(code []byte) error
GetDeploymentPayload(path string, replacer replacer.Func) ([]byte, error)
}
Interface for validating the specification and writing the package for the given platform
type PlatformRegistry ¶
type PlatformRegistry interface {
GetDeploymentPayload(ccType, path string, replacer replacer.Func) ([]byte, error)
NormalizePath(ccType, path string) (string, error)
}
PlatformRegistry defines the interface to get the code bytes for a chaincode given the type and path
type Registry ¶
func NewRegistry ¶
func (*Registry) GetDeploymentPayload ¶
func (*Registry) NormalizePath ¶
func (*Registry) ValidateDeploymentSpec ¶
func (*Registry) ValidateSpec ¶
Click to show internal directories.
Click to hide internal directories.