Expand description
dvm.run’s REST API types and checked request drafts.
Structs§
- ApiError
- ApiKey
- One of a user’s API keys, as they list them: never the key itself, of
which the controller keeps only the SHA-256. A request that bears it
(
Authorization: Bearer <key>) acts as its user. - Byte
Chunk - Raw bytes serialized as base64 in JSON payloads.
- Capacity
- CPUs and memory: what a runner hands out, and what a run takes of it
(
SandboxSpec::footprint). - CliLogin
- A login from a terminal, as its page shows it to the user who may approve it.
- Collect
CliLogin - What a terminal asks for its key with:
POST /api/cli-logins/key. - Created
ApiKey - A key just made, and the key itself: shown this once.
- Decoded
Argument - DvmStop
- Environment
Variable - File
Name - Non-UTF-8 file name or symlink target bytes carried as lowercase hex.
- File
Status - File
Time - Frame
- A header and its bytes, and where the frame lies in its stream.
- Frame
Decoder - Splits a stream, given as it comes, into frames. A header that isn’t one is an error for its frame alone; one too long to hold ends the stream, which can’t be split past it.
- Image
Reference - A Docker image reference, as
docker runtakes it:alpine,alpine:3.20,ghcr.io/owner/name:tag,name@sha256:<hex>. - Inspection
Watches - Invalid
Image Reference - Why a text isn’t an image reference.
- Invalid
RunAction - Me
- The user signed in:
GET /api/me. - NewApi
Key - A key to make:
POST /api/keys. - NewCli
Login - A login to start from a terminal:
POST /api/cli-logins, with no session or key. - Output
After - Path
Directory Entry - Run
- RunId
- RunOutput
- Sandbox
- Sandbox
Answer - Sandbox
Draft - Sandbox
Exited - Sandbox
Id - Sandbox
Input - Sandbox
Input State - Sandbox
Read - Sandbox
Request - Sandbox
Run - Sandbox
Spec - Sandbox
Started - Sandbox
Stdin - Sandbox
Write - Sandboxes
Page - Seek
Sandbox - Spec
Error - Started
CliLogin - A login started: the panel’s page that approves it, the code that page shows, and the token the terminal collects its key with, which only the terminal holds.
- Step
Point - Syscall
Name - Timestamp
- A point in time: milliseconds since the Unix epoch, UTC.
- User
Limits - What a user who isn’t an admin may use.
- Watch
Points
Enums§
- Decoded
Value - File
Type - Frame
Error - Output
Stream - RunAction
- RunState
- Sandbox
Answer Kind - Sandbox
Network - As JSON:
{"mode": "public"},{"mode": "none"}, or{"mode": "allowlist", "allow": ["pypi.org", "*.github.com", "8.8.8.0/24"]}. - Sandbox
Program - Sandbox
Request Action - Seek
Target - Spec
Field - Stop
Event - Watch
Point
Constants§
- MAX_
HEADER - The longest header, its newline excluded.
- MAX_
PAYLOAD - The most bytes one frame carries: a decoder holds a whole frame.
Functions§
- decode_
frame bytes, whole, as one frame.- encode_
frame - The frame of
header, a struct or map, andpayload.