2025-04-01 10:38:02 +09:00

22 lines
352 B
Go

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