Documentation
¶
Index ¶
Constants ¶
View Source
const ( // All includes all modules necessary for Grafana to run as a standalone application. All string = "all" // BackgroundServices includes all Grafana services that run in the background BackgroundServices string = "background-services" // CertGenerator generates certificates for grafana-apiserver CertGenerator string = "cert-generator" // GrafanaAPIServer is the Kubertenes API server for Grafana Resources GrafanaAPIServer string = "grafana-apiserver" // HTTPServer is the HTTP server for Grafana HTTPServer string = "http-server" // Provisioning sets up Grafana with preconfigured datasources, dashboards, etc. Provisioning string = "provisioning" // SecretMigrator handles legacy secrets migrations SecretMigrator string = "secret-migrator" )
Variables ¶
Functions ¶
func ProvideService ¶
func ProvideService( cfg *setting.Cfg, features *featuremgmt.FeatureManager, ) *service
Types ¶
type MockModuleEngine ¶
type MockModuleEngine struct {
AwaitHealthyFunc func(context.Context) error
InitFunc func(context.Context) error
RunFunc func(context.Context) error
ShutdownFunc func(context.Context) error
}
func (*MockModuleEngine) AwaitHealthy ¶
func (m *MockModuleEngine) AwaitHealthy(ctx context.Context) error
type MockModuleManager ¶
type MockModuleManager struct {
RegisterModuleFunc func(name string, initFn func() (services.Service, error))
RegisterInvisibleModuleFunc func(name string, initFn func() (services.Service, error))
}
func (*MockModuleManager) RegisterInvisibleModule ¶
func (m *MockModuleManager) RegisterInvisibleModule(name string, initFn func() (services.Service, error))
func (*MockModuleManager) RegisterModule ¶
func (m *MockModuleManager) RegisterModule(name string, initFn func() (services.Service, error))
type MockNamedService ¶
type MockNamedService struct {
*services.BasicService
}
func NewMockNamedService ¶
func NewMockNamedService(name string) *MockNamedService
Click to show internal directories.
Click to hide internal directories.