Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTriggers ¶
func GetTriggers(templatesCfg []NotificationTemplate, triggersCfg []NotificationTrigger) (map[string]Trigger, error)
Types ¶
type NotificationTemplate ¶
type NotificationTemplate struct { notifiers.Notification Name string `json:"name,omitempty"` }
type NotificationTrigger ¶
type Trigger ¶
type Trigger interface { Triggered(app *unstructured.Unstructured) (bool, error) FormatNotification(app *unstructured.Unstructured, context map[string]string) (*notifiers.Notification, error) }
Click to show internal directories.
Click to hide internal directories.