Skip to main content

Module vault_map

Module vault_map 

Source
Expand description

<data_dir>/cloud/projects.json: the vaults Cloud resolved for this machine’s repositories and the local checkouts seen for each. Written when a checkout is resolved; read wherever a checkout’s vault matters (bus, sync, and the per-vault policy floor).

Structs§

VaultMap
<data_dir>/cloud/projects.json: stable identity → resolved vault.
VaultRecord
A vault as Cloud resolved it, plus the local checkouts seen for it.

Constants§

VAULTS_FILE
The file keeps its pre-VA name, like the field names in it: an older engine (downgrade, or a teammate’s machine) still reads it.

Functions§

vault_scope
The scope a vault id is valid in (rc3-81, rc4-2, rc4-6): the Cloud at origin and the account (org) org_id on it, as one string so projects.json keeps its shape (the origin field): <origin>#org=<org_id>, the origin normalized like stored_origin. An empty org_id gives the origin alone.