Skip to main content

GetSecretFromAir

Function GetSecretFromAir 

Source
async fn GetSecretFromAir(
    _AirClient: &AirServiceClient<Channel>,
    ExtensionIdentifier: String,
    Key: String,
) -> Result<Option<String>, CommonError>
Expand description

Air stub: retrieves a secret from the remote Air service.

TODO: construct GetSecretRequest with ExtensionIdentifier + Key, call AirClient.get_secret with timeout, map errors to CommonError, return Ok(Some(secret)) if found or Ok(None) if not found.