go.bigb.es/auxilia

v0.6.1
Doc Versions Source

Documentation

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.

Functions

f func LoadYAML

src

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.

f func LoadYAMLFile

src
func LoadYAMLFile(path string) (*legatus.Inventory, error)

LoadYAMLFile reads the file at path and parses it as a YAML inventory.

Source Files