go.bigb.es/auxilia
Documentation
Index
Functions
func LoadYAML(r io.Reader) (*legatus.Inventory, error)
LoadYAML parses a YAML inventory from r and returns the resulting Inventory.
It raises (never silently drops) on malformed YAML, hosts without a name, duplicate host names, and groups that reference an unknown host.
func LoadYAMLFile(path string) (*legatus.Inventory, error)
LoadYAMLFile reads the file at path and parses it as a YAML inventory.
Package inventory provides loaders that build a legatus.Inventory from declarative sources. It is an opt-in battery: callers that prefer to construct an inventory programmatically can ignore it entirely.