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

Method vault_list

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

List vault entries, optionally filtered by prefix and entry type.

(
        &self,
        prefix: &str,
        entry_type_filter: Option<atomic_core::pristine::VaultEntryType>,
    )

Source from the content-addressed store, hash-verified

283
284 /// List vault entries, optionally filtered by prefix and entry type.
285 pub fn vault_list(
286 &self,
287 prefix: &str,
288 entry_type_filter: Option<atomic_core::pristine::VaultEntryType>,
289 ) -> Result<Vec<atomic_core::pristine::VaultEntryMeta>, RepositoryError> {
290 let txn = self
291 .pristine
292 .read_txn()
293 .map_err(|e| RepositoryError::Database(e.to_string()))?;
294 use atomic_core::pristine::VaultTxnT;
295 txn.list_vault_entries(prefix, entry_type_filter)
296 .map_err(|e| RepositoryError::Database(e.to_string()))
297 }
298
299 /// Delete a vault entry by path. Also updates the manifest.
300 pub fn vault_delete(&self, path: &str) -> Result<bool, RepositoryError> {

Callers 15

runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
vault_goal_stopMethod · 0.80
vault_embed_allMethod · 0.80
find_intent_pathMethod · 0.80
vault_materialize_allMethod · 0.80

Calls 2

read_txnMethod · 0.80
list_vault_entriesMethod · 0.45