predicates

package
v0.0.0-...-d09eed2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnnotationChanged

type AnnotationChanged struct {
	predicate.Funcs
	Name string
}

func (AnnotationChanged) Create

func (AnnotationChanged) Delete

func (AnnotationChanged) Generic

func (AnnotationChanged) Update

Update implements default UpdateEvent filter for validating annotation change.

type DependentPredicate

type DependentPredicate struct {
	WatchDelete bool
	WatchUpdate bool
	WatchStatus bool

	predicate.Funcs
}

func (DependentPredicate) Create

func (DependentPredicate) Delete

func (DependentPredicate) Generic

func (DependentPredicate) Update

type HasLabel

type HasLabel struct {
	predicate.Funcs
	Name string
}

func (HasLabel) Create

func (p HasLabel) Create(event.CreateEvent) bool

func (HasLabel) Delete

func (p HasLabel) Delete(e event.DeleteEvent) bool

func (HasLabel) Generic

func (p HasLabel) Generic(event.GenericEvent) bool

func (HasLabel) Update

func (p HasLabel) Update(e event.UpdateEvent) bool

type StatusChanged

type StatusChanged struct {
	predicate.Funcs
}

StatusChanged implements a generic update predicate function on status change.

func (StatusChanged) Create

func (p StatusChanged) Create(event.CreateEvent) bool

func (StatusChanged) Delete

func (p StatusChanged) Delete(event.DeleteEvent) bool

func (StatusChanged) Generic

func (p StatusChanged) Generic(event.GenericEvent) bool

func (StatusChanged) Update

func (p StatusChanged) Update(e event.UpdateEvent) bool

Update implements default UpdateEvent filter for validating status change.

Jump to

Keyboard shortcuts

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