Documentation ¶
Index ¶
- Variables
- 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) ([]byte, 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 ¶
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 PackageWriter ¶
type PackageWriterWrapper ¶
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 GetMetadataAsTarEntries(code []byte) ([]byte, error) }
Interface for validating the specification and writing the package for the given platform
type Registry ¶
type Registry struct { Platforms map[string]Platform PackageWriter PackageWriter }
func NewRegistry ¶
func (*Registry) GenerateDockerBuild ¶
func (*Registry) GenerateDockerfile ¶
func (*Registry) GetDeploymentPayload ¶
func (*Registry) GetMetadataProvider ¶
func (*Registry) StreamDockerBuild ¶
func (*Registry) ValidateDeploymentSpec ¶
func (*Registry) ValidateSpec ¶
Click to show internal directories.
Click to hide internal directories.