Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventType ¶
type EventType string
EventType is used to reperesent the type of event produced by the kubernetes api server
const ( // ADDED is the event type for added events ADDED EventType = "added" // MODIFIED is the event type for deleted events MODIFIED EventType = "modified" // DELETED is the event type for modified events DELETED EventType = "deleted" // NONE is the event type for null events NONE EventType = "none" )
type Filter ¶
type Filter struct { LabelFilter string `default:"" json:"labelFilter"` FieldFilter string `default:"" json:"fieldFilter"` }
Filter will be used to filter specific events based on labels and fields selectors All default kubernetes field selectors should work
type Rule ¶
type Rule struct { Filter schema.GroupVersionResource ID RuleID `json:"id"` Namespaces []string `json:"namespaces"` Namespaced bool `json:"-"` EventTypes []EventType `json:"eventTypes"` UpdatesOn []string `json:"updatesOn"` }
Rule struct is used to represent a rule that will be used to filter events
Click to show internal directories.
Click to hide internal directories.