Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiConfiguration ¶
type AuthConfiguration ¶
type AuthConfiguration struct {
Enable *bool `mapstructure:"enable"`
Providers OIDCProviders `mapstructure:"oidc_providers"`
}
type Configuration ¶
type Configuration struct {
Auth AuthConfiguration `mapstructure:"auth"`
Api ApiConfiguration `mapstructure:"api"`
Database DatabaseConfiguration `mapstructure:"database"`
TFE TFEConfiguration `mapstructure:"tfe"`
Sentry SentryConfiguration `mapstructure:"sentry"`
}
func GetConfiguration ¶
func GetConfiguration() *Configuration
type DatabaseConfiguration ¶
type OIDCProvider ¶
type OIDCProviders ¶
type OIDCProviders []OIDCProvider
func (*OIDCProviders) UnmarshalText ¶
func (p *OIDCProviders) UnmarshalText(text []byte) error
example of how to parse multiple OIDC providers with one env var: "HAPI_AUTH_OIDC_PROVIDERS": "issuer1|clientid1,issuer2|clientid2"
type SentryConfiguration ¶
type SentryConfiguration struct {
DSN string `mapstructure:"dsn"`
}
type TFEConfiguration ¶
type TFEConfiguration struct {
Token string `mapstructure:"token"`
}
Click to show internal directories.
Click to hide internal directories.