Documentation ¶
Index ¶
- Variables
- func GetBool(key string, defaultValue bool) bool
- func GetDuration(key string, defaultValue time.Duration) (time.Duration, error)
- func GetString(key, defaultValue string) string
- func GetStrings(key string, defaultValue []string) []string
- type AuthProvider
- type Config
- type Database
- type Keys
- type Logging
- type PollNet
- type ServerKeys
- type SystemAdminPolicy
- type Tls
Constants ¶
This section is empty.
Variables ¶
View Source
var (
KeepAliveInterval = 1 * time.Minute
)
Functions ¶
func GetStrings ¶
Types ¶
type AuthProvider ¶
type AuthProvider struct { Issuer string `yaml:"issuer"` ClientID string `yaml:"client_id"` ClientSecret string `yaml:"client_secret"` Scopes []string `yaml:"additional_scopes"` SystemAdminPolicy SystemAdminPolicy `yaml:"system_admins"` }
type Config ¶
type Config struct { HttpListenAddr string `yaml:"http_listen_addr,omitempty"` HttpsListenAddr string `yaml:"https_listen_addr,omitempty"` MetricsListenAddr string `yaml:"metrics_listen_addr,omitempty"` ServerUrl string `yaml:"server_url,omitempty"` Tls Tls `yaml:"tls,omitempty"` PollNet PollNet `yaml:"poll_net,omitempty"` Keys Keys `yaml:"keys,omitempty"` Database Database `yaml:"database,omitempty"` AuthProvider AuthProvider `yaml:"auth_provider,omitempty"` Logging Logging `yaml:"logging,omitempty"` }
func LoadConfig ¶
func (*Config) ReadServerKeys ¶
func (c *Config) ReadServerKeys() (*ServerKeys, error)
type ServerKeys ¶
type ServerKeys struct { SystemAdminKey *key.ServerPrivate ControlKey tkey.MachinePrivate LegacyControlKey tkey.MachinePrivate }
type SystemAdminPolicy ¶
type Tls ¶
type Tls struct { Disable bool `yaml:"disable"` ForceHttps bool `yaml:"force_https"` CertFile string `yaml:"cert_file,omitempty"` KeyFile string `yaml:"key_file,omitempty"` AcmeEnabled bool `yaml:"acme,omitempty"` AcmeEmail string `yaml:"acme_email,omitempty"` AcmeCA string `yaml:"acme_ca,omitempty"` AcmePath string `yaml:"acme_path,omitempty"` }
Click to show internal directories.
Click to hide internal directories.