Expand description
CI runners on LeanCTX computers (/v1/runners, local-read-v1 §45): list,
add and remove the GitHub Actions and GitLab runners LeanCTX Cloud runs
for the person and their teams.
A runner binds an existing computer of the account or team: the cloud
registers the runner on the live computer of that scope and keeps the
computer’s own role, state and price. Removing a runner unbinds it; the
computer stays. The cloud checks role, plan and scope; this module passes
the request on and hands back what the cloud answered (see
crate::computers for the answer classes).
The forge’s registration token goes only into the body of one
POST /v1/runners, to the connected cloud over its pinned TLS session. It
is held in zeroizing buffers (also the encoded body), has no Debug or
Display text, and is cut out of anything the cloud answers before that
is bounded or passed on.
Structs§
- AddRequest
POST /v1/runners, without the token (that is added only when sent).- Registration
Token - The forge’s registration token. No
Debug/Displaytext, noSerialize: it leaves this process only insideadd’s request body. - Runner
List GET /v1/runners, checked. The cloud’sbalanceis not read: a runner costs nothing beyond its computer.
Enums§
- Target
- The forge a runner registers with.
Constants§
- MAX_
LABELS - Most labels (GitHub) or tags (GitLab) sent.
- ROLE_
CI_ RUNNER - The role the request names (contract); the cloud binds the scope’s computer and keeps that computer’s own role.
Functions§
- add
POST /v1/runners: the bound row (runner.statuspending). The token is sent in this one body and nowhere else; an answer or error that repeats it has it cut before anything bounds its text.- connected_
raw - The raw exchanges of the connected instance (as
computers::connected): each one through its session, which refreshes a refused token. - list
GET /v1/runners.- remove
POST /v1/runners/{id}/remove: the row (runner.statusremoved). It unbinds the runner; the computer stays.- valid_
id - A runner id as the cloud sends it:
cmp_<id>, or a bare UUID. - valid_
label - A label (GitHub) or tag (GitLab): 1-64 of
A-Za-z0-9_.-.
Type Aliases§
- RawExchange
- One exchange with an already encoded JSON body: method, path (under
/v1) and body bytes → the HTTP status and the JSON answer.