Versions in this module Expand all Collapse all v0 v0.0.1 Feb 20, 2025 Changes in this version + func NewAPI(cfg Config, getVars GetVars) (*api, error) + func NewFactory(settings Settings, defaultNamespace string, ...) *apiFactory + type API interface + AddNotificationService func(name string, service services.NotificationService) + GetConfig func() Config + GetNotificationServices func() map[string]services.NotificationService + RunTrigger func(triggerName string, vars map[string]interface{}) ([]triggers.ConditionResult, error) + Send func(obj map[string]interface{}, templates []string, dest services.Destination) error + type Config struct + DefaultTriggers []string + IsSelfServiceConfig bool + Namespace string + ServiceDefaultTriggers map[string][]string + Services map[string]ServiceFactory + Subscriptions subscriptions.DefaultSubscriptions + Templates map[string]services.Notification + Triggers map[string][]triggers.Condition + func ParseConfig(configMap *v1.ConfigMap, secret *v1.Secret) (*Config, error) + func (cfg Config) GetGlobalDestinations(labels map[string]string) services.Destinations + type Factory interface + GetAPI func() (API, error) + GetAPIsFromNamespace func(namespace string) (map[string]API, error) + type GetVars func(obj map[string]interface{}, dest services.Destination) map[string]interface + type ServiceFactory func() (services.NotificationService, error) + type Settings struct + ConfigMapName string + DefaultNamespace string + InitGetVars func(cfg *Config, configMap *v1.ConfigMap, secret *v1.Secret) (GetVars, error) + SecretName string