Documentation
¶
Index ¶
- Variables
- type AnsibleCliOuput
- type AnsibleInventory
- func (a *AnsibleInventory) AddHostByName(ctx context.Context, hostName string) (err error)
- func (a *AnsibleInventory) GetHostNames() (hostNames []string)
- func (a *AnsibleInventory) GetNumberOfHosts(ctx context.Context) (nHosts int)
- func (a *AnsibleInventory) HostByNameExists(ctx context.Context, hostName string) (exists bool, err error)
- func (a *AnsibleInventory) MustAddHostByName(ctx context.Context, hostName string)
- func (a *AnsibleInventory) Name() (name string)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnknwnAnsibleCliOutput = errors.New("unknown ansible CLI output")
Functions ¶
This section is empty.
Types ¶
type AnsibleCliOuput ¶
type AnsibleCliOuput struct {
// contains filtered or unexported fields
}
func NewAnsibleCliOutput ¶
func NewAnsibleCliOutput() (a *AnsibleCliOuput)
func ParseCliOutput ¶
func ParseCliOutput(ctx context.Context, cliOutput string) (ansibleOutput *AnsibleCliOuput, err error)
func (*AnsibleCliOuput) CreateInventory ¶
func (a *AnsibleCliOuput) CreateInventory() (inventory *AnsibleInventory)
func (*AnsibleCliOuput) GetNumberOfHosts ¶
func (a *AnsibleCliOuput) GetNumberOfHosts(ctx context.Context) (nHosts int)
func (*AnsibleCliOuput) Inventory ¶
func (a *AnsibleCliOuput) Inventory() (inventory *AnsibleInventory)
func (*AnsibleCliOuput) Name ¶
func (a *AnsibleCliOuput) Name() (name string)
type AnsibleInventory ¶
type AnsibleInventory struct {
// contains filtered or unexported fields
}
func NewAnsibleInventory ¶
func NewAnsibleInventory() (inventory *AnsibleInventory)
func NewAnsibleInventoryByName ¶
func NewAnsibleInventoryByName(name string) (inventory *AnsibleInventory)
func (*AnsibleInventory) AddHostByName ¶
func (a *AnsibleInventory) AddHostByName(ctx context.Context, hostName string) (err error)
func (*AnsibleInventory) GetHostNames ¶
func (a *AnsibleInventory) GetHostNames() (hostNames []string)
func (*AnsibleInventory) GetNumberOfHosts ¶
func (a *AnsibleInventory) GetNumberOfHosts(ctx context.Context) (nHosts int)
func (*AnsibleInventory) HostByNameExists ¶
func (*AnsibleInventory) MustAddHostByName ¶
func (a *AnsibleInventory) MustAddHostByName(ctx context.Context, hostName string)
func (*AnsibleInventory) Name ¶
func (a *AnsibleInventory) Name() (name string)
Click to show internal directories.
Click to hide internal directories.