Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Resolve ¶
func Resolve(ctx context.Context, loadout Loadout, exists ComponentExistsFunc) ([]components.Ref, error)
Resolve validates a loadout and returns deterministic concrete component refs.
Types ¶
type ComponentExistsFunc ¶
ComponentExistsFunc reports whether a concrete component ref exists.
type Loadout ¶
type Loadout struct {
APIVersion string `json:"apiVersion" yaml:"apiVersion"`
Kind components.Kind `json:"kind" yaml:"kind"`
Metadata components.Metadata `json:"metadata" yaml:"metadata"`
Spec Spec `json:"spec" yaml:"spec"`
}
Loadout is a named bundle of normalized component references.
type MissingComponentsError ¶
type MissingComponentsError struct {
Missing []components.Ref
}
MissingComponentsError lists concrete component refs missing from a loadout.
func (MissingComponentsError) Error ¶
func (e MissingComponentsError) Error() string
Error returns a stable, human-readable missing-component message.
type Spec ¶
type Spec struct {
Components []components.Ref `json:"components" yaml:"components"`
}
Spec contains the explicit component refs that make up a loadout.
type Summary ¶
type Summary struct {
ID string `json:"id" yaml:"id"`
Name string `json:"name,omitempty" yaml:"name,omitempty"`
Description string `json:"description,omitempty" yaml:"description,omitempty"`
Tags []string `json:"tags,omitempty" yaml:"tags,omitempty"`
Components int `json:"components" yaml:"components"`
}
Summary is a compact loadout listing record.
Click to show internal directories.
Click to hide internal directories.