# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
NewDefaultExecute return a new DefaultExecute instance with all options.
NewMockExecute returns a new instance of MockExecute.
WithCmd set the execuctable parameter.
WithCmdRunDir set the command run directory to be used by DefaultExecutor.
WithEnvVars adds the provided env var to the command.
WithErrorEnrich sets the error context mechanism to DefaultExecutor.
WithExecutable set the execuctable parameter.
WithOutput sets the output mechanism to DefaultExecutor.
WithTransformers set trasformes functions.
WithWrite set the writer to be used by DefaultExecutor.
WithWriteError set the error writer to be used by DefaultExecutor.
# Constants
AnsiblePlaybookErrorCodeBadOrIncompleteOptions is the error code for a bad or incomplete options.
AnsiblePlaybookErrorCodeGeneralError is the error code for a general error.
AnsiblePlaybookErrorCodeOneOrMoreHostFailed is the error code for a one or more host failed.
AnsiblePlaybookErrorCodeOneOrMoreHostUnreachable is the error code for a one or more host unreachable.
AnsiblePlaybookErrorCodeParserError is the error code for a parser error.
AnsiblePlaybookErrorCodeUnexpectedError is the error code for a unexpected error.
AnsiblePlaybookErrorCodeUserInterruptedExecution is the error code for a user interrupted execution.
AnsiblePlaybookErrorMessageBadOrIncompleteOptions is the error message for a bad or incomplete options.
AnsiblePlaybookErrorMessageGeneralError is the error message for a general error.
AnsiblePlaybookErrorMessageOneOrMoreHostFailed is the error message for a one or more host failed.
AnsiblePlaybookErrorMessageOneOrMoreHostUnreachable is the error message for a one or more host unreachable.
AnsiblePlaybookErrorMessageParserError is the error message for a parser error.
AnsiblePlaybookErrorMessageUnexpectedError is the error message for a unexpected error.
AnsiblePlaybookErrorMessageUserInterruptedExecution is the error message for a user interrupted execution.
# Structs
DefaultExecute is a simple definition of an executor.
MockExecute is a mock of Execute interface.
# Interfaces
Commander generates commands to be executed.
ErrorEnricher interface to enrich and customize errors.
Executabler is an interface to run commands.
Executor interface to execute commands.
# Type aliases
EnvVars represents a custom environment for an ansible playbook execution.
ExecuteOptions is a function to set executor options.