Chore: Use Grafana API to retrieve the public key to validate plugins (#66439)

This commit is contained in:
Andres Martinez Gotor
2023-04-18 16:12:05 +02:00
committed by GitHub
parent f612a72f96
commit 98c695c68f
18 changed files with 487 additions and 103 deletions
+8
View File
@@ -136,3 +136,11 @@ type ClientMiddlewareFunc func(next Client) Client
func (fn ClientMiddlewareFunc) CreateClientMiddleware(next Client) Client {
return fn(next)
}
type FeatureToggles interface {
IsEnabled(flag string) bool
}
type SignatureCalculator interface {
Calculate(ctx context.Context, src PluginSource, plugin FoundPlugin) (Signature, error)
}