Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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"` Logging Logging `yaml:"logging,omitempty"` Keys Keys `yaml:"keys,omitempty"` Database Database `yaml:"database,omitempty"` AuthProvider AuthProvider `yaml:"auth_provider,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"` CertFile string `yaml:"cert_file,omitempty"` KeyFile string `yaml:"key_file,omitempty"` CertMagicDomain string `yaml:"cert_magic_domain,omitempty"` CertMagicEmail string `yaml:"cert_magic_email,omitempty"` CertMagicCA string `yaml:"cert_magic_ca,omitempty"` CertMagicStoragePath string `yaml:"cert_magic_storage_path,omitempty"` }
Click to show internal directories.
Click to hide internal directories.