[][src]Trait vault_rs::secrets::transit::Transit

pub trait Transit {
    fn create_key<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        path: &'life1 str,
        key: &'life2 CreateKey
    ) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
;
fn read_key<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        path: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Key, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
;
fn list_keys<'life0, 'life1, 'async_trait>(
        &'life0 self,
        path: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<String>, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
fn delete_key<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        path: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
;
fn configure_key<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        path: &'life1 str,
        key: &'life2 str,
        configuration: &'life3 ConfigureKey
    ) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
; }

Transit Secrets Engine

See the documentation.

Required methods

fn create_key<'life0, 'life1, 'life2, 'async_trait>(
    &'life0 self,
    path: &'life1 str,
    key: &'life2 CreateKey
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 

Create a new named encryption key

fn read_key<'life0, 'life1, 'life2, 'async_trait>(
    &'life0 self,
    path: &'life1 str,
    key: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<Key, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 

Read a named key

fn list_keys<'life0, 'life1, 'async_trait>(
    &'life0 self,
    path: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

List keys

fn delete_key<'life0, 'life1, 'life2, 'async_trait>(
    &'life0 self,
    path: &'life1 str,
    key: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 

Delete Key

fn configure_key<'life0, 'life1, 'life2, 'life3, 'async_trait>(
    &'life0 self,
    path: &'life1 str,
    key: &'life2 str,
    configuration: &'life3 ConfigureKey
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    Self: 'async_trait, 

Update Key Configuration

Loading content...

Implementors

impl<T> Transit for T where
    T: Vault + Send + Sync
[src]

Loading content...