events

package
v1.25.2 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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