| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- package plugins
- import "github.com/grafana/grafana/pkg/models"
- type DataSourcePlugin struct {
- Type string `json:"type"`
- Name string `json:"name"`
- ServiceName string `json:"serviceName"`
- Module string `json:"module"`
- Partials map[string]interface{} `json:"partials"`
- DefaultMatchFormat string `json:"defaultMatchFormat"`
- Annotations bool `json:"annotations"`
- Metrics bool `json:"metrics"`
- BuiltIn bool `json:"builtIn"`
- StaticRootConfig *StaticRootConfig `json:"staticRoot"`
- }
- type PanelPlugin struct {
- Type string `json:"type"`
- Name string `json:"name"`
- Module string `json:"module"`
- StaticRootConfig *StaticRootConfig `json:"staticRoot"`
- }
- type StaticRootConfig struct {
- Url string `json:"url"`
- Path string `json:"path"`
- }
- type ExternalPluginRoute struct {
- Path string `json:"path"`
- Method string `json:"method"`
- ReqSignedIn bool `json:"reqSignedIn"`
- ReqGrafanaAdmin bool `json:"reqGrafanaAdmin"`
- ReqRole models.RoleType `json:"reqRole"`
- Url string `json:"url"`
- }
- type ExternalPluginJs struct {
- Module string `json:"module"`
- }
- type ExternalPluginNavLink struct {
- Text string `json:"text"`
- Icon string `json:"icon"`
- Href string `json:"href"`
- }
- type ExternalPluginCss struct {
- Href string `json:"href"`
- }
- type ExternalPlugin struct {
- Type string `json:"type"`
- Routes []*ExternalPluginRoute `json:"routes"`
- Js []*ExternalPluginJs `json:"js"`
- Css []*ExternalPluginCss `json:"css"`
- MainNavLinks []*ExternalPluginNavLink `json:"mainNavLinks"`
- StaticRootConfig *StaticRootConfig `json:"staticRoot"`
- }
|