mirror of
https://github.com/grafana/grafana.git
synced 2025-07-29 11:12:13 +08:00
Plugins: Create single point of entry for adding / removing plugins (#55463)
* split out plugin manager * remove whitespace * fix tests * split up tests * updating naming conventions * simplify manager * tidy * explorations * fix build * tidy * fix tests * add logger helper * pass the tests * tidying * fix tests * tidy and re-add test * store depends on loader * enrich tests * fix test * undo gomod changes
This commit is contained in:
@ -81,6 +81,10 @@ func (p PluginDTO) IsCorePlugin() bool {
|
||||
return p.Class == Core
|
||||
}
|
||||
|
||||
func (p PluginDTO) IsExternalPlugin() bool {
|
||||
return p.Class == External
|
||||
}
|
||||
|
||||
func (p PluginDTO) IsSecretsManager() bool {
|
||||
return p.JSONData.Type == SecretsManager
|
||||
}
|
||||
|
Reference in New Issue
Block a user