Directories
¶
| Path | Synopsis |
|---|---|
|
Package api implements the REST handlers for environment-scoped resources (ADR-0006): /api/v1/environments and /api/v1/environments/{env}/...
|
Package api implements the REST handlers for environment-scoped resources (ADR-0006): /api/v1/environments and /api/v1/environments/{env}/... |
|
ws
Package ws is the shared WebSocket layer for streams (ADR-0007): logs, stats, events, job progress and exec.
|
Package ws is the shared WebSocket layer for streams (ADR-0007): logs, stats, events, job progress and exec. |
|
Package audit records who changed what (#79, ADR-0036): state-changing API requests, terminal sessions, authorization denials and authentication.
|
Package audit records who changed what (#79, ADR-0036): state-changing API requests, terminal sessions, authorization denials and authentication. |
|
Package auth implements local authentication (ADR-0005): argon2id passwords, server-side sessions stored in SQLite, CSRF protection, the first-run setup token and login rate limiting.
|
Package auth implements local authentication (ADR-0005): argon2id passwords, server-side sessions stored in SQLite, CSRF protection, the first-run setup token and login rate limiting. |
|
Package authz implements per-action authorization (ADR-0009).
|
Package authz implements per-action authorization (ADR-0009). |
|
Package autoheal reports containers that turn unhealthy and restarts those that opt in with the nerdui.auto-heal label (#22, ADR-0043).
|
Package autoheal reports containers that turn unhealthy and restarts those that opt in with the nerdui.auto-heal label (#22, ADR-0043). |
|
Package backup writes and restores password-encrypted archives of nerdui's own data: the database, the managed stacks and the Git stacks (#89, ADR-0047).
|
Package backup writes and restores password-encrypted archives of nerdui's own data: the database, the managed stacks and the Git stacks (#89, ADR-0047). |
|
Package config defines nerdui's runtime configuration: defaults, validation and filesystem preparation.
|
Package config defines nerdui's runtime configuration: defaults, validation and filesystem preparation. |
|
Package environment keeps the registry of managed containerd hosts (ADR-0006).
|
Package environment keeps the registry of managed containerd hosts (ADR-0006). |
|
Package events fans containerd events out to subscribers (ADR-0007): one containerd subscription per environment, any number of in-process subscribers (WebSocket streams, later the scheduler and notifications).
|
Package events fans containerd events out to subscribers (ADR-0007): one containerd subscription per environment, any number of in-process subscribers (WebSocket streams, later the scheduler and notifications). |
|
Package gitrepo clones and updates the Git repositories of Git stacks (#37, ADR-0039) with go-git: no git binary is needed on the host, and credentials stay in memory.
|
Package gitrepo clones and updates the Git repositories of Git stacks (#37, ADR-0039) with go-git: no git binary is needed on the host, and credentials stay in memory. |
|
Package gitstacks deploys stacks from Git repositories (#37) with saved credentials (#93, ADR-0039).
|
Package gitstacks deploys stacks from Git repositories (#37) with saved credentials (#93, ADR-0039). |
|
Package hostmetrics samples the CPU, memory, disk and network usage of the host nerdui runs on, keeps the last day in memory and alerts when thresholds are exceeded (#64, ADR-0054).
|
Package hostmetrics samples the CPU, memory, disk and network usage of the host nerdui runs on, keeps the last day in memory and alerts when thresholds are exceeded (#64, ADR-0054). |
|
Package httpjson contains JSON request/response helpers shared by HTTP handlers, including the error envelope from ADR-0006:
|
Package httpjson contains JSON request/response helpers shared by HTTP handlers, including the error envelope from ADR-0006: |
|
Package jobs runs long operations (pull, later prune and stack deploy) in the background (#126, ADR-0006, ADR-0018): the API answers 202 with a job, progress is terminal output streamed over WebSocket, jobs can be canceled, one job per resource runs at a time, and recent jobs are kept in memory.
|
Package jobs runs long operations (pull, later prune and stack deploy) in the background (#126, ADR-0006, ADR-0018): the API answers 202 with a job, progress is terminal output streamed over WebSocket, jobs can be canceled, one job per resource runs at a time, and recent jobs are kept in memory. |
|
Package notify sends events to notification channels: webhooks, chat services, push services and email (#86, ADR-0034).
|
Package notify sends events to notification channels: webhooks, chat services, push services and email (#86, ADR-0034). |
|
Package prometheus reads container metrics history from a Prometheus server that scrapes containerd's built-in metrics (#176, ADR-0023).
|
Package prometheus reads container metrics history from a Prometheus server that scrapes containerd's built-in metrics (#176, ADR-0023). |
|
Package proxy applies X-Forwarded-For, X-Forwarded-Proto and X-Forwarded-Host from trusted reverse proxies (#112, ADR-0035).
|
Package proxy applies X-Forwarded-For, X-Forwarded-Proto and X-Forwarded-Host from trusted reverse proxies (#112, ADR-0035). |
|
Package runtime wraps the containerd client and nerdctl libraries.
|
Package runtime wraps the containerd client and nerdctl libraries. |
|
Package scheduler runs tasks on cron schedules with a history of runs (#82, ADR-0048).
|
Package scheduler runs tasks on cron schedules with a history of runs (#82, ADR-0048). |
|
Package secretbox encrypts secrets stored in nerdui's database with AES-256-GCM under a key kept in a file next to it (#35, ADR-0049).
|
Package secretbox encrypts secrets stored in nerdui's database with AES-256-GCM under a key kept in a file next to it (#35, ADR-0049). |
|
Package server implements the nerdui HTTP API and serves the web UI.
|
Package server implements the nerdui HTTP API and serves the web UI. |
|
Package stacks finds compose stacks and computes their status (#24, ADR-0008).
|
Package stacks finds compose stacks and computes their status (#24, ADR-0008). |
|
Package store persists nerdui's own data in SQLite (ADR-0004).
|
Package store persists nerdui's own data in SQLite (ADR-0004). |
|
Package templates provides stack templates (#33, #34, ADR-0051): a built-in catalog, catalogs from registry.json URLs, and templates users saved.
|
Package templates provides stack templates (#33, #34, ADR-0051): a built-in catalog, catalogs from registry.json URLs, and templates users saved. |
|
Package tlsutil provides the TLS certificate for nerdui's HTTPS server (ADR-0005): either a generated self-signed certificate kept in <data-dir>/tls, or a user-provided certificate/key pair that is reloaded when the files change.
|
Package tlsutil provides the TLS certificate for nerdui's HTTPS server (ADR-0005): either a generated self-signed certificate kept in <data-dir>/tls, or a user-provided certificate/key pair that is reloaded when the files change. |
|
Package updates finds images whose tag points to a newer digest in the registry (#53, ADR-0030).
|
Package updates finds images whose tag points to a newer digest in the registry (#53, ADR-0030). |
|
Package variables keeps global and per-stack variables (#35, ADR-0049).
|
Package variables keeps global and per-stack variables (#35, ADR-0049). |
|
Package version exposes build metadata injected at link time via -ldflags.
|
Package version exposes build metadata injected at link time via -ldflags. |
|
Package volbackup backs up volumes as tar.gz archives to a host directory or an S3 bucket, keeps the newest ones and restores them (#59, ADR-0050).
|
Package volbackup backs up volumes as tar.gz archives to a host directory or an S3 bucket, keeps the newest ones and restores them (#59, ADR-0050). |
|
Package webhooks runs actions on stacks and containers when a secret URL is called (#85, #91, ADR-0041), e.g.
|
Package webhooks runs actions on stacks and containers when a secret URL is called (#85, #91, ADR-0041), e.g. |
Click to show internal directories.
Click to hide internal directories.