Skip to main content

Module disconnect

Module disconnect 

Source
Expand description

lean-ctx cloud disconnect: Cloud is told first, local data goes after.

The engine revokes its own instance (DELETE /v1/instances/{id}, C0 2.0: the signed statement with reason web_revoke; on 1.x the seat is freed). Only once Cloud confirmed it, or answered that the instance is already revoked or unknown, are the credentials and local data removed. Unreachable, the disconnect stays pending (disconnect-pending.json): nothing is removed and the scheduler retries it instead of syncing (dogfood 25.10.: the CLI said “removed” while the instance stayed active in Cloud).

Enums§

Told
What Cloud said to the disconnect.

Functions§

classify
Classify the answer to the revoke call.
mark_pending
Remember an unfinished disconnect (with its --keep-local).
pending
The pending disconnect’s keep_local, if one is pending.
retry_pending
The scheduler’s retry of a pending disconnect: Some(line) when one was pending (finished, or why not yet).
tell_cloud
Ask Cloud to revoke instance.