Documentation ¶
Index ¶
Constants ¶
View Source
const IGNITION_VARIANT = "ignition"
View Source
const ROOT_COMPONENT = "root"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Components ¶
func IgnitionComponents ¶
func IgnitionComponents() (Components, error)
func ParseComponents ¶
func ParseComponents(r io.Reader) (Components, error)
func (Components) Generate ¶
func (comps Components) Generate(vers VariantVersions, config any, ignore IgnoreFunc, w io.Writer) error
func (Components) Merge ¶
func (comps Components) Merge(override Components) error
type Constraint ¶
type Constraints ¶
type Constraints []Constraint
type DocNode ¶
type DocNode struct { Name string `yaml:"name"` Description string `yaml:"desc"` Required *bool `yaml:"required"` RequiredIf Constraints `yaml:"required-if"` Transforms []Transform `yaml:"transforms"` Children []DocNode `yaml:"children"` Component string `yaml:"use"` After string `yaml:"after"` // populated after component resolution Parent *DocNode }
type IgnoreFunc ¶
takes a slice of path elements, returns whether to ignore the subtree
type Transform ¶
type Transform struct { Regex string `yaml:"regex"` Replacement string `yaml:"replacement"` Constraints Constraints `yaml:"if"` Descendants bool `yaml:"descendants"` }
type VariantVersions ¶
Click to show internal directories.
Click to hide internal directories.