Files
Will Browne 1b3fa8c47f 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
2024-07-29 11:18:43 +01:00

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