login

package
v1.35.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2021 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClientID     = "client-id"
	Issuer       = "idp-issuer-url"
	IDToken      = "id-token"
	RefreshToken = "refresh-token"
)

Variables

This section is empty.

Functions

func IsAuthResponseTimedOut added in v1.29.0

func IsAuthResponseTimedOut(err error) bool

IsAuthResponseTimedOut asserts authResponseTimedOutError.

func IsContextAlreadySelected

func IsContextAlreadySelected(err error) bool

IsContextAlreadySelected asserts contextAlreadySelectedError.

func IsContextDoesNotExist

func IsContextDoesNotExist(err error) bool

IsContextDoesNotExist asserts contextDoesNotExistError.

func IsIncorrectConfiguration

func IsIncorrectConfiguration(err error) bool

IsIncorrectConfiguration asserts incorrectConfigurationError.

func IsInvalidAuthConfiguration added in v1.21.0

func IsInvalidAuthConfiguration(err error) bool

IsInvalidAuthConfiguration asserts invalidAuthConfigurationError.

func IsInvalidAuthResult

func IsInvalidAuthResult(err error) bool

IsInvalidAuthResult asserts invalidAuthResult.

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsInvalidFlag

func IsInvalidFlag(err error) bool

IsInvalidFlag asserts invalidFlagError.

func IsSelectedTokenNonCompatible

func IsSelectedTokenNonCompatible(err error) bool

IsSelectedTokenNonCompatible asserts selectedContextNonCompatibleError.

func IsTokenRenewalFailed

func IsTokenRenewalFailed(err error) bool

IsTokenRenewalFailed asserts tokenRenewalFailedError.

func IsUnknownUrl

func IsUnknownUrl(err error) bool

IsUnknownUrl asserts unknownUrlError.

func New

func New(config Config) (*cobra.Command, error)

Types

type Config

type Config struct {
	Logger     micrologger.Logger
	FileSystem afero.Fs

	K8sConfigAccess clientcmd.ConfigAccess

	Stderr io.Writer
	Stdout io.Writer
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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