mirror of
https://github.com/grafana/grafana.git
synced 2025-07-29 11:12:13 +08:00
Plugins: Refactor loader + finder to support multiple sourcing methods (#64735)
* it's cdn time * tidy body closing * auto signed * fix close * update log name * remove comments
This commit is contained in:
@ -20,7 +20,10 @@ import (
|
||||
"github.com/grafana/grafana/pkg/util"
|
||||
)
|
||||
|
||||
var ErrFileNotExist = errors.New("file does not exist")
|
||||
var (
|
||||
ErrFileNotExist = errors.New("file does not exist")
|
||||
ErrPluginFileRead = errors.New("file could not be read")
|
||||
)
|
||||
|
||||
type Plugin struct {
|
||||
JSONData
|
||||
@ -427,6 +430,10 @@ const (
|
||||
External Class = "external"
|
||||
)
|
||||
|
||||
func (c Class) String() string {
|
||||
return string(c)
|
||||
}
|
||||
|
||||
var PluginTypes = []Type{
|
||||
DataSource,
|
||||
Panel,
|
||||
|
Reference in New Issue
Block a user