pub trait Storage: Sync + Send + 'static {
fn store<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
key_id: &'life1 KeyId,
key: &'life2 VaultEntry
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait;
fn load<'life0, 'life1, 'async_trait>(
&'life0 self,
key_id: &'life1 KeyId
) -> Pin<Box<dyn Future<Output = Result<VaultEntry>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
key_id: &'life1 KeyId
) -> Pin<Box<dyn Future<Output = Result<VaultEntry>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
}
Expand description
Defines Storage interface for Ockam vaults.
Required Methods
Store secret
Load secret