Directories
¶
| Path | Synopsis |
|---|---|
|
Package bridge carries HTTP requests between two JavaScript realms over postMessage: the dashboard runs on the page (it needs the canvas) and the engine in a Web Worker (it needs Atomics.wait), and the dashboard's API client — and wctr, run in the dashboard's terminal — reach the engine's API handler through this bridge.
|
Package bridge carries HTTP requests between two JavaScript realms over postMessage: the dashboard runs on the page (it needs the canvas) and the engine in a Web Worker (it needs Atomics.wait), and the dashboard's API client — and wctr, run in the dashboard's terminal — reach the engine's API handler through this bridge. |
|
cmd
|
|
|
dashboard
command
Command dashboard is a browser program (GOOS=js GOARCH=wasm); natively it only says so.
|
Command dashboard is a browser program (GOOS=js GOARCH=wasm); natively it only says so. |
|
engine-worker
command
Command engine-worker is the demo page's engine, a browser program (GOOS=js GOARCH=wasm, run in a Web Worker); natively it only says so.
|
Command engine-worker is the demo page's engine, a browser program (GOOS=js GOARCH=wasm, run in a Web Worker); natively it only says so. |
|
site
command
Command site builds and serves the dashboard's demo page.
|
Command site builds and serves the dashboard's demo page. |
|
Package engine is what the dashboard needs from a container engine: the calls of an API compatible with the Docker Engine API, as the engine of go-wasmcontainers serves them.
|
Package engine is what the dashboard needs from a container engine: the calls of an API compatible with the Docker Engine API, as the engine of go-wasmcontainers serves them. |
|
images
|
|
|
clock
command
Command clock is a demo image: it prints a coloured, numbered line every second (or every -interval), forever or -n times, so there are logs to follow and a container to stop.
|
Command clock is a demo image: it prints a coloured, numbered line every second (or every -interval), forever or -n times, so there are logs to follow and a container to stop. |
|
fail
command
Command fail is a demo image: it reports an error on stderr and exits with status 3, to show an exit code in the dashboard.
|
Command fail is a demo image: it reports an error on stderr and exits with status 3, to show an exit code in the dashboard. |
|
hello
command
Command hello is a demo image: it greets and exits.
|
Command hello is a demo image: it greets and exits. |
|
internal
|
|
|
images
Package images builds the demo images and serves them the way a registry does, as static files: the demo page's same-origin /v2 mirror and the tests' in-process registry are the same bytes.
|
Package images builds the demo images and serves them the way a registry does, as static files: the demo page's same-origin /v2 mirror and the tests' in-process registry are the same bytes. |
|
site
Package site builds the dashboard's standalone demo page: the page and its scripts, the dashboard and the engine compiled for js/wasm, the container worker, and a same-origin static registry (/v2) holding the demo images.
|
Package site builds the dashboard's standalone demo page: the page and its scripts, the dashboard and the engine compiled for js/wasm, the container worker, and a same-origin static registry (/v2) holding the demo images. |
|
testengine
Package testengine runs a real go-wasmcontainers engine in the test's process: the daemon with the wazero executor and an in-memory image store, its API handler, and a registry serving the demo images (built for wasip1 at test time).
|
Package testengine runs a real go-wasmcontainers engine in the test's process: the daemon with the wazero executor and an in-memory image store, its API handler, and a registry serving the demo images (built for wasip1 at test time). |
|
Package ui is the dashboard's view: go-widgets bound to the viewmodels of package vm.
|
Package ui is the dashboard's view: go-widgets bound to the viewmodels of package vm. |
|
Package vm holds the dashboard's viewmodels: pure Go state over the engine.Engine interface, natively testable, with no widget in sight.
|
Package vm holds the dashboard's viewmodels: pure Go state over the engine.Engine interface, natively testable, with no widget in sight. |
Click to show internal directories.
Click to hide internal directories.