Skip to main content

vault_for_root

Function vault_for_root 

Source
pub fn vault_for_root(
    store: &CloudStore,
    root: &Path,
) -> Result<Option<VaultRecord>, CloudError>
Expand description

The vault the checkout at root sends to, from the map of store as the connected Cloud and account see it (rc3-81): None when it has none (or only one of another Cloud or account), refused (vault_mismatch) when its record is stale. The one lookup of every caller that writes to a vault (tasks, bus posts and leases, docs, the live bus), so a record the link file or the identity no longer backs is never written to, also before link, connect or sync dropped it (a git pull that changed the link file).