Documentation

Index

Constants

This section is empty.

Variables

View Source
var SupportedPlatforms = []Platform{
	&java.Platform{},
	&golang.Platform{},
	&node.Platform{},
}

    SupportedPlatforms is the canonical list of platforms Fabric supports

    Functions

    This section is empty.

    Types

    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