pub async fn resolve_value_with_secrets<P: SecretsProvider + ?Sized>(
value: &str,
secrets_provider: &P,
scope: &str,
) -> Result<String, EnvResolutionError>Expand description
Resolve a single environment variable value with secrets support
If the value starts with $S:, look up the secret from the provider.
If the value starts with $E:, look up the remainder in std::env::var().
Otherwise, return the value unchanged.
§Arguments
value- The value to resolve (possibly with $S: or $E: prefix)secrets_provider- The secrets provider to use for $S: lookupsscope- The scope identifier (e.g., deployment name) for secret lookups
§Returns
Ok(String)- The resolved valueErr(EnvResolutionError)- If a $S: or $E: reference cannot be resolved
§Errors
Returns an error if a $S: or $E: referenced value cannot be resolved.