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" )
Variables ¶
Functions ¶
func ProvideService ¶
func ProvideService( cfg *setting.Cfg, features *featuremgmt.FeatureManager, ) *service
Types ¶
type MockModuleEngine ¶
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.