predicate

package
v0.0.0-...-2d9dd87 Latest Latest
Warning

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

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

Documentation

Overview

Package predicate defines Predicates used by Controllers to filter Events before they are provided to EventHandlers.

The implementation is derived from sigs.k8s.io/controller-runtime/pkg/predicate and the main difference are: - predicates are resourceGroup aware. - the package doesn't provide predicates implementation out of the box.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Predicate

type Predicate interface {
	// Create returns true if the Create event should be processed
	Create(cevent.CreateEvent) bool

	// Delete returns true if the Delete event should be processed
	Delete(cevent.DeleteEvent) bool

	// Update returns true if the Update event should be processed
	Update(cevent.UpdateEvent) bool

	// Generic returns true if the Generic event should be processed
	Generic(cevent.GenericEvent) bool
}

Predicate filters events before enqueuing the keys.

Jump to

Keyboard shortcuts

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