Documentation ¶
Index ¶
- Variables
- func NewController(ep EventProcessor, q workqueue.RateLimitingInterface) *controller
- func NewEventProcessor(o runtime.Object, w ListWatcher, eh EventHandler, h ResourceHandler) *eventProcessor
- func NewResourceEventHandler(f Selector, q workqueue.Interface) *resourceEventHandler
- type Event
- type EventHandler
- type EventProcessor
- type ListWatcher
- type ResourceHandler
- type Selector
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoAppLabelFound = errors.New("no app label found ")
Functions ¶
func NewController ¶
func NewController(ep EventProcessor, q workqueue.RateLimitingInterface) *controller
func NewEventProcessor ¶
func NewEventProcessor(o runtime.Object, w ListWatcher, eh EventHandler, h ResourceHandler) *eventProcessor
NewEventProcessor instantiates EventProcessor
func NewResourceEventHandler ¶
Types ¶
type EventHandler ¶
type EventHandler interface { Add(obj interface{}) Update(oldObj, newObj interface{}) Delete(obj interface{}) }
EventHandler gets called on each event variation from informer
type EventProcessor ¶
type ListWatcher ¶
type ListWatcher interface { List(options metav1.ListOptions) (runtime.Object, error) Watch(options metav1.ListOptions) (watch.Interface, error) }
ListWatcher defines list and watch methods
Source Files ¶
Click to show internal directories.
Click to hide internal directories.