Documentation ¶
Index ¶
- type AuthConfigPersister
- type Source
- func Dummy(name string, value string) Source
- func K8s(name string, configPath string, userName string) (Source, error)
- func OIDC(name string, config login.OIDCConfig, path string, ...) (Source, func() error, error)
- func OIDCWithCache(name string, cache login.Cache, callbackSrv *login.CallbackServer) (Source, func() error, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthConfigPersister ¶
AuthConfigPersister allows a plugin to persist configuration info for just itself.
type Source ¶
type Source interface { Name() string // HeaderValue allows the source to return value for authorization header. HeaderValue() (string, error) }
Source represents a way to add client auth to the request's headers.
func K8s ¶
K8s is a special source that get's auth info from kubeconfig and returns deducted source.
func OIDC ¶
func OIDC(name string, config login.OIDCConfig, path string, callbackSrv *login.CallbackServer) (Source, func() error, error)
func OIDCWithCache ¶
Click to show internal directories.
Click to hide internal directories.