Chore: Use Grafana API to retrieve the public key to validate plugins (#66439)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user