Documentation ¶
Index ¶
- func LabelReq(sel v1alpha1.Selector) (*labels.Requirement, error)
- func LabelSelector(selectors []v1alpha1.Selector) (labels.Selector, error)
- type EventListener
- func (el *EventListener) GetEventName() string
- func (el *EventListener) GetEventSourceName() string
- func (el *EventListener) GetEventSourceType() apicommon.EventSourceType
- func (el *EventListener) StartListening(ctx context.Context, dispatch func([]byte, ...eventsourcecommon.Options) error) error
- func (listener *EventListener) ValidateEventSource(ctx context.Context) error
- type InformerEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EventListener ¶
type EventListener struct { EventSourceName string EventName string ResourceEventSource v1alpha1.ResourceEventSource Metrics *metrics.Metrics }
EventListener implements Eventing
func (*EventListener) GetEventName ¶
func (el *EventListener) GetEventName() string
GetEventName returns name of event
func (*EventListener) GetEventSourceName ¶
func (el *EventListener) GetEventSourceName() string
GetEventSourceName returns name of event source
func (*EventListener) GetEventSourceType ¶
func (el *EventListener) GetEventSourceType() apicommon.EventSourceType
GetEventSourceType return type of event server
func (*EventListener) StartListening ¶
func (el *EventListener) StartListening(ctx context.Context, dispatch func([]byte, ...eventsourcecommon.Options) error) error
StartListening watches resource updates and consume those events
func (*EventListener) ValidateEventSource ¶
func (listener *EventListener) ValidateEventSource(ctx context.Context) error
ValidateEventSource validates a resource event source
type InformerEvent ¶
type InformerEvent struct { Obj interface{} OldObj interface{} Type v1alpha1.ResourceEventType }
InformerEvent holds event generated from resource state change
Click to show internal directories.
Click to hide internal directories.