Documentation
¶
Index ¶
Constants ¶
const ( ExpectedAPIVersion = "loom.rickliujh.github.io/v1beta1" ExpectedKind = "Loom" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommitPush ¶
type DynamicParamDef ¶ added in v0.0.6
type DynamicParamDef struct {
Name string `yaml:"name"`
Command string `yaml:"command"`
Default string `yaml:"default,omitempty"` // Fallback if not needed; command takes priority.
}
DynamicParamDef defines a parameter whose value comes from a shell command. The command is templated with all resolved params before execution. Dynamic params are always evaluated after all regular params are resolved.
type LoomFile ¶
type LoomFile struct {
APIVersion string `yaml:"apiVersion"`
Kind string `yaml:"kind"`
Metadata Metadata `yaml:"metadata"`
Spec Spec `yaml:"spec"`
}
LoomFile represents the top-level loom.yaml structure.
type Shell ¶
type Shell struct {
Command string `yaml:"command"`
Timeout string `yaml:"timeout,omitempty"`
// Pure marks this command as having no external side effects,
// making it safe to run in --local-run mode.
// Shell commands are skipped by default when --local-run is set.
Pure bool `yaml:"pure,omitempty"`
}
type Spec ¶
type Spec struct {
Params []ParamDef `yaml:"params,omitempty"`
DynamicParams []DynamicParamDef `yaml:"dynamicParams,omitempty"`
Excludes []string `yaml:"excludes,omitempty"`
Includes []string `yaml:"includes,omitempty"`
Target *TargetSpec `yaml:"target,omitempty"`
Modules []ModuleRef `yaml:"modules,omitempty"`
Operations []Operation `yaml:"operations,omitempty"`
}