predicate

package
v1.57.1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EvalGeneric

func EvalGeneric(obj client.Object, predicates ...predicate.Predicate) bool

EvalGeneric returns true if all predicates match for the given object.

func ForEventTypes added in v1.57.0

func ForEventTypes(events ...EventType) predicate.Predicate

ForEventTypes is a predicate which returns true only for the provided event types.

func IsDeleting

func IsDeleting() predicate.Predicate

IsDeleting is a predicate for objects having a deletion timestamp.

func Not

Not inverts the passed predicate.

Types

type EventType added in v1.57.0

type EventType byte

EventType is an alias for byte.

const (
	// Create is a constant for an event of type 'create'.
	Create EventType = iota
	// Update is a constant for an event of type 'update'.
	Update
	// Delete is a constant for an event of type 'delete'.
	Delete
	// Generic is a constant for an event of type 'generic'.
	Generic
)

Jump to

Keyboard shortcuts

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