predicate

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2020 License: Apache-2.0, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasOperationAnnotation

func HasOperationAnnotation() predicate.Predicate

HasOperationAnnotation is a predicate for the operation annotation.

func LastOperationNotSuccessful

func LastOperationNotSuccessful() predicate.Predicate

LastOperationNotSuccessful is a predicate for unsuccessful last operations for creation events.

func Or

func Or(predicates ...predicate.Predicate) predicate.Predicate

Or builds a logical OR gate of passed predicates.

Types

type GenerationChangedPredicate

type GenerationChangedPredicate struct {
	predicate.Funcs
}

GenerationChangedPredicate implements a update predicate function on Generation or ResourceVersion change.

func (GenerationChangedPredicate) Create

Create implements default CreateEvent filter for validating generation change

func (GenerationChangedPredicate) Update

Update implements default UpdateEvent filter for validating generation change

Jump to

Keyboard shortcuts

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