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
)

Source Files