models

package
v0.0.0-...-c890139 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddChildren

func AddChildren(g Group, ch []string)

AddChildren add children to group

func AddGroup

func AddGroup(gr string)

AddGroup add group to inventory

func AddNode

func AddNode(g Group, nn string)

AddNode add node to group

func AddVars

func AddVars(g Group, vrs []string)

AddVars add variables to group

func InitInventory

func InitInventory(nm string)

InitInventory initialize inventory

Types

type DirectoryStruct

type DirectoryStruct struct {
}

DirectoryStruct structure of inventory dir

type Group

type Group struct {
	Name      string
	Nodes     []Node
	Children  []string
	Variables []Variable
}

Group in inventory

type Inventory

type Inventory struct {
	Name      string
	Date      string
	Author    string
	Groups    []Group
	Nodes     []Node
	Variables []Variable
}

Inventory represents tree of groups, subgroups and end nodes (hosts) with variables

var Inv Inventory

Inv inventory

type Node

type Node struct {
	Name      string
	Variables []Variable
}

Node or host

type Variable

type Variable struct {
	// contains filtered or unexported fields
}

Variable is var with = value

Jump to

Keyboard shortcuts

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