Documentation ¶
Index ¶
- Constants
- func IsAuthResponseTimedOut(err error) bool
- func IsClusterAPINotKnown(err error) bool
- func IsClusterAPINotReady(err error) bool
- func IsClusterNotFound(err error) bool
- func IsContextAlreadySelected(err error) bool
- func IsContextDoesNotExist(err error) bool
- func IsCredentialRetrievalTimedOut(err error) bool
- func IsDeviceAuthError(err error) bool
- func IsFileExistsError(err error) bool
- func IsIncorrectConfiguration(err error) bool
- func IsInsufficientPermissions(err error) bool
- func IsInvalidAuthConfiguration(err error) bool
- func IsInvalidAuthResult(err error) bool
- func IsInvalidConfig(err error) bool
- func IsInvalidFlag(err error) bool
- func IsInvalidReleaseVersion(err error) bool
- func IsMissingComponent(err error) bool
- func IsMultipleClustersFound(err error) bool
- func IsNewLoginRequired(err error) bool
- func IsNoOrganizations(err error) bool
- func IsOrganizationNotFound(err error) bool
- func IsReleaseNotFound(err error) bool
- func IsSelectedTokenNonCompatible(err error) bool
- func IsTokenRenewalFailed(err error) bool
- func IsUnknownOrganizationNamespace(err error) bool
- func IsUnknownUrl(err error) bool
- func IsUnsupportedProvider(err error) bool
- func IsUnsupportedReleaseVersion(err error) bool
- func New(config Config) (*cobra.Command, error)
- func VerifyIDTokenWithKubernetesAPI(idToken, apiServerURL string, caData []byte) error
- type Config
- type LoginOptions
Constants ¶
const ( ClientID = "client-id" Issuer = "idp-issuer-url" IDToken = "id-token" RefreshToken = "refresh-token" )
Variables ¶
This section is empty.
Functions ¶
func IsAuthResponseTimedOut ¶
IsAuthResponseTimedOut asserts authResponseTimedOutError.
func IsClusterAPINotKnown ¶ added in v2.40.0
IsClusterAPINotKnown asserts clusterAPINotKnownError.
func IsClusterAPINotReady ¶ added in v2.40.0
IsClusterAPINotReady asserts clusterAPINotReadyError.
func IsClusterNotFound ¶
IsClusterNotFound asserts clusterNotFoundError.
func IsContextAlreadySelected ¶
IsContextAlreadySelected asserts contextAlreadySelectedError.
func IsContextDoesNotExist ¶
IsContextDoesNotExist asserts contextDoesNotExistError.
func IsCredentialRetrievalTimedOut ¶
IsCredentialRetrievalTimedOut asserts credentialRetrievalTimedOut.
func IsDeviceAuthError ¶ added in v2.48.0
IsDeviceAuthError asserts deviceAuthError.
func IsFileExistsError ¶
IsFileExistsError asserts fileExistsError.
func IsIncorrectConfiguration ¶
IsIncorrectConfiguration asserts incorrectConfigurationError.
func IsInsufficientPermissions ¶
IsInsufficientPermissions asserts insufficientPermissionsError.
func IsInvalidAuthConfiguration ¶
IsInvalidAuthConfiguration asserts invalidAuthConfigurationError.
func IsInvalidAuthResult ¶
IsInvalidAuthResult asserts invalidAuthResult.
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
func IsInvalidReleaseVersion ¶
IsInvalidReleaseVersion asserts invalidReleaseVersionError.
func IsMissingComponent ¶
IsMissingComponent asserts missingComponentError.
func IsMultipleClustersFound ¶
IsMultipleClustersFound asserts multipleClustersFoundError.
func IsNewLoginRequired ¶
IsNewLoginRequired asserts newLoginRequiredError.
func IsNoOrganizations ¶
IsNoOrganizations asserts noOrganizationsError.
func IsOrganizationNotFound ¶
IsOrganizationNotFound asserts organizationNotFoundError.
func IsReleaseNotFound ¶
IsReleaseNotFound asserts releaseNotFoundError.
func IsSelectedTokenNonCompatible ¶
IsSelectedTokenNonCompatible asserts selectedContextNonCompatibleError.
func IsTokenRenewalFailed ¶
IsTokenRenewalFailed asserts tokenRenewalFailedError.
func IsUnknownOrganizationNamespace ¶
IsUnknownOrganizationNamespace asserts unknownOrganizationNamespaceError.
func IsUnsupportedProvider ¶
IsUnsupportedProvider asserts unsupportedProviderError.
func IsUnsupportedReleaseVersion ¶
IsUnsupportedReleaseVersion asserts unsupportedReleaseVersionError.
func VerifyIDTokenWithKubernetesAPI ¶ added in v2.52.2
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
}