mirror of
https://github.com/grafana/grafana.git
synced 2025-07-29 12:32:17 +08:00
Plugins: Add support for fetching plugin includes from plugin CDN (#91476)
* update oss side * add Rel func to plugins.FS * update tests * add comment * fix fs paths for nested plugin * fix test * fix sources * fix cdn class bug * update tests * remove commented out code
This commit is contained in:
@ -36,6 +36,10 @@ func (f inMemoryFS) Files() ([]string, error) {
|
||||
return fps, nil
|
||||
}
|
||||
|
||||
func (f inMemoryFS) Rel(_ string) (string, error) {
|
||||
return "", nil
|
||||
}
|
||||
|
||||
func (f inMemoryFS) Open(fn string) (fs.File, error) {
|
||||
if _, ok := f.files[fn]; !ok {
|
||||
return nil, ErrFileNotExist
|
||||
|
Reference in New Issue
Block a user