Documentation
¶
Overview ¶
Package config contains the code to load and resolve the Hiera configuration
Index ¶
Constants ¶
const FileName = `hiera.yaml`
FileName is the default file name for the Hiera configuration file.
Variables ¶
var FunctionKeys = []string{string(api.KindDataDig), string(api.KindDataHash), string(api.KindLookupKey)}
FunctionKeys are the valid keys to use when defining a function in a hierarchy entry
var LocationKeys = []string{ string(api.LcPath), `paths`, string(api.LcGlob), `globs`, string(api.LcURI), `uris`, string(api.LcMappedPaths)}
LocationKeys are the valid keys to use when defining locations in a hierarchy entry
ReservedOptionKeys are the option keys that are reserved by Hiera
Functions ¶
func New ¶
New creates a new unresolved Config from the given path. If the path does not exist, the default config is returned.
func NewMappedPaths ¶
NewMappedPaths returns a Location that initially consist of three strings:
sourceVar: Name of variable that contains an array of strings
key: Variable name to use when resolving template
template: Template containing interpolation of the key
Types ¶
This section is empty.