Skip to main content

CredentialResolver

Trait CredentialResolver 

Source
pub trait CredentialResolver: Send + Sync {
    // Required method
    fn resolve<'life0, 'life1, 'async_trait>(
        &'life0 self,
        alias: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Trait for resolving keychain credential aliases at step-execution time. Mirrors the Python-side noetl.core.credential_refs resolution flow; see noetl/noetl wiki page credential-resolution-flow.

Required Methods§

Source

fn resolve<'life0, 'life1, 'async_trait>( &'life0 self, alias: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Resolve alias (e.g. "duffel") to its concrete credential envelope. Implementations consult the NoETL keychain (worker path) or the CLI’s local keychain cache (CLI path).

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§