Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
437b957b
Commit
437b957b
authored
Nov 11, 2015
by
woodsaj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove external_plugin from models package.
parent
d503c5d8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
32 deletions
+2
-32
pkg/models/external_plugin.go
+0
-31
pkg/plugins/plugins.go
+2
-1
No files found.
pkg/models/external_plugin.go
deleted
100644 → 0
View file @
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"`
}
pkg/plugins/plugins.go
View file @
437b957b
...
@@ -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"`
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment