Documentation
¶
Index ¶
- Constants
- Variables
- func AssetPathFor(configFilePath string, assetPath string) string
- func FilePath(configFilePath string) string
- func FilePathFor(configFilePath string, assetName string) string
- func OpenPanelAsset(configFilePath string, assetName string) (fs.File, error)
- func OpenStaticAsset(configFilePath string, assetPath string) (fs.File, error)
- func SetCurrentConfig(cfg *config.Config)
- func StartAutoUpdater(ctx context.Context, configFilePath string)
- func StaticDir(configFilePath string) string
Constants ¶
const AssetsDirName = assetsDirName
AssetsDirName is the directory that stores hashed static assets.
const IndexFileName = indexAssetName
IndexFileName exposes the embedded entry asset filename.
const ManagementFileName = managementAssetName
ManagementFileName exposes the administrator control panel asset filename.
const UserFileName = userAssetName
UserFileName exposes the user workspace asset filename.
Variables ¶
var PanelFileNames = []string{IndexFileName, ManagementFileName, UserFileName}
PanelFileNames lists all embedded control panel assets.
Functions ¶
func AssetPathFor ¶ added in v1.0.40
AssetPathFor resolves a path under the control panel static assets directory.
func FilePathFor ¶ added in v1.0.40
FilePathFor resolves the absolute path to a specific control panel asset.
func OpenPanelAsset ¶ added in v1.0.41
OpenPanelAsset opens a control panel HTML asset from the local override, embedded bundle, or legacy static directory.
func OpenStaticAsset ¶ added in v1.0.41
OpenStaticAsset opens a hashed static asset from the local override, embedded bundle, or legacy static directory.
func SetCurrentConfig ¶
SetCurrentConfig is retained for compatibility with runtime wiring.
func StartAutoUpdater ¶
StartAutoUpdater is retained for compatibility but does not perform remote updates.
Types ¶
This section is empty.