ClientSecretStorage

Trait ClientSecretStorage 

Source
pub trait ClientSecretStorage {
    // Required methods
    fn create_secret<'life0, 'async_trait>(
        &'life0 mut self,
        secret_data: SecretRow,
        options: AccessOptions,
    ) -> Pin<Box<dyn Future<Output = Result<StorageChangeEvent, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn raw_secret<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        folder_id: &'life1 VaultId,
        secret_id: &'life2 SecretId,
    ) -> Pin<Box<dyn Future<Output = Result<Option<(VaultCommit, ReadEvent)>, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn read_secret<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        id: &'life1 SecretId,
        options: &'life2 AccessOptions,
    ) -> Pin<Box<dyn Future<Output = Result<(Summary, SecretMeta, Secret, ReadEvent), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn update_secret<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        secret_id: &'life1 SecretId,
        meta: SecretMeta,
        secret: Option<Secret>,
        options: AccessOptions,
    ) -> Pin<Box<dyn Future<Output = Result<StorageChangeEvent, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn delete_secret<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        secret_id: &'life1 SecretId,
        options: AccessOptions,
    ) -> Pin<Box<dyn Future<Output = Result<StorageChangeEvent, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn remove_secret<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        id: &'life1 SecretId,
        options: &'life2 AccessOptions,
    ) -> Pin<Box<dyn Future<Output = Result<WriteEvent, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

Secret management for client storage.

Required Methods§

Source

fn create_secret<'life0, 'async_trait>( &'life0 mut self, secret_data: SecretRow, options: AccessOptions, ) -> Pin<Box<dyn Future<Output = Result<StorageChangeEvent, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Create a secret in the currently open vault.

Source

fn raw_secret<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, folder_id: &'life1 VaultId, secret_id: &'life2 SecretId, ) -> Pin<Box<dyn Future<Output = Result<Option<(VaultCommit, ReadEvent)>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Read the encrypted contents of a secret.

Source

fn read_secret<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, id: &'life1 SecretId, options: &'life2 AccessOptions, ) -> Pin<Box<dyn Future<Output = Result<(Summary, SecretMeta, Secret, ReadEvent), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Read a secret in the currently open folder.

Source

fn update_secret<'life0, 'life1, 'async_trait>( &'life0 mut self, secret_id: &'life1 SecretId, meta: SecretMeta, secret: Option<Secret>, options: AccessOptions, ) -> Pin<Box<dyn Future<Output = Result<StorageChangeEvent, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Update a secret in the currently open folder.

Source

fn delete_secret<'life0, 'life1, 'async_trait>( &'life0 mut self, secret_id: &'life1 SecretId, options: AccessOptions, ) -> Pin<Box<dyn Future<Output = Result<StorageChangeEvent, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Delete a secret in the currently open vault.

Source

fn remove_secret<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, id: &'life1 SecretId, options: &'life2 AccessOptions, ) -> Pin<Box<dyn Future<Output = Result<WriteEvent, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Remove a secret.

Any external files for the secret are left intact.

Implementors§