Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NotificationType ¶
type NotificationType string
NotificationType is the type representing all notification types level available In order of importance it's Info, Success, Warning, Error Default level is considered Success, meaning all info will be ignored +kubebuilder:default=Success +kubebuilder:validation:Enum=Info;Success;Completion;Warning;Error +ddmark:validation:Enum=Info;Success;Completion;Warning;Error
const ( NotificationUnknown NotificationType = "" NotificationInfo NotificationType = "Info" NotificationSuccess NotificationType = "Success" NotificationCompletion NotificationType = "Completion" NotificationWarning NotificationType = "Warning" NotificationError NotificationType = "Error" )
func (NotificationType) Allows ¶
func (n NotificationType) Allows(notif NotificationType) bool
Allows determines if provided notif is above or equal to checked notificationType We treat notifications similarly to log levels excluding all NotificationType strictly below defined NotificationType Hence, Success will allow Success and above (Warning, Error)...
type NotifierDriver ¶
type NotifierDriver string
const ( // NotifierDriverSlack is the Slack driver NotifierDriverSlack NotifierDriver = "slack" // NotifierDriverNoop is a noop driver mainly used for testing NotifierDriverNoop NotifierDriver = "noop" // NotifierDriverDatadog is the Datadog driver NotifierDriverDatadog NotifierDriver = "datadog" // NotifierDriverHTTP is the HTTP driver NotifierDriverHTTP NotifierDriver = "http" )
type NotifiersCommonConfig ¶
type NotifiersCommonConfig struct {
ClusterName string `yaml:"clusterName"`
}