packaging

package
v2.0.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2020 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL