Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Inventory ¶
type Inventory struct {
// contains filtered or unexported fields
}
Inventory represents a Ansible Inventory
func (Inventory) AddGroup ¶
func (i Inventory) AddGroup(group InventoryGroup)
AddGroup adds a group to the inventory
func (Inventory) AddHost ¶
func (i Inventory) AddHost(host InventoryHost)
AddHost adds the host to the inventory
func (Inventory) MarshalJSON ¶
MarshalJSON converts this object into the ansible format
type InventoryGroup ¶
InventoryGroup represents a Group in an Ansible Inventory
type InventoryHost ¶
InventoryHost represents a Host in an Ansible Inventory
type MessageLog ¶
type MessageLog struct {
// contains filtered or unexported fields
}
MessageLog holds messages during module run
func (*MessageLog) String ¶
func (l *MessageLog) String() string
type Module ¶
type Module interface {
Args() interface{}
Run() (ModuleResponse, error)
}
type ModuleResponse ¶
type ModuleResponse struct {
// contains filtered or unexported fields
}
func (*ModuleResponse) Changed ¶
func (r *ModuleResponse) Changed() *ModuleResponse
func (*ModuleResponse) Failed ¶
func (r *ModuleResponse) Failed() *ModuleResponse
func (*ModuleResponse) MarshalJSON ¶
func (r *ModuleResponse) MarshalJSON() ([]byte, error)
func (*ModuleResponse) Msg ¶
func (r *ModuleResponse) Msg(msg string) *ModuleResponse
func (*ModuleResponse) Set ¶
func (r *ModuleResponse) Set(key string, value interface{}) *ModuleResponse
Click to show internal directories.
Click to hide internal directories.