managementasset

package
v6.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2025 License: MIT Imports: 18 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)

EnsureLatestManagementHTML checks the latest management.html asset and updates the local copy when needed. The function is designed to run in a background goroutine and will never panic. It enforces a 3-hour rate limit to avoid frequent checks on config/auth file changes.

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