mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 16:43:07 +08:00
Plugins: Update DefaultSignature function signature in PluginSource interface (#100519)
* Plugins CDN: Add support for signature type and signature org * Fall-back to valid signature if the config is not supported * Move CDN signature code to DefaultSignature * fix tests
This commit is contained in:
@ -30,7 +30,7 @@ func (s *LocalSource) PluginURIs(_ context.Context) []string {
|
||||
return s.paths
|
||||
}
|
||||
|
||||
func (s *LocalSource) DefaultSignature(_ context.Context) (plugins.Signature, bool) {
|
||||
func (s *LocalSource) DefaultSignature(_ context.Context, _ string) (plugins.Signature, bool) {
|
||||
switch s.class {
|
||||
case plugins.ClassCore:
|
||||
return plugins.Signature{
|
||||
|
Reference in New Issue
Block a user