Documentation
¶
Index ¶
- func NewEventHandler(queue workqueue.TypedInterface[EventHandlerItem], log logr.Logger) cache.ResourceEventHandler
- type Controller
- type EventHandler
- type EventHandlerItem
- type EventType
- type Feature
- type Features
- type Item
- type Sink
- func (s *Sink) Delete(ctx context.Context, key interface{}) error
- func (s *Sink) DeleteCh() <-chan interface{}
- func (s *Sink) Error(ctx context.Context, err error) error
- func (s *Sink) ErrorCh() <-chan error
- func (s *Sink) Upsert(ctx context.Context, item *Item) error
- func (s *Sink) UpsertCh() <-chan interface{}
- type Sync
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEventHandler ¶ added in v0.3.0
func NewEventHandler(queue workqueue.TypedInterface[EventHandlerItem], log logr.Logger) cache.ResourceEventHandler
Types ¶
type Controller ¶ added in v0.3.0
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶ added in v0.3.0
func NewController( informer cache.SharedIndexInformer, log logr.Logger, ) *Controller
func (*Controller) Announce ¶ added in v0.3.0
func (c *Controller) Announce(obj interface{}) error
type EventHandler ¶ added in v0.3.0
type EventHandler struct {
// contains filtered or unexported fields
}
func (*EventHandler) OnAdd ¶ added in v0.3.0
func (e *EventHandler) OnAdd(obj interface{}, _ bool)
func (*EventHandler) OnDelete ¶ added in v0.3.0
func (e *EventHandler) OnDelete(obj interface{})
func (*EventHandler) OnUpdate ¶ added in v0.3.0
func (e *EventHandler) OnUpdate(_, newObj interface{})
type EventHandlerItem ¶ added in v0.3.0
type EventType ¶ added in v0.3.0
type EventType string
const EventAdd EventType = "ADDED"
const EventDelete EventType = "DELETED"
const EventUpdate EventType = "UPDATED"
type Feature ¶ added in v0.3.0
type Feature func(*Features)
func WithNoDelete ¶ added in v0.3.0
func WithNoDelete() Feature
func WithNoWarumup ¶ added in v0.3.0
func WithNoWarumup() Feature
type Features ¶ added in v0.3.0
type Features struct {
// contains filtered or unexported fields
}
func NewFeatures ¶ added in v0.3.0
type Sink ¶ added in v0.3.0
type Sink struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.