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:
Will Browne
2023-03-20 13:35:49 +00:00
committed by GitHub
parent eba2c7b522
commit ee2dd62a1f
25 changed files with 389 additions and 223 deletions

View File

@ -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,