mirror of
https://github.com/grafana/grafana.git
synced 2025-07-29 05:42:28 +08:00

* first pass * fixup * fix linter issues * fix API test * update naming * rework * update var name * empty check * prettier * fix test * fix lint
20 lines
289 B
Go
20 lines
289 B
Go
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{}
|
|
}
|