Retrieve a vault entry by path.
(
&self,
path: &str,
)
| 269 | |
| 270 | /// Retrieve a vault entry by path. |
| 271 | pub fn vault_retrieve( |
| 272 | &self, |
| 273 | path: &str, |
| 274 | ) -> Result<Option<atomic_core::pristine::VaultEntry>, RepositoryError> { |
| 275 | let txn = self |
| 276 | .pristine |
| 277 | .read_txn() |
| 278 | .map_err(|e| RepositoryError::Database(e.to_string()))?; |
| 279 | use atomic_core::pristine::VaultTxnT; |
| 280 | txn.get_vault_entry(path) |
| 281 | .map_err(|e| RepositoryError::Database(e.to_string())) |
| 282 | } |
| 283 | |
| 284 | /// List vault entries, optionally filtered by prefix and entry type. |
| 285 | pub fn vault_list( |