-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig.go
25 lines (21 loc) · 942 Bytes
/
config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package v1
import "github.com/icinga/icinga-go-library/types"
// Config represents a single key => value pair database config entry.
type Config struct {
ClusterUuid types.UUID
Key ConfigKey
Value string
Locked types.Bool
}
// ConfigKey represents the database config.Key enums.
type ConfigKey string
const (
ConfigKeyNotificationsUsername ConfigKey = "notifications.username"
ConfigKeyNotificationsPassword ConfigKey = "notifications.password"
ConfigKeyNotificationsUrl ConfigKey = "notifications.url"
ConfigKeyNotificationsKubernetesWebUrl ConfigKey = "notifications.kubernetes_web_url"
ConfigKeyPrometheusUrl ConfigKey = "prometheus.url"
ConfigKeyPrometheusInsecure ConfigKey = "prometheus.insecure"
ConfigKeyPrometheusUsername ConfigKey = "prometheus.username"
ConfigKeyPrometheusPassword ConfigKey = "prometheus.password"
)