Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ValidOS = []OS{Windows, Linux}
View Source
var Verbosity int
Functions ¶
Types ¶
type LoadOptions ¶
type LoadOptions struct {
UseRawInput bool
}
func LoadOptionsDefault ¶
func LoadOptionsDefault() LoadOptions
func LoadOptionsFromEnv ¶
func LoadOptionsFromEnv() LoadOptions
type Result ¶
type Result struct {
Changed bool `json:"changed"`
Failed bool `json:"failed"`
Msg string `json:"msg,omitempty"`
Data any `json:"data,omitempty"`
ModuleName string `json:"module_name,omitempty"`
ModuleVersion string `json:"module_version,omitempty"`
ModuleStdout string `json:"module_stdout,omitempty"`
ModuleStderr string `json:"module_stderr,omitempty"`
Warnings []string `json:"warnings,omitempty"`
RC int `json:"rc,omitempty"`
AnsibleFacts map[string]any `json:"ansible_facts,omitempty"`
}
func InitModule ¶
func InitModule[T any](opts LoadOptions) (T, Result)
func LoadArgs ¶
func LoadArgs[T any](opts LoadOptions) (T, Result)
Click to show internal directories.
Click to hide internal directories.