pub trait SecretsController: Debug + Send + Sync {
    fn ensure<'life0, 'life1, 'async_trait>(
        &'life0 self,
        id: GlobalId,
        contents: &'life1 [u8]
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; fn delete<'life0, 'async_trait>(
        &'life0 self,
        id: GlobalId
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn reader(&self) -> Arc<dyn SecretsReader>; }
Expand description

Securely manages user secrets.

Required Methods

Creates or updates the specified secret with the specified binary contents.

Deletes the specified secret.

Returns a reader for the secrets managed by this controller.

Implementors