Trait wasmcloud_runtime::component::Secrets

source ·
pub trait Secrets {
    // Required methods
    fn get<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<Result<Secret, SecretsError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn reveal<'life0, 'async_trait>(
        &'life0 self,
        secret: Secret,
    ) -> Pin<Box<dyn Future<Output = Result<SecretValue>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

wasmcloud:secrets implementation

Required Methods§

source

fn get<'life0, 'life1, 'async_trait>( &'life0 self, key: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Result<Secret, SecretsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Handle wasmcloud:secrets/store.get

source

fn reveal<'life0, 'async_trait>( &'life0 self, secret: Secret, ) -> Pin<Box<dyn Future<Output = Result<SecretValue>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Handle wasmcloud:secrets/reveal.reveal

Implementors§