Documentation
¶
Overview ¶
Package applications validates desired configuration without reading host files, process environment, URLs or runtime inventory (docs/application-schema.md).
Index ¶
Constants ¶
const MaxComposeBytes = 64 * 1024
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Diagnostic ¶
type Diagnostic struct {
Line int `json:"line"`
Column int `json:"column"`
Reason string `json:"reason"`
}
Diagnostic deliberately contains no source text, parser error, or scalar value.
func (*Diagnostic) Error ¶
func (d *Diagnostic) Error() string
type Import ¶
type Import struct {
Spec store.ApplicationSpec `json:"-"`
Values map[string]string `json:"-"`
}
Import contains sensitive transient input. Never serialize or log it.
func ParseCompose ¶
ParseCompose accepts an explicit initial subset. Unsupported fields are errors, never ignored. Values must be explicit strings; interpolation and implicit host environment lookups are refused. $$ represents a literal dollar as in Compose.
type RunYAML ¶
type RunYAML struct {
Containers []protocol.ContainerConfiguration `json:"containers"`
Workloads []protocol.WorkloadConfiguration `json:"workloads"`
}
RunYAML is transient, privileged configuration, never persisted by the preview endpoint.
func ParseRunYAML ¶
ParseRunYAML converts the supported Compose or Deployment subset to the existing run frames. Nothing is dispatched, and unknown fields are refused rather than lost in conversion.