events

package
v1.31.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVerbosity added in v1.9.0

func GetVerbosity(u *unstructured.Unstructured, e eventapi.JobEvent, ident string) int

GetVerbosity - Parses the verbsoity from CR and environment variables

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