Documentation
¶
Overview ¶
Package scalefile implements the ScaleFile type, as well as any helper functions for interacting with ScaleFile types
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( VersionErr = errors.New("unknown or invalid version") LanguageErr = errors.New("unknown or invalid language") )
View Source
var ( // AcceptedVersions is an array of acceptable Versions AcceptedVersions = []Version{V1Alpha} )
Functions ¶
Types ¶
type Dependency ¶
type Dependency struct { Name string `json:"name" yaml:"name"` Version string `json:"version" yaml:"version"` }
Dependency outlines the Dependency of a Scale Function
type ScaleFile ¶
type ScaleFile struct { Version Version `json:"version" yaml:"version"` Name string `json:"name" yaml:"name"` Tag string `json:"tag" yaml:"tag"` Signature string `json:"signature" yaml:"signature"` Language scalefunc.Language `json:"language" yaml:"language"` Dependencies []Dependency `json:"dependencies" yaml:"dependencies"` Source string `json:"source" yaml:"source"` }
ScaleFile describes the Scale Function and its dependencies
Click to show internal directories.
Click to hide internal directories.