Trait SecretsStore
Source pub trait SecretsStore:
Debug
+ Send
+ Sync {
// Required methods
fn status(&self) -> SecretStoreResult<Status>;
fn lock(&self) -> SecretStoreResult<()>;
fn unlock(
&self,
identity_id: &str,
passphrase: SecretBytes,
) -> SecretStoreResult<()>;
fn identities(&self) -> SecretStoreResult<Vec<Identity>>;
fn add_identity(
&self,
identity: Identity,
passphrase: SecretBytes,
) -> SecretStoreResult<()>;
fn change_passphrase(
&self,
passphrase: SecretBytes,
) -> SecretStoreResult<()>;
fn list(&self, filter: &SecretListFilter) -> SecretStoreResult<SecretList>;
fn update_index(&self) -> SecretStoreResult<()>;
fn add(&self, secret_version: SecretVersion) -> SecretStoreResult<String>;
fn get(&self, secret_id: &str) -> SecretStoreResult<Secret>;
fn get_version(&self, block_id: &str) -> SecretStoreResult<SecretVersion>;
}