Enum kube_client::error::ConfigError[][src]

pub enum ConfigError {
Show 29 variants InvalidBasicAuth(InvalidHeaderValue), InvalidBearerToken(InvalidHeaderValue), UnrefreshableTokenResponse, ConfigInferenceExhausted { cluster_env: Box<Error>, kubeconfig: Box<Error>, }, CurrentContextNotSet, KindMismatch, ApiVersionMismatch, MissingInClusterVariables { hostenv: &'static str, portenv: &'static str, }, InvalidInClusterNamespace(Box<Error>), InvalidInClusterToken(Box<Error>), ExecPluginFailed, MalformedTokenExpirationDate(ParseError), OAuth(OAuthError), 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, ParseYaml(Error), EmptyKubeconfig(PathBuf), AuthExecStart(Error), AuthExecRun { cmd: String, status: ExitStatus, out: Output, }, AuthExecParse(Error), AuthExec(String),
}
This is supported on crate features config or client only.
Expand description

Possible errors when loading config

Variants

InvalidBasicAuth(InvalidHeaderValue)

Tuple Fields of InvalidBasicAuth

0: InvalidHeaderValue
InvalidBearerToken(InvalidHeaderValue)

Tuple Fields of InvalidBearerToken

0: 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>
CurrentContextNotSet
KindMismatch
ApiVersionMismatch
MissingInClusterVariables

One or more required in-cluster config options are missing

Fields of MissingInClusterVariables

hostenv: &'static strportenv: &'static str
InvalidInClusterNamespace(Box<Error>)

Tuple Fields of InvalidInClusterNamespace

0: Box<Error>
InvalidInClusterToken(Box<Error>)

Tuple Fields of InvalidInClusterToken

0: Box<Error>
ExecPluginFailed
MalformedTokenExpirationDate(ParseError)
This is supported on crate feature client only.

Tuple Fields of MalformedTokenExpirationDate

0: ParseError
OAuth(OAuthError)
This is supported on crate feature oauth only.

Tuple Fields of OAuth

0: OAuthError
LoadConfigFile(Box<Error>)

Tuple Fields of LoadConfigFile

0: 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)

Tuple Fields of Base64Decode

0: DecodeError
NoAbsolutePath

Fields of NoAbsolutePath

path: PathBuf
ReadFile

Fields of ReadFile

path: PathBufsource: Error
NoBase64FileOrData
NoFileOrData
ParseYaml(Error)

Tuple Fields of ParseYaml

0: Error
EmptyKubeconfig(PathBuf)

Tuple Fields of EmptyKubeconfig

0: PathBuf
AuthExecStart(Error)

Tuple Fields of AuthExecStart

0: Error
AuthExecRun

Fields of AuthExecRun

cmd: Stringstatus: ExitStatusout: Output
AuthExecParse(Error)

Tuple Fields of AuthExecParse

0: Error
AuthExec(String)

Tuple Fields of AuthExec

0: String

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more