loader

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMixinFieldLocation

func GetMixinFieldLocation(mixinName string, mixinPath string, root *yaml.Node, fieldName string) sourcemap.Location

GetMixinFieldLocation finds the source location for a given field within a mixin YAML AST

func GetMixinGrantLocation

func GetMixinGrantLocation(mixinName string, mixinPath string, root *yaml.Node, grantIdx int) sourcemap.Location

GetMixinGrantLocation finds the location of an update_policy grant item in a mixin

Types

type LoadedConfig

type LoadedConfig struct {
	BaseConfig model.BaseConfig
	Mixins     map[string]map[string]any
	MixinNodes map[string]*yaml.Node
	MixinPaths map[string]string
	Zones      []model.Zone
	RawZones   []map[string]any
	ZoneNodes  map[string]*yaml.Node
	ZonePaths  map[string]string
}

LoadedConfig holds the raw loaded YAML data from the configuration directory

func Load

func Load(baseDir string) (*LoadedConfig, error)

Load parses bindconfig.yaml, mixins/*.yaml, and zones/*.yaml from the target directory

Jump to

Keyboard shortcuts

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