event

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: Apache-2.0, CC-BY-4.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// TypeNormal is the information event type
	TypeNormal = Type("Normal")
	// TypeWarning is the warning event type, informs that something went wrong
	TypeWarning = Type("Warning")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Reason

type Reason string

Reason is the type of reason message, used in event

type Recorder

type Recorder interface {
	Emit(object runtime.Object, eventType Type, reason Reason, message string)
	Emitf(object runtime.Object, eventType Type, reason Reason, format string, args ...interface{})
}

Recorder is the interface used to emit events

func New

func New(config *rest.Config, component string) (Recorder, error)

New returns recorder used to emit events

type Type

type Type string

Type is the type of event

Jump to

Keyboard shortcuts

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