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§
sourcefn create(
&self,
name: &str,
key: VaultKey
) -> Result<Box<dyn VaultKeyDirectory>, Error>
fn create( &self, name: &str, key: VaultKey ) -> Result<Box<dyn VaultKeyDirectory>, Error>
Create new vault with given key