[][src]Trait secret_keeper::keepers::Create

pub trait Create: SecretKeeper {
#[must_use]    fn create_key<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        key_name: &'life1 str,
        params: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; }

Trait describing a SecretKeeper that can create keys

Required methods

#[must_use]fn create_key<'life0, 'life1, 'life2, 'async_trait>(
    &'life0 self,
    key_name: &'life1 str,
    params: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 

Creates a new encryption key. key_name is any valid key name params are url-encoded parameters that can be created with serde_urlencoded

It is expected that this call should work with an empty params string, using defaults filled in by the keeper itself and/or environment variables.

Refer to specific SecretKeeper implementations for documentation about applicable params.

Loading content...

Implementors

Loading content...