[][src]Enum kube::error::ConfigError

pub enum ConfigError {
    InvalidBasicAuth(InvalidHeaderValue),
    InvalidBearerToken(InvalidHeaderValue),
    UnrefreshableTokenResponse,
    ConfigInferenceExhausted {
        cluster_env: Box<Error>,
        kubeconfig: Box<Error>,
    },
    MissingInClusterVariables {
        hostenv: &'static str,
        portenv: &'static str,
    },
    InvalidInClusterNamespace(Box<Error>),
    InvalidInClusterToken(Box<Error>),
    MalformedUrl(ParseError),
    ExecPluginFailed,
    MalformedTokenExpirationDate(ParseError),
    MissingGoogleCredentials,
    OAuth2LoadCredentials(Error),
    OAuth2ParseCredentials(Error),
    OAuth2RequestToken(Error),
    OAuth2RetrieveCredentials(Box<Response>),
    OAuth2ParseToken(Error),
    LoadConfigFile(Box<Error>),
    LoadContext {
        context_name: String,
    },
    LoadClusterOfContext {
        cluster_name: String,
    },
    FindUser {
        user_name: String,
    },
    NoKubeconfigPath,
    Base64Decode(DecodeError),
    NoAbsolutePath {
        path: PathBuf,
    },
    ReadFile {
        path: PathBuf,
        source: Error,
    },
    NoBase64FileOrData,
    NoFileOrData,
    LoadCert(Error),
    ParseYaml(Error),
    AuthExecStart(Error),
    AuthExecRun {
        cmd: String,
        status: ExitStatus,
        out: Output,
    },
    AuthExecParse(Error),
}

Possible errors when loading config

Variants

InvalidBasicAuth(InvalidHeaderValue)
InvalidBearerToken(InvalidHeaderValue)
UnrefreshableTokenResponse

Tried to refresh a token and got a non-refreshable token response

ConfigInferenceExhausted

Fields of ConfigInferenceExhausted

cluster_env: Box<Error>kubeconfig: Box<Error>
MissingInClusterVariables

One or more required in-cluster config options are missing

Fields of MissingInClusterVariables

hostenv: &'static strportenv: &'static str
InvalidInClusterNamespace(Box<Error>)
InvalidInClusterToken(Box<Error>)
MalformedUrl(ParseError)
ExecPluginFailed
MalformedTokenExpirationDate(ParseError)
MissingGoogleCredentials

Missing GOOGLE_APPLICATION_CREDENTIALS env

OAuth2LoadCredentials(Error)
OAuth2ParseCredentials(Error)
OAuth2RequestToken(Error)
OAuth2RetrieveCredentials(Box<Response>)
OAuth2ParseToken(Error)
LoadConfigFile(Box<Error>)
LoadContext

Fields of LoadContext

context_name: String
LoadClusterOfContext

Fields of LoadClusterOfContext

cluster_name: String
FindUser

Fields of FindUser

user_name: String
NoKubeconfigPath
Base64Decode(DecodeError)
NoAbsolutePath

Fields of NoAbsolutePath

path: PathBuf
ReadFile

Fields of ReadFile

path: PathBufsource: Error
NoBase64FileOrData
NoFileOrData
LoadCert(Error)
ParseYaml(Error)
AuthExecStart(Error)
AuthExecRun

Fields of AuthExecRun

cmd: Stringstatus: ExitStatusout: Output
AuthExecParse(Error)

Trait Implementations

impl Debug for ConfigError[src]

impl Display for ConfigError[src]

impl Error for ConfigError[src]

impl From<ConfigError> for Error[src]

impl From<ParseError> for ConfigError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Sealed<T> for T where
    T: ?Sized

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.