Enum kube_client::client::AuthError
source · [−]pub enum AuthError {
InvalidBasicAuth(InvalidHeaderValue),
InvalidBearerToken(InvalidHeaderValue),
UnrefreshableTokenResponse,
ExecPluginFailed,
MalformedTokenExpirationDate(ParseError),
AuthExecStart(Error),
AuthExecRun {
cmd: String,
status: ExitStatus,
out: Output,
},
AuthExecParse(Error),
AuthExec(String),
ReadTokenFile(Error, PathBuf),
ParseTokenKey(Error),
OAuth(OAuthError),
}This is supported on crate feature
client only.Expand description
Client auth errors
Variants
InvalidBasicAuth(InvalidHeaderValue)
Invalid basic auth
InvalidBearerToken(InvalidHeaderValue)
Invalid bearer token
UnrefreshableTokenResponse
Tried to refresh a token and got a non-refreshable token response
ExecPluginFailed
Exec plugin response did not contain a status
MalformedTokenExpirationDate(ParseError)
Malformed token expiration date
AuthExecStart(Error)
Failed to start auth exec
AuthExecRun
Fields
cmd: StringThe failed command
status: ExitStatusThe exit status or exit code of the failed command
out: OutputStdout/Stderr of the failed command
Failed to run auth exec command
AuthExecParse(Error)
Failed to parse auth exec output
AuthExec(String)
Failed to exec auth
ReadTokenFile(Error, PathBuf)
Failed to read token file
ParseTokenKey(Error)
Failed to parse token-key
OAuth(OAuthError)
This is supported on crate feature
oauth only.OAuth error
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
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