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

Method vault_retrieve

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

Retrieve a vault entry by path.

(
        &self,
        path: &str,
    )

Source from the content-addressed store, hash-verified

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(

Callers 15

runMethod · 0.80
runMethod · 0.80
gather_candidatesMethod · 0.80
scan_memory_bodiesMethod · 0.80
seed_from_intentMethod · 0.80
resolve_and_rankFunction · 0.80
stale_is_stale_and_naFunction · 0.80
read_memoryFunction · 0.80
load_attestationFunction · 0.80
is_index_scaffoldFunction · 0.80

Calls 2

read_txnMethod · 0.80
get_vault_entryMethod · 0.45