mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 02:02:33 +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:
@ -2,6 +2,7 @@ package pluginscdn
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"net/url"
|
||||
"strings"
|
||||
|
||||
"github.com/grafana/grafana/pkg/plugins/config"
|
||||
@ -62,3 +63,7 @@ func (s *Service) AssetURL(pluginID, pluginVersion, assetPath string) (string, e
|
||||
}
|
||||
return s.NewCDNURLConstructor(pluginID, pluginVersion).StringPath(assetPath)
|
||||
}
|
||||
|
||||
func JoinPath(base string, assetPath ...string) (string, error) {
|
||||
return url.JoinPath(base, assetPath...)
|
||||
}
|
||||
|
Reference in New Issue
Block a user