removes dependencies install for plugins

this features was never intended for production.
This commit is contained in:
bergquist
2018-02-14 15:40:25 +01:00
parent 56907eef69
commit 47e363ea15
3 changed files with 3 additions and 23 deletions

View File

@ -59,10 +59,6 @@ func (pb *PluginBase) registerPlugin(pluginDir string) error {
plog.Info("Registering plugin", "name", pb.Name)
}
if len(pb.Dependencies.Plugins) == 0 {
pb.Dependencies.Plugins = []PluginDependencyItem{}
}
if pb.Dependencies.GrafanaVersion == "" {
pb.Dependencies.GrafanaVersion = "*"
}
@ -79,8 +75,7 @@ func (pb *PluginBase) registerPlugin(pluginDir string) error {
}
type PluginDependencies struct {
GrafanaVersion string `json:"grafanaVersion"`
Plugins []PluginDependencyItem `json:"plugins"`
GrafanaVersion string `json:"grafanaVersion"`
}
type PluginInclude struct {
@ -96,13 +91,6 @@ type PluginInclude struct {
Id string `json:"-"`
}
type PluginDependencyItem struct {
Type string `json:"type"`
Id string `json:"id"`
Name string `json:"name"`
Version string `json:"version"`
}
type PluginInfo struct {
Author PluginInfoLink `json:"author"`
Description string `json:"description"`