Files
2025-03-19 15:29:30 +01:00

26 lines
407 B
Go

package sandbox
import (
"context"
"github.com/grafana/grafana/pkg/setting"
)
type Sandbox interface {
Plugins(ctx context.Context) ([]string, error)
}
type Service struct {
cfg *setting.Cfg
}
func ProvideService(cfg *setting.Cfg) *Service {
return &Service{
cfg: cfg,
}
}
func (s *Service) Plugins(ctx context.Context) ([]string, error) {
return s.cfg.EnableFrontendSandboxForPlugins, nil
}