event_classification

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Type   EventType
	Obj    client.Object
	OldObj client.Object
}

Event holds the context of an event

type EventClassification

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

func NewEventClassification

func NewEventClassification(getResourceByKey func(key string) (client.Object, bool), isValid func(obj client.Object) bool) *EventClassification

func (*EventClassification) Classify

func (ec *EventClassification) Classify(key string) *Event

type EventType

type EventType string
const (
	CreateEvent EventType = "CREATE"
	DeleteEvent EventType = "DELETE"
	SyncEvent   EventType = "SYNC"
)

Jump to

Keyboard shortcuts

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