managementasset

package
v1.0.49 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const AssetsDirName = assetsDirName

AssetsDirName is the directory that stores hashed static assets.

View Source
const IndexFileName = indexAssetName

IndexFileName exposes the embedded entry asset filename.

View Source
const ManagementFileName = managementAssetName

ManagementFileName exposes the administrator control panel asset filename.

View Source
const UserFileName = userAssetName

UserFileName exposes the user workspace asset filename.

Variables

PanelFileNames lists all embedded control panel assets.

Functions

func AssetPathFor added in v1.0.40

func AssetPathFor(configFilePath string, assetPath string) string

AssetPathFor resolves a path under the control panel static assets directory.

func FilePath

func FilePath(configFilePath string) string

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

func FilePathFor added in v1.0.40

func FilePathFor(configFilePath string, assetName string) string

FilePathFor resolves the absolute path to a specific control panel asset.

func OpenPanelAsset added in v1.0.41

func OpenPanelAsset(configFilePath string, assetName string) (fs.File, error)

OpenPanelAsset opens a control panel HTML asset from the local override, embedded bundle, or legacy static directory.

func OpenStaticAsset added in v1.0.41

func OpenStaticAsset(configFilePath string, assetPath string) (fs.File, error)

OpenStaticAsset opens a hashed static asset from the local override, embedded bundle, or legacy static directory.

func SetCurrentConfig

func SetCurrentConfig(cfg *config.Config)

SetCurrentConfig is retained for compatibility with runtime wiring.

func StartAutoUpdater

func StartAutoUpdater(ctx context.Context, configFilePath string)

StartAutoUpdater is retained for compatibility but does not perform remote updates.

func StaticDir

func StaticDir(configFilePath string) string

StaticDir resolves the directory that stores the control panel assets.

Types

This section is empty.

Jump to

Keyboard shortcuts

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