Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Load ¶
func Load()
Load reads the config file and populates the Config struct; then validates the Config
func LoadForSetup ¶
func LoadForSetup()
LoadForSetup reads the config file and populates the Config struct; it does not validate the Config, since this is not required for setup
Types ¶
type Config ¶ added in v0.2.0
type Config struct {
IssuerURL string `yaml:"issuer"`
Server serverConf `yaml:"server"`
GeoIPDBFile string `yaml:"geo_ip_db_file"`
API apiConf `yaml:"api"`
DB DBConf `yaml:"database"`
Signing signingConf `yaml:"signing"`
Logging loggingConf `yaml:"logging"`
ServiceDocumentation string `yaml:"service_documentation"`
Features featuresConf `yaml:"features"`
Providers []*ProviderConf `yaml:"providers"`
ProviderByIssuer map[string]*ProviderConf `yaml:"-"`
ServiceOperator ServiceOperatorConf `yaml:"service_operator"`
}
Config holds the server configuration
type LoggerConf ¶
type LoggerConf struct {
Dir string `yaml:"dir"`
StdErr bool `yaml:"stderr"`
Level string `yaml:"level"`
}
LoggerConf holds configuration related to logging
type ProviderConf ¶
type ProviderConf struct {
Issuer string `yaml:"issuer"`
ClientID string `yaml:"client_id"`
ClientSecret string `yaml:"client_secret"`
Scopes []string `yaml:"scopes"`
Endpoints *oauth2x.Endpoints `yaml:"-"`
Provider *oidc.Provider `yaml:"-"`
Name string `yaml:"name"`
AudienceRequestParameter string `yaml:"audience_request_parameter"`
}
ProviderConf holds information about a provider
Click to show internal directories.
Click to hide internal directories.