Enum kube::error::ConfigError [−][src]
pub enum ConfigError {}Show 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)
InvalidBearerToken(InvalidHeaderValue)
Tried to refresh a token and got a non-refreshable token response
One or more required in-cluster config options are missing
MalformedTokenExpirationDate(ParseError)
This is supported on crate feature
client
only.OAuth(OAuthError)
This is supported on crate feature
oauth
only.Show fields
Fields of LoadContext
context_name: String
Show fields
Fields of LoadClusterOfContext
cluster_name: String
Show fields
Fields of FindUser
user_name: String
Base64Decode(DecodeError)
Show fields
Fields of NoAbsolutePath
path: PathBuf
ParseYaml(Error)
EmptyKubeconfig(PathBuf)
AuthExecStart(Error)
Show fields
Fields of AuthExecRun
AuthExecParse(Error)
AuthExec(String)
Trait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for ConfigError
impl Send for ConfigError
impl Sync for ConfigError
impl Unpin for ConfigError
impl !UnwindSafe for ConfigError