auth

package
v1.0.0-alpha.test.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2017 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthConfigPersister

type AuthConfigPersister interface {
	Persist(map[string]string) error
}

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 Dummy

func Dummy(name string, value string) Source

func K8s

func K8s(name string, configPath string, userName string) (Source, error)

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

func OIDCWithCache(name string, cache login.Cache, callbackSrv *login.CallbackServer) (Source, func() error, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL