Documentation
¶
Index ¶
- func GetTaskResult[T any](playOutput PlayOutput, play int, task int) (T, error)
- func RunPlaybook(ctx context.Context, connection *types.Connection, playbook []byte) ([]byte, error)
- type Play
- type PlayOutput
- type PlayOutputItemMetadata
- type PlayOutputItemMetadataDuration
- type PlayOutputResult
- type PlayOutputStats
- type PlayOutputTask
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTaskResult ¶
func GetTaskResult[T any](playOutput PlayOutput, play int, task int) (T, error)
func RunPlaybook ¶
Types ¶
type PlayOutput ¶
type PlayOutput struct {
CustomStats map[string]any `json:"custom_stats"`
GlobalCustomStats map[string]any `json:"global_custom_stats"`
Results []PlayOutputResult `json:"plays"`
Stats map[string]PlayOutputStats `json:"stats"`
}
func RunPlay ¶
func RunPlay(ctx context.Context, connection *types.Connection, plays ...Play) (PlayOutput, error)
type PlayOutputItemMetadata ¶
type PlayOutputItemMetadata struct {
Duration PlayOutputItemMetadataDuration `json:"duration"`
Id string `json:"id"`
Name string `json:"name"`
Path string `json:"path"`
}
type PlayOutputResult ¶
type PlayOutputResult struct {
Play PlayOutputItemMetadata `json:"play"`
Tasks []PlayOutputTask `json:"tasks"`
}
type PlayOutputStats ¶
type PlayOutputTask ¶
type PlayOutputTask struct {
Hosts map[string]any `json:"hosts"`
Task PlayOutputItemMetadata `json:"task"`
}
Click to show internal directories.
Click to hide internal directories.