Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PluginInfo ¶
type PluginInfo struct {
// contains filtered or unexported fields
}
func NewPluginInfo ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service provides methods for constructing asset paths for plugins. It supports core plugins, external plugins stored on the local filesystem, and external plugins stored on the plugins CDN, and it will switch to the correct implementation depending on the plugin and the config.
func DefaultService ¶
func DefaultService(cfg *config.PluginManagementCfg) *Service
func ProvideService ¶
func ProvideService(cfg *config.PluginManagementCfg, cdn *pluginscdn.Service) *Service
func (*Service) Base ¶
func (s *Service) Base(n PluginInfo) (string, error)
Base returns the base path for the specified plugin.
func (*Service) DefaultLogoPath ¶
DefaultLogoPath returns the default logo path for the specified plugin type.
func (*Service) Module ¶
func (s *Service) Module(n PluginInfo) (string, error)
Module returns the module.js path for the specified plugin.
func (*Service) RelativeURL ¶
func (s *Service) RelativeURL(n PluginInfo, pathStr string) (string, error)
RelativeURL returns the relative URL for an arbitrary plugin asset.
Click to show internal directories.
Click to hide internal directories.