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
}
func NewEventHandler ¶
func NewEventHandler() *EventHandler
func (*EventHandler) Handle ¶
func (e *EventHandler) Handle(action string, h EventHandlerFunc)
func (*EventHandler) Watch ¶
func (e *EventHandler) Watch(ctx context.Context, c <-chan *types.WorkloadEventMessage)
type EventHandlerFunc ¶
type EventHandlerFunc func(context.Context, *types.WorkloadEventMessage)
EventHandlerFunc reacts to one workload event.
Click to show internal directories.
Click to hide internal directories.