Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DefinitionFile is the filename for package metadata DefinitionFile = "package.yaml" TypeModule = "Module" TypeApplication = "Application" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Definition ¶
type Definition struct {
APIVersion string `yaml:"apiVersion" json:"apiVersion"`
Type string `yaml:"type" json:"type"`
Name string `yaml:"name" json:"name"`
Descriptions Descriptions `yaml:"descriptions,omitempty" json:"descriptions,omitempty"`
}
Definition represents common package metadata loaded from package.yaml.
func LoadDefinitionByDir ¶
func LoadDefinitionByDir(dir string) (Definition, error)
LoadDefinitionByDir reads and parses the package definition file from the given directory.
type Descriptions ¶
type Descriptions struct {
Ru string `json:"ru,omitempty" yaml:"ru,omitempty"`
En string `json:"en,omitempty" yaml:"en,omitempty"`
}
Descriptions holds localized description text for the package.
type Remote ¶
type Remote struct {
Repository string `json:"repository" yaml:"repository"`
DockerConfig string `json:"dockercfg" yaml:"dockercfg"`
}
Remote describes the OCI registry a package is published to. It is embedded into the runtime context surfaced to templates so manifests can reference the registry and its credentials.
Directories
¶
| Path | Synopsis |
|---|---|
|
schema/defaults
Package defaults synthesizes an example value map from an OpenAPI schema.
|
Package defaults synthesizes an example value map from an OpenAPI schema. |
|
schema/reggen
Package reggen produces example strings that match a Perl-flavored regular expression.
|
Package reggen produces example strings that match a Perl-flavored regular expression. |
Click to show internal directories.
Click to hide internal directories.