Documentation
¶
Overview ¶
Package protocol includes the "API" of events the rule-engine can consume. All producers who intend to add support for tracker need to support this protocol.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct {
Headers EventHeaders
Payload interface{}
}
Event is a generic event that the Engine can process
type EventHeaders ¶
type EventHeaders struct {
// Selector is a propriotary header used for filtering event subscriptions in the engin
Selector Selector
// contains filtered or unexported fields
}
EventHeaders are headers attached to the Event struct, used to send metadata about the payload
type Selector ¶
type Selector struct {
// Name indicates the name of the Event payload
Name string
// Origin indicates where the event was generated (host, container, pod), this may be empty depending on Source
Origin string
// Source indicates the producer of the Event (example: tracker, CNDR, K8SAuditLog...)
Source string
}
Selector is a propriotary header used for filtering event subscriptions in the engine
Click to show internal directories.
Click to hide internal directories.