Documentation
¶
Overview ¶
auth.go — `drift slice auth {set, list, disable}`.
A SOFT Basic-auth gate in front of your slice's site — "keep the public / crawlers out of my not-public-yet site," not a hard access boundary. Enforced by the platform's router on Canvas/site paths (never your /api or /trigger routes, so it won't collide with a function's own auth). For real per-request authorization, use `drift atomic auth`. Thin wrappers around the API gateway's /ops/slice/auth endpoints.
domain.go — `drift slice domain {add, verify, list, remove}`. Thin wrappers around the API gateway's /ops/slice/domain* endpoints.
Package lifecycle — browser handoff helpers shared by `drift slice create` and `drift slice resize`.
The configurable-slices feature replaced the old "pick a tier" CLI prompt with a browser form: the CLI mints a session against the configurator service, opens the user's browser at a single-use URL, and then polls a redeem endpoint until the session is finalized. The CLI never sees the SliceConfig the user typed in — it only sees the final Slice document the configurator forwarded to api/ops/slice/{create,resize}.
Both commands also support a --headless mode that bypasses the browser entirely. Headless mode posts directly to the api gateway and is the only way to drive slice provisioning from a non-interactive shell (CI, tests, scripts that pipe through ssh). It is intentionally less ergonomic than the browser flow — the user has to know the exact tier name or pass the full SliceConfig as a JSON file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.