mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 16:42:26 +08:00
Plugins: Hide version information when plugin is managed (#88065)
* first pass * fixup * fix linter issues * fix API test * update naming * rework * update var name * empty check * prettier * fix test * fix lint
This commit is contained in:
19
pkg/services/pluginsintegration/managedplugins/managed.go
Normal file
19
pkg/services/pluginsintegration/managedplugins/managed.go
Normal file
@ -0,0 +1,19 @@
|
||||
package managedplugins
|
||||
|
||||
import "context"
|
||||
|
||||
type Manager interface {
|
||||
ManagedPlugins(ctx context.Context) []string
|
||||
}
|
||||
|
||||
var _ Manager = (*Noop)(nil)
|
||||
|
||||
type Noop struct{}
|
||||
|
||||
func NewNoop() *Noop {
|
||||
return &Noop{}
|
||||
}
|
||||
|
||||
func (s *Noop) ManagedPlugins(_ context.Context) []string {
|
||||
return []string{}
|
||||
}
|
Reference in New Issue
Block a user