applications

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package applications validates desired configuration without reading host files, process environment, URLs or runtime inventory (docs/application-schema.md).

Index

Constants

View Source
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

func ParseCompose(source string) (*Import, error)

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

func ParseRunYAML(source, runtime string) (*RunYAML, error)

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.

Jump to

Keyboard shortcuts

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