uidemo

command
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package main は README のスクリーンショット撮影用の使い捨てデモである。 internal/vpsd/admin パッケージの公開 API (New, Serve) だけを使い、 固定のサンプルデータを返す Backend で Web UI を 127.0.0.1:8687 (TCP) に立てる。 nftables や WireGuard には一切触れない。起動は scripts/screenshot-ui.sh から行う想定で、 単体でも `go run ./tools/uidemo` で動く (Ctrl-C で終了)。

「適用中のファイアウォール設定」欄は admin パッケージが実際の nft コマンドを exec.Command で呼ぶため、このデモでは一時ディレクトリに偽の nft 実行ファイルを置き、 PATH の先頭に加えることでもっともらしい表示を出す (admin パッケージ自体は変更しない)。

Jump to

Keyboard shortcuts

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