MCPcopy
hub / github.com/grafana/grafana / CanBeDisabled

Interface CanBeDisabled

pkg/registry/registry.go:18–21  ·  view source on GitHub ↗

CanBeDisabled allows the services to decide if it should be started or not by itself. This is useful for services that might not always be started, ex alerting. This will be called after `Init()`.

Source from the content-addressed store, hash-verified

16// that might not always be started, ex alerting.
17// This will be called after `Init()`.
18type CanBeDisabled interface {
19 // IsDisabled should return a bool saying if it can be started or not.
20 IsDisabled() bool
21}
22
23// BackgroundService should be implemented for services that have
24// long running tasks in the background.

Callers 8

IsDisabledFunction · 0.65
startingMethod · 0.65
RegisterAppInstallerFunction · 0.65
RegisterAppInstallerFunction · 0.65
RegisterAppInstallerFunction · 0.65
TestService_IsDisabledFunction · 0.65
ProvideServiceFunction · 0.65
Test_IsDisabledFunction · 0.65

Implementers 15

mockServicepkg/registry/backgroundsvcs/adapter/ma
AlertNGpkg/services/ngalert/ngalert.go
syncerpkg/services/pluginsintegration/instal
FakeSyncerpkg/services/pluginsintegration/instal
Servicepkg/services/pluginsintegration/plugin
KeyRetrieverpkg/services/pluginsintegration/keyret
Dynamicpkg/services/pluginsintegration/angula
servicepkg/services/quota/quotaimpl/quota.go
NoopIAMRolesSyncerpkg/services/accesscontrol/noop_iam_ro
FixedRolesLoaderpkg/services/accesscontrol/fixedrolesl
NoopGlobalRoleSeederpkg/services/accesscontrol/noop_global
EmbeddedZanzanaServicepkg/services/authz/zanzana.go

Calls

no outgoing calls

Tested by

no test coverage detected