predicates

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ResourceVersionChanged = ResourceVersionChangedPredicate{}
)

Functions

This section is empty.

Types

type FalseMixin

type FalseMixin struct{}

func (FalseMixin) HandleCreate

func (FalseMixin) HandleCreate(obj interface{}) bool

func (FalseMixin) HandleDelete

func (FalseMixin) HandleDelete(obj interface{}) bool

func (FalseMixin) HandleUpdate

func (FalseMixin) HandleUpdate(old, new interface{}) bool

type Predicate

type Predicate interface {
	HandleUpdate(old, new interface{}) bool
	HandleDelete(obj interface{}) bool
	HandleCreate(obj interface{}) bool
}

type ResourceVersionChangedPredicate

type ResourceVersionChangedPredicate struct {
	TrueMixin
}

func (ResourceVersionChangedPredicate) HandleUpdate

func (ResourceVersionChangedPredicate) HandleUpdate(old, new interface{}) bool

type TrueMixin

type TrueMixin struct{}

func (TrueMixin) HandleCreate

func (TrueMixin) HandleCreate(obj interface{}) bool

func (TrueMixin) HandleDelete

func (TrueMixin) HandleDelete(obj interface{}) bool

func (TrueMixin) HandleUpdate

func (TrueMixin) HandleUpdate(old, new interface{}) bool

Jump to

Keyboard shortcuts

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