mirror of https://github.com/grafana/grafana
parent
60e7c6d150
commit
7a8b3c419b
@ -1,10 +1,13 @@ |
||||
package dtos |
||||
|
||||
import "github.com/grafana/grafana/pkg/plugins" |
||||
|
||||
type AppPlugin struct { |
||||
Name string `json:"name"` |
||||
Type string `json:"type"` |
||||
Enabled bool `json:"enabled"` |
||||
Pinned bool `json:"pinned"` |
||||
Module string `json:"module"` |
||||
Info *plugins.PluginInfo `json:"info"` |
||||
JsonData map[string]interface{} `json:"jsonData"` |
||||
} |
||||
|
||||
@ -0,0 +1,50 @@ |
||||
{ |
||||
"pluginType": "app", |
||||
"name": "App Example", |
||||
"type": "app-test", |
||||
|
||||
"plugins": [], |
||||
|
||||
"css": { |
||||
"light": "plugin.dark.css", |
||||
"dark": "plugin.light.css" |
||||
}, |
||||
|
||||
"module": "app", |
||||
|
||||
"pages": [ |
||||
{"name": "Example1", "url": "/app-example", "reqRole": "Editor"} |
||||
], |
||||
|
||||
"public": { |
||||
"urlFragment": "app-example", |
||||
"path": "./public" |
||||
}, |
||||
|
||||
"info": { |
||||
"description": "Example Grafana App", |
||||
"author": { |
||||
"name": "Raintank Inc.", |
||||
"url": "http://raintank.io" |
||||
}, |
||||
"keywords": ["example"], |
||||
"logos": { |
||||
"small": "{{.PluginPublicRoot}}/img/logo_small.png", |
||||
"large": "{{.PluginPublicRoot}}/logo_large.png" |
||||
}, |
||||
"links": [ |
||||
{"name": "Project site", "url": "http://project.com"}, |
||||
{"name": "License & Terms", "url": "http://license.com"} |
||||
], |
||||
"version": "1.0.0", |
||||
"updated": "2015-02-10" |
||||
}, |
||||
|
||||
"dependencies": { |
||||
"grafanaVersion": "2.6.x", |
||||
"plugins": [ |
||||
{"type": "datasource", "id": "graphite", "name": "Graphite", "version": "1.0.0"}, |
||||
{"type": "panel", "id": "graph", "name": "Graph", "version": "1.0.0"} |
||||
] |
||||
} |
||||
} |
||||
Loading…
Reference in new issue