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

Function vault_repository

libatomic/src/daemon/services_agent.rs:1247–1251  ·  view source on GitHub ↗

Open the request's repository with its vault guaranteed to exist. Vault-write handlers use this; read handlers open `repository_readonly` directly, so a routed read never initializes the vault or touches a read-only checkout. An existing vault is never re-initialized.

(handle: &RepoHandle)

Source from the content-addressed store, hash-verified

1245/// vault or touches a read-only checkout. An existing vault is never
1246/// re-initialized.
1247fn vault_repository(handle: &RepoHandle) -> Result<Repository, Status> {
1248 let repo = handle.repository()?;
1249 repo.ensure_vault().map_err(repository_error)?;
1250 Ok(repo)
1251}
1252
1253#[tonic::async_trait]
1254impl vault_service_server::VaultService for VaultImpl {

Callers 6

create_vault_entityMethod · 0.85
update_vault_entityMethod · 0.85
sync_vaultMethod · 0.85
export_vaultMethod · 0.85
delete_vault_entityMethod · 0.85
link_vault_entitiesMethod · 0.85

Calls 2

repositoryMethod · 0.80
ensure_vaultMethod · 0.80

Tested by

no test coverage detected