managementasset

package
v6.10.9-aug.4 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Index

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 FilePath

func FilePath(configFilePath string) string

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

func SetCurrentConfig

func SetCurrentConfig(cfg *config.Config)

SetCurrentConfig stores the latest configuration snapshot for management asset decisions.

func StartAutoUpdater

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