Enum kube_client::client::OAuthError [−][src]
pub enum OAuthError {
Show 13 variants
InvalidDefaultProviderConfig(Error),
NoDefaultProvider,
LoadCredentials(Error),
ParseCredentials(Error),
InvalidKeyFormat(Error),
InvalidRsaKey(Error),
RequestToken(Error),
RetrieveCredentials(Error),
ParseToken(Error),
ConcatBuffers(Error),
BuildRequest(Error),
Unknown(String),
CreateOpensslHttpsConnector(ErrorStack),
}This is supported on crate feature
client only.Expand description
Possible errors when requesting token with OAuth
Variants
InvalidDefaultProviderConfig(Error)
Tuple Fields
0: ErrorDefault provider appears to be configured, but was invalid
NoDefaultProvider
No provider was found
LoadCredentials(Error)
Tuple Fields
0: ErrorFailed to load OAuth credentials file
ParseCredentials(Error)
Tuple Fields
0: ErrorFailed to parse OAuth credentials file
InvalidKeyFormat(Error)
Tuple Fields
0: ErrorCredentials file had invalid key format
InvalidRsaKey(Error)
Tuple Fields
0: ErrorCredentials file had invalid RSA key
RequestToken(Error)
Tuple Fields
0: ErrorFailed to request token
RetrieveCredentials(Error)
Tuple Fields
0: ErrorFailed to retrieve new credential
ParseToken(Error)
Tuple Fields
0: ErrorFailed to parse token
ConcatBuffers(Error)
Tuple Fields
0: ErrorFailed to concatenate the buffers from response body
BuildRequest(Error)
Tuple Fields
0: ErrorFailed to build a request
Unknown(String)
Tuple Fields
0: StringOAuth failed with unknown reason
CreateOpensslHttpsConnector(ErrorStack)
Tuple Fields
0: ErrorStackThis is supported on crate feature
openssl-tls only.Failed to create OpenSSL HTTPS connector
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
