Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
dol
command
Command dol is the single binary of docker-offload-lan: the MCP server and CLI on the client, and the node agent on the node.
|
Command dol is the single binary of docker-offload-lan: the MCP server and CLI on the client, and the node agent on the node. |
|
internal
|
|
|
capacity
Package capacity measures how much memory, disk and CPU a node has (brief §7.4).
|
Package capacity measures how much memory, disk and CPU a node has (brief §7.4). |
|
clientsetup
Package clientsetup implements the file and docker-context changes made by `dol init` on the client.
|
Package clientsetup implements the file and docker-context changes made by `dol init` on the client. |
|
compose
Package compose renders a compose project, rewrites bind mounts for a remote node and injects lease labels (brief §7.10).
|
Package compose renders a compose project, rewrites bind mounts for a remote node and injects lease labels (brief §7.10). |
|
config
Package config loads and validates client and node configuration.
|
Package config loads and validates client and node configuration. |
|
config/gen-schemas
command
Command gen-schemas writes the config JSON Schemas into a directory.
|
Command gen-schemas writes the config JSON Schemas into a directory. |
|
dockerproxy
Package dockerproxy is a Docker Engine API proxy (ADR-0040, milestone M6 spike).
|
Package dockerproxy is a Docker Engine API proxy (ADR-0040, milestone M6 spike). |
|
dockerproxy/proxytest
Package proxytest measures and verifies the Docker API proxy against a real engine with the real docker CLI (ADR-0040).
|
Package proxytest measures and verifies the Docker API proxy against a real engine with the real docker CLI (ADR-0040). |
|
dockerx
Package dockerx wraps the docker CLI (ADR-0009) with label-scoped operations.
|
Package dockerx wraps the docker CLI (ADR-0009) with label-scoped operations. |
|
doctor
Package doctor implements `dol doctor`: end-to-end diagnostics of every link between the client and its nodes (client mode) or of the node itself (`--node`).
|
Package doctor implements `dol doctor`: end-to-end diagnostics of every link between the client and its nodes (client mode) or of the node itself (`--node`). |
|
kindx
Package kindx generates kind cluster configs and runs the kind binary on the node (brief §7.9, ADR-0007).
|
Package kindx generates kind cluster configs and runs the kind binary on the node (brief §7.9, ADR-0007). |
|
mcpserver
Package mcpserver implements `dol mcp`, the stdio MCP server agents use to acquire capacity (brief §8), and the Core it shares with the human CLI (`dol status`, `dol leases`, `dol release`).
|
Package mcpserver implements `dol mcp`, the stdio MCP server agents use to acquire capacity (brief §8), and the Core it shares with the human CLI (`dol status`, `dol leases`, `dol release`). |
|
node
Package node is the node agent (`dol node serve`): an HTTP/1.1 JSON API on a unix socket (brief §7.2), node-side admission control (§7.3, ADR-0003), a SQLite lease store, heartbeats, the reaper (§7.6, ADR-0004) and kind operations (§7.9, ADR-0007).
|
Package node is the node agent (`dol node serve`): an HTTP/1.1 JSON API on a unix socket (brief §7.2), node-side admission control (§7.3, ADR-0003), a SQLite lease store, heartbeats, the reaper (§7.6, ADR-0004) and kind operations (§7.9, ADR-0007). |
|
nodeclient
Package nodeclient is the Go client of the node API (pkg/api/v1).
|
Package nodeclient is the Go client of the node API (pkg/api/v1). |
|
nodefake
Package nodefake is a small in-memory implementation of the node API (pkg/api/v1) for client tests.
|
Package nodefake is a small in-memory implementation of the node API (pkg/api/v1) for client tests. |
|
placement
Package placement decides where a workload runs (brief §7.5): try nodes by priority with short health checks and a bounded lease request, then apply the fallback policy.
|
Package placement decides where a workload runs (brief §7.5): try nodes by priority with short health checks and a bounded lease request, then apply the fallback policy. |
|
sshx
Package sshx spawns the system ssh binary (ADR-0002): one-shot remote commands and stdio "connections" used to reach the node API through `dol node dial-stdio`.
|
Package sshx spawns the system ssh binary (ADR-0002): one-shot remote commands and stdio "connections" used to reach the node API through `dol node dial-stdio`. |
|
state
Package state manages the client state directory (ADR-0010):
|
Package state manages the client state directory (ADR-0010): |
|
sync
Package sync mirrors a local project directory to the node with rsync over ssh (brief §7.10).
|
Package sync mirrors a local project directory to the node with rsync over ssh (brief §7.10). |
|
testutil/fakessh
Package fakessh provides a stand-in for the ssh binary in tests: the test binary re-executes itself as "ssh".
|
Package fakessh provides a stand-in for the ssh binary in tests: the test binary re-executes itself as "ssh". |
|
tunnel
Package tunnel manages `ssh -L` port forwards as child processes (brief §7.8).
|
Package tunnel manages `ssh -L` port forwards as child processes (brief §7.8). |
|
version
Package version exposes build metadata, set via -ldflags by GoReleaser.
|
Package version exposes build metadata, set via -ldflags by GoReleaser. |
|
pkg
|
|
|
api/v1
Package v1 holds the public wire contract of docker-offload-lan.
|
Package v1 holds the public wire contract of docker-offload-lan. |
|
test
|
|
|
integration/harness
Package harness runs a containerized "fake node" for integration tests: Ubuntu 24.04 provisioned by the real deploy/linux/install.sh (--container-mode), with Docker-in-Docker, sshd on 2222 and the dol agent (ADR-0035).
|
Package harness runs a containerized "fake node" for integration tests: Ubuntu 24.04 provisioned by the real deploy/linux/install.sh (--container-mode), with Docker-in-Docker, sshd on 2222 and the dol agent (ADR-0035). |
Click to show internal directories.
Click to hide internal directories.