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:
Giuseppe Guerra
2025-02-19 12:19:45 +01:00
committed by GitHub
parent 8646961c3f
commit 011726c80f
5 changed files with 8 additions and 8 deletions

View File

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