stdoutcallback

package
v0.0.0-...-94e4715 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

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(string, io.Reader, io.Writer) error

StdoutCallbackResultsFunc defines a function which manages ansible's stdout callbacks. The function expects and string for prefixing output lines, a reader that receives the data to be wrote and a writer that defines where to write the data comming from reader

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