mirror of
https://github.com/grafana/grafana.git
synced 2025-08-01 03:21:51 +08:00
Plugins: Standardize Golang enum naming convention (#69449)
* standardize enum pattern * fix up
This commit is contained in:
@ -26,9 +26,9 @@ func ProvideService(gCfg *setting.Cfg, cfg *config.Cfg) *Service {
|
||||
|
||||
func (s *Service) List(_ context.Context) []plugins.PluginSource {
|
||||
return []plugins.PluginSource{
|
||||
NewLocalSource(plugins.Core, corePluginPaths(s.gCfg.StaticRootPath)),
|
||||
NewLocalSource(plugins.Bundled, []string{s.gCfg.BundledPluginsPath}),
|
||||
NewLocalSource(plugins.External, append([]string{s.cfg.PluginsPath}, pluginFSPaths(s.cfg.PluginSettings)...)),
|
||||
NewLocalSource(plugins.ClassCore, corePluginPaths(s.gCfg.StaticRootPath)),
|
||||
NewLocalSource(plugins.ClassBundled, []string{s.gCfg.BundledPluginsPath}),
|
||||
NewLocalSource(plugins.ClassExternal, append([]string{s.cfg.PluginsPath}, pluginFSPaths(s.cfg.PluginSettings)...)),
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user