Skip to main content

CredentialFetch

Trait CredentialFetch 

Source
pub(crate) trait CredentialFetch: Send + Sync {
    // Required method
    fn fetch(&self) -> Result<TimedCredentials, ImdsError>;
}
Expand description

The IMDS read InstanceCredentials repeats, isolated the same way Transport is and for the same reason: there is no instance metadata service in this environment, so tests drive the holder against a fake that expires on command.

Required Methods§

Implementations on Foreign Types§

Source§

impl CredentialFetch for Arc<FakeImds>

Implementors§