Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attributes ¶ added in v0.7.2
type Attributes struct { // Host operating system identifier. OS string `validate:"nonzero,safe"` // Host environment identifier. Env string `validate:"nonzero,safe"` // Host role identifier. Role string `validate:"nonzero,safe=list"` // Host service identifier. Srv string `validate:"safe=srv"` // Host variables Vars string `validate:"safe=vars"` }
Attributes represents host attributes found in TXT records.
func (*Attributes) MarshalJSON ¶ added in v0.7.2
func (a *Attributes) MarshalJSON() ([]byte, error)
MarshalJSON implements a custom JSON Marshaller for host attributes.
func (*Attributes) MarshalYAML ¶ added in v0.7.2
func (a *Attributes) MarshalYAML() (interface{}, error)
MarshalYAML implements a custom YAML Marshaller for host attributes.
type InventoryGroup ¶
type InventoryGroup struct { // Group chilren. Children []string `json:"children,omitempty"` // Hosts belonging to this group. Hosts []string `json:"hosts,omitempty"` }
InventoryGroup is an Ansible group ready to be marshalled into a JSON representation.
Click to show internal directories.
Click to hide internal directories.