Retrieve a vault entry by path.
(
&self,
path: &str,
)
| 377 | |
| 378 | /// Retrieve a vault entry by path. |
| 379 | pub fn vault_retrieve( |
| 380 | &self, |
| 381 | path: &str, |
| 382 | ) -> Result<Option<atomic_core::pristine::VaultEntry>, RepositoryError> { |
| 383 | let txn = self |
| 384 | .pristine |
| 385 | .read_txn() |
| 386 | .map_err(|e| RepositoryError::Database(e.to_string()))?; |
| 387 | use atomic_core::pristine::VaultTxnT; |
| 388 | txn.get_vault_entry(path) |
| 389 | .map_err(|e| RepositoryError::Database(e.to_string())) |
| 390 | } |
| 391 | |
| 392 | /// List vault entries, optionally filtered by prefix and entry type. |
| 393 | pub fn vault_list( |