login

package
v2.53.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 57 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

func IsAuthResponseTimedOut(err error) bool

IsAuthResponseTimedOut asserts authResponseTimedOutError.

func IsClusterAPINotKnown added in v2.40.0

func IsClusterAPINotKnown(err error) bool

IsClusterAPINotKnown asserts clusterAPINotKnownError.

func IsClusterAPINotReady added in v2.40.0

func IsClusterAPINotReady(err error) bool

IsClusterAPINotReady asserts clusterAPINotReadyError.

func IsClusterNotFound

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

func IsCredentialRetrievalTimedOut(err error) bool

IsCredentialRetrievalTimedOut asserts credentialRetrievalTimedOut.

func IsDeviceAuthError added in v2.48.0

func IsDeviceAuthError(err error) bool

IsDeviceAuthError asserts deviceAuthError.

func IsFileExistsError

func IsFileExistsError(err error) bool

IsFileExistsError asserts fileExistsError.

func IsIncorrectConfiguration

func IsIncorrectConfiguration(err error) bool

IsIncorrectConfiguration asserts incorrectConfigurationError.

func IsInsufficientPermissions

func IsInsufficientPermissions(err error) bool

IsInsufficientPermissions asserts insufficientPermissionsError.

func IsInvalidAuthConfiguration

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

func IsInvalidReleaseVersion(err error) bool

IsInvalidReleaseVersion asserts invalidReleaseVersionError.

func IsMissingComponent

func IsMissingComponent(err error) bool

IsMissingComponent asserts missingComponentError.

func IsMultipleClustersFound

func IsMultipleClustersFound(err error) bool

IsMultipleClustersFound asserts multipleClustersFoundError.

func IsNewLoginRequired

func IsNewLoginRequired(err error) bool

IsNewLoginRequired asserts newLoginRequiredError.

func IsNoOrganizations

func IsNoOrganizations(err error) bool

IsNoOrganizations asserts noOrganizationsError.

func IsOrganizationNotFound

func IsOrganizationNotFound(err error) bool

IsOrganizationNotFound asserts organizationNotFoundError.

func IsReleaseNotFound

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

func IsUnknownOrganizationNamespace(err error) bool

IsUnknownOrganizationNamespace asserts unknownOrganizationNamespaceError.

func IsUnknownUrl

func IsUnknownUrl(err error) bool

IsUnknownUrl asserts unknownUrlError.

func IsUnsupportedProvider

func IsUnsupportedProvider(err error) bool

IsUnsupportedProvider asserts unsupportedProviderError.

func IsUnsupportedReleaseVersion

func IsUnsupportedReleaseVersion(err error) bool

IsUnsupportedReleaseVersion asserts unsupportedReleaseVersionError.

func New

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

func VerifyIDTokenWithKubernetesAPI added in v2.52.2

func VerifyIDTokenWithKubernetesAPI(idToken, apiServerURL string, caData []byte) error

Types

type Config

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

	ConfigFlags *genericclioptions.RESTClientGetter

	Stderr io.Writer
	Stdout io.Writer
}

type LoginOptions

type LoginOptions struct {
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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