MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / vault_retrieve

Method vault_retrieve

atomic-repository/src/repository/vault.rs:271–282  ·  view source on GitHub ↗

Retrieve a vault entry by path.

(
        &self,
        path: &str,
    )

Source from the content-addressed store, hash-verified

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(

Callers 15

runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
load_attestationFunction · 0.80
stale_is_stale_and_naFunction · 0.80
read_memoryFunction · 0.80
load_attestationFunction · 0.80
is_index_scaffoldFunction · 0.80
execute_planFunction · 0.80

Calls 2

read_txnMethod · 0.80
get_vault_entryMethod · 0.45