Documentation ¶
Index ¶
- func NewFilteringHandlerOnAllEvents(filterFunc func(obj interface{}) bool, addFunc func(obj interface{}), ...) cache.ResourceEventHandler
- func NewHandlerOnAllEvents(fn func(runtime.Object)) cache.ResourceEventHandler
- func NewHandlerOnEvents(addFunc func(obj interface{}), updateFunc func(oldObj, newObj interface{}), ...) cache.ResourceEventHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFilteringHandlerOnAllEvents ¶
func NewFilteringHandlerOnAllEvents(filterFunc func(obj interface{}) bool, addFunc func(obj interface{}), updateFunc func(oldObj, newObj interface{}), deleteFunc func(obj interface{})) cache.ResourceEventHandler
NewFilteringHandlerOnAllEvents builds a FilteringResourceEventHandler applies the provided filter to all events coming in, ensuring the appropriate nested handler method is invoked.
Note: An object that starts passing the filter after an update is considered an add, and an object that stops passing the filter after an update is considered a delete. Like the handlers, the filter MUST NOT modify the objects it is given.
func NewHandlerOnAllEvents ¶
func NewHandlerOnAllEvents(fn func(runtime.Object)) cache.ResourceEventHandler
NewHandlerOnAllEvents builds a ResourceEventHandler that the function 'fn' will be called on all events(add/update/delete).
func NewHandlerOnEvents ¶
func NewHandlerOnEvents(addFunc func(obj interface{}), updateFunc func(oldObj, newObj interface{}), deleteFunc func(obj interface{})) cache.ResourceEventHandler
NewHandlerOnEvents builds a ResourceEventHandler.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.