pub trait SecretProvider: Send + Sync {
// Required method
fn get<'a>(
&'a self,
name: &'a str,
) -> Pin<Box<dyn Future<Output = Result<Option<String>, String>> + Send + 'a>>;
}Expand description
Host-provided resolver for blueprint-declared secrets.
Ok(None) means the secret is not available to the script: undeclared,
declared but missing, or otherwise absent. Infrastructure/configuration
failures should be returned as Err so scripts cannot confuse them with
ordinary absence.
Required Methods§
fn get<'a>( &'a self, name: &'a str, ) -> Pin<Box<dyn Future<Output = Result<Option<String>, String>> + Send + 'a>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".