Documentation
¶
Index ¶
- Constants
- func EnsureLatestManagementHTML(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 ¶
View Source
const ManagementFileName = managementAssetName
ManagementFileName exposes the control panel asset filename.
Variables ¶
This section is empty.
Functions ¶
func EnsureLatestManagementHTML ¶
func EnsureLatestManagementHTML(ctx context.Context, staticDir string, proxyURL string, panelRepository string) bool
EnsureLatestManagementHTML checks the latest 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.
func SetCurrentConfig ¶ added in v6.2.26
SetCurrentConfig stores the latest configuration snapshot for management asset decisions.
func StartAutoUpdater ¶ added in v6.2.26
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.
Click to show internal directories.
Click to hide internal directories.