events

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventHandler

type EventHandler interface {
	Handle(string, *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.

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

	// Everything - log every event.
	Everything

	// Nothing -  this will log nothing.
	Nothing
)

Jump to

Keyboard shortcuts

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