events

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Callback

type Callback func(obj ...interface{})

type Emitter

type Emitter int
const (
	StatefulSet Emitter = iota
	Pvc
	Pod
)

type EventHandler

type EventHandler struct {
	// contains filtered or unexported fields
}

func (*EventHandler) AddEventHandler

func (eh *EventHandler) AddEventHandler(emitter Emitter, eventType EventType, callback Callback)

func (*EventHandler) ClearCallbacks

func (eh *EventHandler) ClearCallbacks()

func (*EventHandler) CreateEventInformers

func (eh *EventHandler) CreateEventInformers(kubeInformerFactory kubeinformers.SharedInformerFactory)

CreateEventHandler Creates event hanlder on framework initialization

type EventType

type EventType int
const (
	Delete EventType = iota
	Update
	Add
)

Jump to

Keyboard shortcuts

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