Enum kube_client::client::AuthError [−][src]
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)
Tuple Fields
Invalid basic auth
InvalidBearerToken(InvalidHeaderValue)
Tuple Fields
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)
Tuple Fields
0: ParseErrorMalformed token expiration date
AuthExecStart(Error)
Tuple Fields
0: ErrorFailed 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)
Tuple Fields
0: ErrorFailed to parse auth exec output
AuthExec(String)
Tuple Fields
0: StringFailed to exec auth
ReadTokenFile(Error, PathBuf)
Failed to read token file
ParseTokenKey(Error)
Tuple Fields
0: ErrorFailed to parse token-key
OAuth(OAuthError)
Tuple Fields
0: OAuthErrorThis 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
