Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventHandler ¶
type EventHandler struct {
// contains filtered or unexported fields
}
EventHandler is ResourceEventHandler implementation.
func NewEventHandler ¶
func NewEventHandler(update func([]string)) *EventHandler
NewEventHandler returns an EventHandler.
func (*EventHandler) OnAdd ¶
func (h *EventHandler) OnAdd(obj any, _ bool)
OnAdd handles the endpoints add events.
func (*EventHandler) OnDelete ¶
func (h *EventHandler) OnDelete(obj any)
OnDelete handles the endpoints delete events.
func (*EventHandler) OnUpdate ¶
func (h *EventHandler) OnUpdate(oldObj, newObj any)
OnUpdate handles the endpoints update events.
func (*EventHandler) Update ¶
func (h *EventHandler) Update(endpoints *v1.Endpoints)
Update updates the endpoints.
Click to show internal directories.
Click to hide internal directories.