pub struct Keyspaces<'a> {Show 18 fields
pub keys: &'a KeyspaceHandle,
pub acl: &'a KeyspaceHandle,
pub contexts: &'a KeyspaceHandle,
pub did_templates: &'a KeyspaceHandle,
pub audit: &'a KeyspaceHandle,
pub imported: &'a KeyspaceHandle,
pub memory: &'a KeyspaceHandle,
pub app_state: &'a KeyspaceHandle,
pub internal: &'a KeyspaceHandle,
pub vault: &'a KeyspaceHandle,
pub consent: &'a KeyspaceHandle,
pub consent_approvers: &'a KeyspaceHandle,
pub persona: &'a KeyspaceHandle,
pub pcs_engine: &'a KeyspaceHandle,
pub notifications: &'a KeyspaceHandle,
pub external_accounts: &'a KeyspaceHandle,
pub external_secrets: &'a KeyspaceHandle,
pub collection: &'a KeyspaceHandle,
}Expand description
Shared bundle of borrowed keyspace handles passed to operations that need several keyspaces at once.
The struct is a pure field bundle — the constructors that borrow it from a
concrete AppState / VtaState live in vta-service (they know those
types), so this stays free of any vta-service dependency.
Fields§
§keys: &'a KeyspaceHandle§acl: &'a KeyspaceHandle§contexts: &'a KeyspaceHandle§did_templates: &'a KeyspaceHandle§audit: &'a KeyspaceHandle§imported: &'a KeyspaceHandle§memory: &'a KeyspaceHandlePer-context agent memory (MEMORY). Here so a context deletion can
take the context’s entries with it.
app_state: &'a KeyspaceHandlePer-context application state (APP_STATE). Here so a context
deletion can take the context’s records with it — left behind, they
reappear in any new context created under the same id.
internal: &'a KeyspaceHandleNon-extractable internal key material (INTERNAL_KEYS), so a context
deletion takes the material of the context’s internal keys with their
records.
vault: &'a KeyspaceHandleThe holder’s credential vault (VAULT): credentials and vault entries
in a context’s custody go with the context.
consent: &'a KeyspaceHandleInbound-messaging consent (CONSENT): grants and pending requests
decided in a context go with it.
consent_approvers: &'a KeyspaceHandlePer-(platform, context) approver bindings (CONSENT_APPROVERS).
persona: &'a KeyspaceHandleThe persona store (PERSONA): its context-scoped half goes with the
context.
pcs_engine: &'a KeyspaceHandleHidden-vetting and voting engine state (PCS_ENGINE), each record
naming the context its key is derived under.
notifications: &'a KeyspaceHandleNotifications held for the principal (NOTIFICATIONS), per context.
external_accounts: &'a KeyspaceHandleExternal accounts (EXTERNAL_ACCOUNTS), keyed by context.
external_secrets: &'a KeyspaceHandleThe wrapped secrets of external accounts (EXTERNAL_SECRETS).
collection: &'a KeyspaceHandleCollection claims, conflicts and settings (COLLECTION). Here so a
context deletion ends every claim for its identifiers (VTI-NTF-090) and
drops its setting, so a context created again under the id starts
enabled (VTI-NTF-094).