This section is empty.


View Source
var SupportedPlatforms = []Platform{

    SupportedPlatforms is the canonical list of platforms Fabric supports


    This section is empty.


    type NormalizePather

    type NormalizePather interface {
    	NormalizePath(path string) (string, error)

      NormalizerPather is an optional interface that can be implemented by platforms to modify the path stored in the chaincde ID.

      type Platform

      type Platform interface {
      	Name() string
      	ValidatePath(path string) error
      	ValidateCodePackage(code []byte) error
      	GetDeploymentPayload(path string) ([]byte, error)

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

        type Registry

        type Registry struct {
        	Platforms map[string]Platform

        func NewRegistry

        func NewRegistry(platformTypes ...Platform) *Registry

        func (*Registry) GetDeploymentPayload

        func (r *Registry) GetDeploymentPayload(ccType, path string) ([]byte, error)

        func (*Registry) NormalizePath

        func (r *Registry) NormalizePath(ccType, path string) (string, error)

        func (*Registry) ValidateDeploymentSpec

        func (r *Registry) ValidateDeploymentSpec(ccType string, codePackage []byte) error

        func (*Registry) ValidateSpec

        func (r *Registry) ValidateSpec(ccType, path string) error

        Source Files