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

Method vault_retrieve

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

Retrieve a vault entry by path.

(
        &self,
        path: &str,
    )

Source from the content-addressed store, hash-verified

337
338 /// Retrieve a vault entry by path.
339 pub fn vault_retrieve(
340 &self,
341 path: &str,
342 ) -> Result<Option<atomic_core::pristine::VaultEntry>, RepositoryError> {
343 let txn = self
344 .pristine
345 .read_txn()
346 .map_err(|e| RepositoryError::Database(e.to_string()))?;
347 use atomic_core::pristine::VaultTxnT;
348 txn.get_vault_entry(path)
349 .map_err(|e| RepositoryError::Database(e.to_string()))
350 }
351
352 /// List vault entries, optionally filtered by prefix and entry type.
353 pub fn vault_list(

Callers 15

runMethod · 0.80
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
load_attestationFunction · 0.80
stale_is_stale_and_naFunction · 0.80
read_memoryFunction · 0.80

Calls 2

read_txnMethod · 0.80
get_vault_entryMethod · 0.45