Documentation ¶
Index ¶
- Variables
- func FlagSet() *flag.FlagSet
- func StringToTemplateHookFunc() mapstructure.DecodeHookFuncType
- func StringToURLHookFunc() mapstructure.DecodeHookFuncType
- func Validate(conf Config) error
- type Config
- type HTTP
- type HTTPCheck
- type Log
- type OAuth2
- type OAuth2Client
- type OAuth2Endpoints
- type OAuth2Validate
- type OpenVpn
- type OpenVpnBypass
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrRequired = errors.New("required")
Functions ¶
func StringToTemplateHookFunc ¶ added in v1.6.0
func StringToTemplateHookFunc() mapstructure.DecodeHookFuncType
StringToTemplateHookFunc parse a string to template.Template.
func StringToURLHookFunc ¶ added in v1.7.0
func StringToURLHookFunc() mapstructure.DecodeHookFuncType
StringToURLHookFunc parse a string to url.URL.
Types ¶
type HTTP ¶ added in v1.7.0
type HTTP struct { Listen string `koanf:"listen"` CertFile string `koanf:"cert"` KeyFile string `koanf:"key"` TLS bool `koanf:"tls"` BaseURL *url.URL `koanf:"baseurl"` Secret string `koanf:"secret"` CallbackTemplate *template.Template `koanf:"callback-template-path"` Check HTTPCheck `koanf:"check"` EnableProxyHeaders bool `koanf:"enable-proxy-headers"` }
type OAuth2 ¶ added in v1.0.0
type OAuth2 struct { Issuer *url.URL `koanf:"issuer"` Provider string `koanf:"provider"` AuthorizeParams string `koanf:"authorize-params"` Endpoints OAuth2Endpoints `koanf:"endpoint"` Client OAuth2Client `koanf:"client"` Scopes []string `koanf:"scopes"` Pkce bool `koanf:"pkce"` Validate OAuth2Validate `koanf:"validate"` }
type OAuth2Client ¶ added in v1.0.0
type OAuth2Endpoints ¶ added in v1.2.0
type OAuth2Validate ¶ added in v1.0.0
type OpenVpn ¶ added in v1.0.0
type OpenVpn struct { Addr *url.URL `koanf:"addr"` Password string `koanf:"password"` Bypass OpenVpnBypass `koanf:"bypass"` AuthTokenUser bool `koanf:"auth-token-user"` }
type OpenVpnBypass ¶ added in v1.1.0
type OpenVpnBypass struct {
CommonNames []string `koanf:"cn"`
}
Click to show internal directories.
Click to hide internal directories.