Commit 437b957b by woodsaj

remove external_plugin from models package.

parent d503c5d8
package models
type ExternalPluginRoute struct {
Path string `json:"path"`
Method string `json:"method"`
ReqSignedIn bool `json:"req_signed_in"`
ReqGrafanaAdmin bool `json:"req_grafana_admin"`
ReqRole RoleType `json:"req_role"`
Url string `json:"url"`
}
type ExternalPluginJs struct {
src string `json:"src"`
}
type ExternalPluginMenuItem struct {
Text string `json:"text"`
Icon string `json:"icon"`
Href string `json:"href"`
}
type ExternalPluginCss struct {
Href string `json:"href"`
}
type ExternalPluginIntegration struct {
Routes []*ExternalPluginRoute `json:"routes"`
Js []*ExternalPluginJs `json:"js"`
Css []*ExternalPluginCss `json:"css"`
MenuItems []*ExternalPluginMenuItem `json:"menu_items"`
}
...@@ -8,6 +8,7 @@ import ( ...@@ -8,6 +8,7 @@ import (
"path/filepath" "path/filepath"
"github.com/grafana/grafana/pkg/log" "github.com/grafana/grafana/pkg/log"
"github.com/grafana/grafana/pkg/models"
"github.com/grafana/grafana/pkg/setting" "github.com/grafana/grafana/pkg/setting"
) )
...@@ -21,7 +22,7 @@ type ExternalPluginRoute struct { ...@@ -21,7 +22,7 @@ type ExternalPluginRoute struct {
Method string `json:"method"` Method string `json:"method"`
ReqSignedIn bool `json:"req_signed_in"` ReqSignedIn bool `json:"req_signed_in"`
ReqGrafanaAdmin bool `json:"req_grafana_admin"` ReqGrafanaAdmin bool `json:"req_grafana_admin"`
ReqRole string `json:"req_role"` ReqRole models.RoleType `json:"req_role"`
Url string `json:"url"` Url string `json:"url"`
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment