Skip to main content

CredentialResolver

Trait CredentialResolver 

Source
pub(crate) trait CredentialResolver: Send + Sync {
    // Required method
    fn resolve<'life0, 'async_trait>(
        &'life0 self,
        target_system_id: Uuid,
        kind: SealedTargetSystemKind,
    ) -> Pin<Box<dyn Future<Output = Result<ResolvedCredentials, ResolveError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Resolves credentials for a target system. async so an implementation can call an external secrets manager.

Required Methods§

Source

fn resolve<'life0, 'async_trait>( &'life0 self, target_system_id: Uuid, kind: SealedTargetSystemKind, ) -> Pin<Box<dyn Future<Output = Result<ResolvedCredentials, ResolveError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

The resolved map contains at least the suffixes kind requires.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§