Documentation ¶
Overview ¶
Package handler is a more flexible EventHandler builder in a chain fashion.
Index ¶
- type Builder
- type Finder
- func NewDelegatorFinder(delegatorType runtime.Object, nameLabels []string) Finder
- func NewInvolvedObjectFinder(objectType runtime.Object) Finder
- func NewLabelFinder(ownerType runtime.Object, managedByKey, managedByValue, parentNameKey string) Finder
- func NewOwnerFinder(ownerType runtime.Object) Finder
- type FinderContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder interface { AddFinder(Finder) Builder Build() handler.EventHandler }
Builder defines an EventHandler builder
func NewBuilder ¶
func NewBuilder(ctx *FinderContext) Builder
type Finder ¶
type Finder interface {
Find(*FinderContext, client.Object) *model.GVKNObjKey
}
Finder finds a new object by an old object
func NewDelegatorFinder ¶
func NewInvolvedObjectFinder ¶
func NewLabelFinder ¶ added in v0.9.0
func NewLabelFinder(ownerType runtime.Object, managedByKey, managedByValue, parentNameKey string) Finder
NewLabelFinder return a finder which finds the owner of an object
func NewOwnerFinder ¶
NewOwnerFinder return a finder which finds the owner of an object
Click to show internal directories.
Click to hide internal directories.