managementasset

package
v6.8.21 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Index

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 FilePath

func FilePath(configFilePath string) string

FilePath resolves the absolute path to the management control panel asset.

func SetCurrentConfig added in v6.2.26

func SetCurrentConfig(cfg *config.Config)

SetCurrentConfig stores the latest configuration snapshot for management asset decisions.

func StartAutoUpdater added in v6.2.26

func StartAutoUpdater(ctx context.Context, configFilePath string)

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.

func StaticDir

func StaticDir(configFilePath string) string

StaticDir resolves the directory that stores the management control panel asset.

Types

This section is empty.

Jump to

Keyboard shortcuts

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