predicate

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateDeletePredicate

type CreateDeletePredicate struct {
	predicate.Funcs
}

CreateDeletePredicate implements a default predicate on resource creation or deletion events

func (CreateDeletePredicate) Generic

no watch for generic events

func (CreateDeletePredicate) Update

no watch for update events

type CreatePredicate

type CreatePredicate struct {
	predicate.Funcs
}

CreatePredicate implements a default predicate on resource creation events

func (CreatePredicate) Delete

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

no watch for update events

func (CreatePredicate) Generic

func (p CreatePredicate) Generic(e event.GenericEvent) bool

no watch for generic events

func (CreatePredicate) Update

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

no watch for update events

type NodePredicate

type NodePredicate struct {
	predicate.ResourceVersionChangedPredicate
}

NodePredicate implements a predicate for node controller It only watches for create events which have Status.Addresses and update events which change Status.Addresses and delete events

func (NodePredicate) Create

func (p NodePredicate) Create(e event.CreateEvent) bool

func (NodePredicate) Generic

func (p NodePredicate) Generic(e event.GenericEvent) bool

no watch for generic events

func (NodePredicate) Update

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

Jump to

Keyboard shortcuts

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