stdoutcallback

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2024 License: MIT Imports: 4 Imported by: 5

Documentation

Index

Constants

View Source
const (
	// DebugStdoutCallback formatted stdout/stderr output
	DebugStdoutCallback = "debug"
	// DefaultStdoutCallback default ansible screen output
	DefaultStdoutCallback = "default"
	// DenseStdoutCallback minimal stdout output
	DenseStdoutCallback = "dense"
	// JSONStdoutCallback ansible screen output as json
	JSONStdoutCallback = "json"
	// MinimalStdoutCallback minmal ansible screen output
	MinimalStdoutCallback = "minimal"
	// NullStdoutCallback don't display stuff to screen
	NullStdoutCallback = "null"
	// OnelineStdoutCallback oneline ansible screen output
	OnelineStdoutCallback = "oneline"
	// StderrStdoutCallback splits output, sending failed tasks to stderr
	StderrStdoutCallback = "stderr"
	// TimerStdoutCallback adds time to play stats
	TimerStdoutCallback = "timer"
	// YamlStdoutCallback yamlized ansible screen output
	YamlStdoutCallback = "yaml"
)
View Source
const (
	// AnsibleStdoutCallbackEnv
	AnsibleStdoutCallbackEnv = "ANSIBLE_STDOUT_CALLBACK"
)

Variables

This section is empty.

Functions

func AnsibleStdoutCallbackSetEnv

func AnsibleStdoutCallbackSetEnv(callback string)

AnsibleStdoutCallbackToJSON sets the stdout callback to json

Types

type StdoutCallbackResultsFunc

type StdoutCallbackResultsFunc func(context.Context, io.Reader, io.Writer, ...results.TransformerFunc) error

StdoutCallbackResultsFunc defines a function which manages ansible's stdout callbacks. The function expects a context, a reader that receives the data to be wrote and a writer that defines where to write the data coming from reader, Finally a list of transformers could be passed to update the output coming from the executor.

func GetResultsFunc

func GetResultsFunc(callback string) StdoutCallbackResultsFunc

GetResultsFunc return a func which manages the stdout callback results

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL