events

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Tasks - only log the high level tasks.
	Tasks LogLevel = iota

	// Everything - log every event.
	Everything

	// Nothing -  this will log nothing.
	Nothing

	// Ansible Events
	EventPlaybookOnTaskStart = "playbook_on_task_start"
	EventRunnerOnOk          = "runner_on_ok"
	EventRunnerOnFailed      = "runner_on_failed"

	// Ansible Task Actions
	TaskActionSetFact = "set_fact"
	TaskActionDebug   = "debug"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EventHandler

type EventHandler interface {
	Handle(*unstructured.Unstructured, eventapi.JobEvent)
}

EventHandler - knows how to handle job events.

func NewLoggingEventHandler

func NewLoggingEventHandler(l LogLevel) EventHandler

NewLoggingEventHandler - Creates a Logging Event Handler to log events.

type LogLevel

type LogLevel int

LogLevel - Levelt for the logging to take place.

Jump to

Keyboard shortcuts

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