Skip to main content

Module state

Module state 

Source
Expand description

Durable Cloud state on this machine.

<config_dir>/cloud/ (directory 0700, files 0600, written atomically): instance.key, kx.key, instance.json, lease.json (re-verified on every load), keys.json, token.json (never logged). <data_dir>/cloud/: activity.json and, with later packages, project maps, cursors and the outbox.

Structsยง

ActivityRecord
When Cloud last answered, per channel.
CloudStore
Paths of the Cloud state; CloudStore::open for this machine, CloudStore::at for tests and embedders.
InstanceRecord
The enrolled instance.
LeaseRecord
The last verified lease, as received, plus the service clock offset.
TokenRecord
A cached access token. Debug never shows the token.