Documentation ¶
Index ¶
- Constants
- type DebugStdoutCallbackExecute
- type DefaultStdoutCallbackExecute
- type DenseStdoutCallbackExecute
- type ExecutorStdoutCallbackSetter
- type JSONStdoutCallbackExecute
- type MinimalStdoutCallbackExecute
- type NullStdoutCallbackExecute
- type OnelineStdoutCallbackExecute
- type StderrStdoutCallbackExecute
- type TimerStdoutCallbackExecute
- type YAMLStdoutCallbackExecute
Constants ¶
const (
// DebugStdoutCallback formatted stdout/stderr output
DebugStdoutCallback = "debug"
)
const (
// DefaultStdoutCallback default ansible screen output
DefaultStdoutCallback = "default"
)
const (
// DenseStdoutCallback dense stdout output
DenseStdoutCallback = "dense"
)
const (
// JSONStdoutCallback ansible screen output as json
JSONStdoutCallback = "json"
)
const (
// MinimalStdoutCallback minmal ansible screen output
MinimalStdoutCallback = "minimal"
)
const (
// NullStdoutCallback don't display stuff to screen
NullStdoutCallback = "null"
)
const (
// OnelineStdoutCallback oneline ansible screen output
OnelineStdoutCallback = "oneline"
)
const (
// StderrStdoutCallback splits output, sending failed tasks to stderr
StderrStdoutCallback = "stderr"
)
const (
// TimerStdoutCallback adds time to play stats
TimerStdoutCallback = "timer"
)
const (
// YAMLStdoutCallback yamlized ansible screen output
YAMLStdoutCallback = "yaml"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DebugStdoutCallbackExecute ¶
type DebugStdoutCallbackExecute struct {
// contains filtered or unexported fields
}
func NewDebugStdoutCallbackExecute ¶
func NewDebugStdoutCallbackExecute(executor ExecutorStdoutCallbackSetter) *DebugStdoutCallbackExecute
func (*DebugStdoutCallbackExecute) Execute ¶
func (e *DebugStdoutCallbackExecute) Execute(ctx context.Context) error
Execute takes a command and args and runs it, streaming output to stdout
func (*DebugStdoutCallbackExecute) WithExecutor ¶
func (e *DebugStdoutCallbackExecute) WithExecutor(exec ExecutorStdoutCallbackSetter) *DebugStdoutCallbackExecute
type DefaultStdoutCallbackExecute ¶
type DefaultStdoutCallbackExecute struct {
// contains filtered or unexported fields
}
func NewDefaultStdoutCallbackExecute ¶
func NewDefaultStdoutCallbackExecute(executor ExecutorStdoutCallbackSetter) *DefaultStdoutCallbackExecute
func (*DefaultStdoutCallbackExecute) Execute ¶
func (e *DefaultStdoutCallbackExecute) Execute(ctx context.Context) error
Execute takes a command and args and runs it, streaming output to stdout
func (*DefaultStdoutCallbackExecute) WithExecutor ¶
func (e *DefaultStdoutCallbackExecute) WithExecutor(exec ExecutorStdoutCallbackSetter) *DefaultStdoutCallbackExecute
type DenseStdoutCallbackExecute ¶
type DenseStdoutCallbackExecute struct {
// contains filtered or unexported fields
}
func NewDenseStdoutCallbackExecute ¶
func NewDenseStdoutCallbackExecute(executor ExecutorStdoutCallbackSetter) *DenseStdoutCallbackExecute
func (*DenseStdoutCallbackExecute) Execute ¶
func (e *DenseStdoutCallbackExecute) Execute(ctx context.Context) error
Execute takes a command and args and runs it, streaming output to stdout
func (*DenseStdoutCallbackExecute) WithExecutor ¶
func (e *DenseStdoutCallbackExecute) WithExecutor(exec ExecutorStdoutCallbackSetter) *DenseStdoutCallbackExecute
type ExecutorStdoutCallbackSetter ¶
type ExecutorStdoutCallbackSetter interface { execute.Executor AddEnvVar(key, value string) WithOutput(output result.ResultsOutputer) }
ExecutorStdoutCallbackSetter extends the executor interface by adding methods to configure the Stdout Callback configuration
type JSONStdoutCallbackExecute ¶
type JSONStdoutCallbackExecute struct {
// contains filtered or unexported fields
}
func NewJSONStdoutCallbackExecute ¶
func NewJSONStdoutCallbackExecute(executor ExecutorStdoutCallbackSetter) *JSONStdoutCallbackExecute
func (*JSONStdoutCallbackExecute) Execute ¶
func (e *JSONStdoutCallbackExecute) Execute(ctx context.Context) error
Execute takes a command and args and runs it, streaming output to stdout
func (*JSONStdoutCallbackExecute) WithExecutor ¶
func (e *JSONStdoutCallbackExecute) WithExecutor(exec ExecutorStdoutCallbackSetter) *JSONStdoutCallbackExecute
type MinimalStdoutCallbackExecute ¶
type MinimalStdoutCallbackExecute struct {
// contains filtered or unexported fields
}
func NewMinimalStdoutCallbackExecute ¶
func NewMinimalStdoutCallbackExecute(executor ExecutorStdoutCallbackSetter) *MinimalStdoutCallbackExecute
func (*MinimalStdoutCallbackExecute) Execute ¶
func (e *MinimalStdoutCallbackExecute) Execute(ctx context.Context) error
Execute takes a command and args and runs it, streaming output to stdout
func (*MinimalStdoutCallbackExecute) WithExecutor ¶
func (e *MinimalStdoutCallbackExecute) WithExecutor(exec ExecutorStdoutCallbackSetter) *MinimalStdoutCallbackExecute
type NullStdoutCallbackExecute ¶
type NullStdoutCallbackExecute struct {
// contains filtered or unexported fields
}
func NewNullStdoutCallbackExecute ¶
func NewNullStdoutCallbackExecute(executor ExecutorStdoutCallbackSetter) *NullStdoutCallbackExecute
func (*NullStdoutCallbackExecute) Execute ¶
func (e *NullStdoutCallbackExecute) Execute(ctx context.Context) error
Execute takes a command and args and runs it, streaming output to stdout
func (*NullStdoutCallbackExecute) WithExecutor ¶
func (e *NullStdoutCallbackExecute) WithExecutor(exec ExecutorStdoutCallbackSetter) *NullStdoutCallbackExecute
type OnelineStdoutCallbackExecute ¶
type OnelineStdoutCallbackExecute struct {
// contains filtered or unexported fields
}
func NewOnelineStdoutCallbackExecute ¶
func NewOnelineStdoutCallbackExecute(executor ExecutorStdoutCallbackSetter) *OnelineStdoutCallbackExecute
func (*OnelineStdoutCallbackExecute) Execute ¶
func (e *OnelineStdoutCallbackExecute) Execute(ctx context.Context) error
Execute takes a command and args and runs it, streaming output to stdout
func (*OnelineStdoutCallbackExecute) WithExecutor ¶
func (e *OnelineStdoutCallbackExecute) WithExecutor(exec ExecutorStdoutCallbackSetter) *OnelineStdoutCallbackExecute
type StderrStdoutCallbackExecute ¶
type StderrStdoutCallbackExecute struct {
// contains filtered or unexported fields
}
func NewStderrStdoutCallbackExecute ¶
func NewStderrStdoutCallbackExecute(executor ExecutorStdoutCallbackSetter) *StderrStdoutCallbackExecute
func (*StderrStdoutCallbackExecute) Execute ¶
func (e *StderrStdoutCallbackExecute) Execute(ctx context.Context) error
Execute takes a command and args and runs it, streaming output to stdout
func (*StderrStdoutCallbackExecute) WithExecutor ¶
func (e *StderrStdoutCallbackExecute) WithExecutor(exec ExecutorStdoutCallbackSetter) *StderrStdoutCallbackExecute
type TimerStdoutCallbackExecute ¶
type TimerStdoutCallbackExecute struct {
// contains filtered or unexported fields
}
func NewTimerStdoutCallbackExecute ¶
func NewTimerStdoutCallbackExecute(executor ExecutorStdoutCallbackSetter) *TimerStdoutCallbackExecute
func (*TimerStdoutCallbackExecute) Execute ¶
func (e *TimerStdoutCallbackExecute) Execute(ctx context.Context) error
Execute takes a command and args and runs it, streaming output to stdout
func (*TimerStdoutCallbackExecute) WithExecutor ¶
func (e *TimerStdoutCallbackExecute) WithExecutor(exec ExecutorStdoutCallbackSetter) *TimerStdoutCallbackExecute
type YAMLStdoutCallbackExecute ¶
type YAMLStdoutCallbackExecute struct {
// contains filtered or unexported fields
}
func NewYAMLStdoutCallbackExecute ¶
func NewYAMLStdoutCallbackExecute(executor ExecutorStdoutCallbackSetter) *YAMLStdoutCallbackExecute
func (*YAMLStdoutCallbackExecute) Execute ¶
func (e *YAMLStdoutCallbackExecute) Execute(ctx context.Context) error
Execute takes a command and args and runs it, streaming output to stdout
func (*YAMLStdoutCallbackExecute) WithExecutor ¶
func (e *YAMLStdoutCallbackExecute) WithExecutor(exec ExecutorStdoutCallbackSetter) *YAMLStdoutCallbackExecute