Documentation
¶
Overview ¶
Package admin hosts the host-side infra.admin module's UI assets + audit subsystem. The handler library lives in the sibling handler/ subpackage; the catalog lives in catalog/; the proto in proto/. This package itself exposes only the asset filesystem + audit writer surface the host module (workflow/module/infra_admin.go, T15) imports.
Design: docs/plans/2026-05-27-infra-admin-dynamic-design.md Plan: docs/plans/2026-05-27-infra-admin-dynamic.md (Tasks 13 + 14)
Index ¶
Constants ¶
This section is empty.
Variables ¶
var AssetFS embed.FS
AssetFS embeds the static UI pages + scripts + styles authored in T10-T12 under ui_dist/. The host module (T15) mounts this via http.FileServerFS at config.AssetPrefix so the admin dashboard iframe can load resources.html / resource.html / new.html.
Per plan §Task 13. The glob covers the three file types the asset pages use (.html / .js / .css); future additions (icons, fonts) require both extending this glob AND updating TestAssetFS_ListsAllAndOnlyExpected so the test catches the change.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package audit hosts the JSONL audit-log writer used by the host-side infra.admin workflow module to record every admin action (read or future-mutating).
|
Package audit hosts the JSONL audit-log writer used by the host-side infra.admin workflow module to record every admin action (read or future-mutating). |
|
Package catalog hosts the host-side FieldSpec catalog (covers all 13 typed `infra.*` Configs from workflow-plugin-infra), the region catalog, and the engine catalog.
|
Package catalog hosts the host-side FieldSpec catalog (covers all 13 typed `infra.*` Configs from workflow-plugin-infra), the region catalog, and the engine catalog. |
|
Package handler hosts the infra.admin handler library — the shared business logic dispatched by both the host-side infra.admin workflow module's HTTP routes (T15) and the wfctl `infra admin *` CLI subcommands (T19-T20).
|
Package handler hosts the infra.admin handler library — the shared business logic dispatched by both the host-side infra.admin workflow module's HTTP routes (T15) and the wfctl `infra admin *` CLI subcommands (T19-T20). |