Documentation
¶
Index ¶
Constants ¶
const EndpointNotificationSourceType = "endpoint-notification-source"
EndpointNotificationSourceType is the plugin type identifier for endpoint notification sources.
const NotificationSourceType = "k8s-notification-source"
NotificationSourceType is the plugin type identifier for k8s notification sources.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EndpointDataSource ¶
type EndpointDataSource struct {
// contains filtered or unexported fields
}
EndpointDataSource is an EndpointSource that passes endpoint lifecycle events through to registered EndpointExtractors without modification.
func NewEndpointDataSource ¶
func NewEndpointDataSource(pluginType, pluginName string) *EndpointDataSource
NewEndpointDataSource returns a new EndpointDataSource with the given plugin type and name.
func (*EndpointDataSource) NotifyEndpoint ¶
func (s *EndpointDataSource) NotifyEndpoint(_ context.Context, event fwkdl.EndpointEvent) (*fwkdl.EndpointEvent, error)
NotifyEndpoint passes the event through unchanged for the Runtime to dispatch to extractors.
func (*EndpointDataSource) TypedName ¶
func (s *EndpointDataSource) TypedName() fwkplugin.TypedName
TypedName returns the plugin type and name.
type K8sNotificationSource ¶
type K8sNotificationSource struct {
// contains filtered or unexported fields
}
K8sNotificationSource watches a single GVK and dispatches events to registered NotificationExtractors.
func NewK8sNotificationSource ¶
func NewK8sNotificationSource(pluginType, pluginName string, gvk schema.GroupVersionKind) *K8sNotificationSource
NewK8sNotificationSource returns a new notification source for the given GVK.
func (*K8sNotificationSource) GVK ¶
func (s *K8sNotificationSource) GVK() schema.GroupVersionKind
GVK returns the GroupVersionKind this source watches.
func (*K8sNotificationSource) Notify ¶
func (s *K8sNotificationSource) Notify(_ context.Context, event fwkdl.NotificationEvent) (*fwkdl.NotificationEvent, error)
Notify passes the event through for Runtime to dispatch to extractors. Returns nil to skip extractor dispatch.
func (*K8sNotificationSource) TypedName ¶
func (s *K8sNotificationSource) TypedName() fwkplugin.TypedName
TypedName returns the plugin type and name.