types

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: MIT Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

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