2025-03-13 22:04:08 +08:00
|
|
|
package provisionedplugins
|
|
|
|
|
|
|
|
import "context"
|
|
|
|
|
|
|
|
type Manager interface {
|
2025-09-15 21:54:16 +08:00
|
|
|
ProvisionedPlugins(ctx context.Context) ([]Plugin, error)
|
2025-03-13 22:04:08 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
var _ Manager = (*Noop)(nil)
|
|
|
|
|
2025-09-15 21:54:16 +08:00
|
|
|
type Plugin struct {
|
|
|
|
ID string
|
|
|
|
URL string
|
|
|
|
}
|
|
|
|
|
2025-03-13 22:04:08 +08:00
|
|
|
type Noop struct{}
|
|
|
|
|
|
|
|
func NewNoop() *Noop {
|
|
|
|
return &Noop{}
|
|
|
|
}
|
|
|
|
|
2025-09-15 21:54:16 +08:00
|
|
|
func (s *Noop) ProvisionedPlugins(_ context.Context) ([]Plugin, error) {
|
|
|
|
return []Plugin{}, nil
|
2025-03-13 22:04:08 +08:00
|
|
|
}
|