Documentation
¶
Index ¶
- func EnsureManagementHTML(ctx context.Context, staticDir string, proxyURL string, panelRepository string, ...) bool
- func FilePath(configFilePath string) string
- func SetCurrentConfig(cfg *config.Config)
- func StartAutoUpdater(ctx context.Context, configFilePath string)
- func StaticDir(configFilePath string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureManagementHTML ¶
func EnsureManagementHTML( ctx context.Context, staticDir string, proxyURL string, panelRepository string, version string, ) bool
EnsureManagementHTML fetches a specific version (empty version means latest) of the management.html asset and updates the local copy when needed. It coalesces concurrent sync attempts and returns whether the asset exists after the sync attempt. Explicit version requests bypass the hash-equality short-circuit so downgrades work, but they still respect the digest verification.
func SetCurrentConfig ¶
SetCurrentConfig stores the latest configuration snapshot for management asset decisions.
func StartAutoUpdater ¶
StartAutoUpdater launches a background goroutine that periodically ensures the management asset is up to date. It respects the disable-control-panel flag on every iteration and supports hot-reloaded configurations.
Types ¶
This section is empty.