login

package
v1.60.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 License: Apache-2.0 Imports: 42 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 IsClusterNotFound added in v1.44.0

func IsClusterNotFound(err error) bool

IsClusterNotFound asserts clusterNotFoundError.

func IsContextAlreadySelected

func IsContextAlreadySelected(err error) bool

IsContextAlreadySelected asserts contextAlreadySelectedError.

func IsContextDoesNotExist

func IsContextDoesNotExist(err error) bool

IsContextDoesNotExist asserts contextDoesNotExistError.

func IsCredentialRetrievalTimedOut added in v1.44.0

func IsCredentialRetrievalTimedOut(err error) bool

IsCredentialRetrievalTimedOut asserts credentialRetrievalTimedOut.

func IsFileExistsError added in v1.50.0

func IsFileExistsError(err error) bool

IsFileExistsError asserts fileExistsError.

func IsIncorrectConfiguration

func IsIncorrectConfiguration(err error) bool

IsIncorrectConfiguration asserts incorrectConfigurationError.

func IsInsufficientPermissions added in v1.47.0

func IsInsufficientPermissions(err error) bool

IsInsufficientPermissions asserts insufficientPermissionsError.

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 IsInvalidReleaseVersion added in v1.44.0

func IsInvalidReleaseVersion(err error) bool

IsInvalidReleaseVersion asserts invalidReleaseVersionError.

func IsMissingComponent added in v1.44.0

func IsMissingComponent(err error) bool

IsMissingComponent asserts missingComponentError.

func IsMultipleClustersFound added in v1.47.0

func IsMultipleClustersFound(err error) bool

IsMultipleClustersFound asserts multipleClustersFoundError.

func IsNewLoginRequired added in v1.39.1

func IsNewLoginRequired(err error) bool

IsNewLoginRequired asserts newLoginRequiredError.

func IsNoOrganizations added in v1.47.0

func IsNoOrganizations(err error) bool

IsNoOrganizations asserts noOrganizationsError.

func IsOrganizationNotFound added in v1.44.0

func IsOrganizationNotFound(err error) bool

IsOrganizationNotFound asserts organizationNotFoundError.

func IsReleaseNotFound added in v1.44.0

func IsReleaseNotFound(err error) bool

IsReleaseNotFound asserts releaseNotFoundError.

func IsSelectedTokenNonCompatible

func IsSelectedTokenNonCompatible(err error) bool

IsSelectedTokenNonCompatible asserts selectedContextNonCompatibleError.

func IsTokenRenewalFailed

func IsTokenRenewalFailed(err error) bool

IsTokenRenewalFailed asserts tokenRenewalFailedError.

func IsUnknownOrganizationNamespace added in v1.44.0

func IsUnknownOrganizationNamespace(err error) bool

IsUnknownOrganizationNamespace asserts unknownOrganizationNamespaceError.

func IsUnknownUrl

func IsUnknownUrl(err error) bool

IsUnknownUrl asserts unknownUrlError.

func IsUnsupportedProvider added in v1.44.0

func IsUnsupportedProvider(err error) bool

IsUnsupportedProvider asserts unsupportedProviderError.

func IsUnsupportedReleaseVersion added in v1.44.0

func IsUnsupportedReleaseVersion(err error) bool

IsUnsupportedReleaseVersion asserts unsupportedReleaseVersionError.

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