Files
karma/internal/config/models.go
Łukasz Mierzwa 24335ebf1f Add support for passing path to custom TLS CA cert & client key/cert pair
This adds support for passing a custom http.RoundTripper so in effect we can customize TLS client config for HTTPS requests.
Fixes #184
2018-01-23 19:22:12 -08:00

65 lines
881 B
Go

package config
import "time"
type alertmanagerConfig struct {
Name string
URI string
Timeout time.Duration
Proxy bool
TLS struct {
CA string
Cert string
Key string
}
}
type jiraRule struct {
Regex string
URI string
}
type configSchema struct {
Alertmanager struct {
Interval time.Duration
Servers []alertmanagerConfig
}
Annotations struct {
Default struct {
Hidden bool
}
Hidden []string
Visible []string
}
Debug bool
Filters struct {
Default []string
}
Labels struct {
Keep []string
Strip []string
Color struct {
Static []string
Unique []string
}
}
Listen struct {
Address string
Port int
Prefix string
}
Log struct {
Config bool
Level string
}
JIRA []jiraRule
Receivers struct {
Keep []string
Strip []string
}
Sentry struct {
Private string
Public string
}
}