pub trait VaultKeyDirectoryProvider {
    // Required methods
    fn create(
        &self,
        name: &str,
        key: VaultKey
    ) -> Result<Box<dyn VaultKeyDirectory>, Error>;
    fn open(
        &self,
        name: &str,
        key: VaultKey
    ) -> Result<Box<dyn VaultKeyDirectory>, Error>;
    fn list_vaults(&self) -> Result<Vec<String>, Error>;
    fn vault_meta(&self, name: &str) -> Result<String, Error>;
}
Expand description

Vaults provider

Required Methods§

source

fn create( &self, name: &str, key: VaultKey ) -> Result<Box<dyn VaultKeyDirectory>, Error>

Create new vault with given key

source

fn open( &self, name: &str, key: VaultKey ) -> Result<Box<dyn VaultKeyDirectory>, Error>

Open existing vault with given key

source

fn list_vaults(&self) -> Result<Vec<String>, Error>

List all vaults

source

fn vault_meta(&self, name: &str) -> Result<String, Error>

Get vault meta

Implementors§