internal/

directory
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2026 License: MIT

Directories

Path Synopsis
Package apply runs the push pipeline: render locally, upload to a staging dir on the router, validate, snapshot the live state, swap, reload services and post-check.
Package apply runs the push pipeline: render locally, upload to a staging dir on the router, validate, snapshot the live state, swap, reload services and post-check.
Package config defines the wrtbox YAML schema (v1) and its loader.
Package config defines the wrtbox YAML schema (v1) and its loader.
Package device contains per-hardware adapters.
Package device contains per-hardware adapters.
Package diff shows what would change on the router if `wrtbox apply` were run now.
Package diff shows what would change on the router if `wrtbox apply` were run now.
Package hosts loads router endpoint definitions from ~/.config/wrtbox/hosts.yaml and merges them with ~/.ssh/config so users can keep SSH details in one familiar place.
Package hosts loads router endpoint definitions from ~/.config/wrtbox/hosts.yaml and merges them with ~/.ssh/config so users can keep SSH details in one familiar place.
Package lists provides a pluggable source abstraction for routing lists (CIDR blocks, domain lists) that wrtbox bakes into the generated xray config at render time.
Package lists provides a pluggable source abstraction for routing lists (CIDR blocks, domain lists) that wrtbox bakes into the generated xray config at render time.
Package render turns a validated wrtbox config into a tree of files (keyed by their final router paths under /etc/, /usr/, /root/).
Package render turns a validated wrtbox config into a tree of files (keyed by their final router paths under /etc/, /usr/, /root/).
ssh
Package ssh provides a minimal SSH/SFTP client for wrtbox.
Package ssh provides a minimal SSH/SFTP client for wrtbox.
sshmock
Package sshmock provides an in-memory ssh.Executor for tests.
Package sshmock provides an in-memory ssh.Executor for tests.
transport
xray
Package xray renders the /etc/xray/config.json document from a validated wrtbox config.
Package xray renders the /etc/xray/config.json document from a validated wrtbox config.
Package uci models OpenWrt UCI configuration files and renders them in the canonical `/sbin/uci export` text format (tab indent, single-quoted values, options before list entries).
Package uci models OpenWrt UCI configuration files and renders them in the canonical `/sbin/uci export` text format (tab indent, single-quoted values, options before list entries).
Package version exposes build metadata stamped in by ldflags.
Package version exposes build metadata stamped in by ldflags.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL