events

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectorEvent

type CollectorEvent struct {
	TargetType
	Namespace string
	Name      string
	EventType
	Message string
}

type EventType

type EventType int
const (
	Error EventType
	Warning
)

type Recorder

type Recorder interface {
	runner.Runner
	RecordEvent(e CollectorEvent) error
	EventChan() <-chan CollectorEvent
}

func NewKubeEventsRecorder

func NewKubeEventsRecorder(cli kubernetes.Interface, watchEvent bool) Recorder

type TargetType

type TargetType string
const (
	Pod    TargetType = "pod"
	Node   TargetType = "node"
	Device TargetType = "device"
)

Jump to

Keyboard shortcuts

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