mirror of
https://github.com/grafana/grafana.git
synced 2024-11-25 18:30:41 -06:00
a2eda798e7
* PluginDashboards: Use plugin manager interface Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com> * PluginManager: Make panels non-global Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com> * PluginManager: Make apps non-global Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com> * PluginManager: Make static routes non-global Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com> * PluginManager: Make pluginTypes non-global Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
26 lines
524 B
Go
26 lines
524 B
Go
package api
|
|
|
|
import "github.com/grafana/grafana/pkg/plugins"
|
|
|
|
type fakePluginManager struct {
|
|
plugins.Manager
|
|
|
|
staticRoutes []*plugins.PluginStaticRoute
|
|
}
|
|
|
|
func (pm *fakePluginManager) GetPlugin(id string) *plugins.PluginBase {
|
|
return nil
|
|
}
|
|
|
|
func (pm *fakePluginManager) GetDataSource(id string) *plugins.DataSourcePlugin {
|
|
return nil
|
|
}
|
|
|
|
func (pm *fakePluginManager) Renderer() *plugins.RendererPlugin {
|
|
return nil
|
|
}
|
|
|
|
func (pm *fakePluginManager) StaticRoutes() []*plugins.PluginStaticRoute {
|
|
return pm.staticRoutes
|
|
}
|