inventory

package
v0.3.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Host

type Host struct {
	Hostname string                 `yaml:"hostname" json:"hostname"`
	Username string                 `yaml:"username" json:"username"`
	Password string                 `yaml:"password" json:"password"`
	Data     map[string]interface{} `yaml:"data" json:"data"`
}

type Inventory

type Inventory struct {
	DefaultUsername string `yaml:"default_username" json:"default_username"`
	DefaultPassword string `yaml:"default_password" json:"default_password"`
	Hosts           []Host `yaml:"hosts" json:"hosts"`
}

func LoadFromCSV

func LoadFromCSV(path string, panicOnEmpty bool) (*Inventory, error)

func LoadFromYAML

func LoadFromYAML(filename string) (*Inventory, error)

Jump to

Keyboard shortcuts

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