Documentation ¶
Index ¶
- type Calls
- type ProvisioningService
- type ProvisioningServiceImpl
- func (ps *ProvisioningServiceImpl) GetAllowUIUpdatesFromConfig(name string) bool
- func (ps *ProvisioningServiceImpl) GetDashboardProvisionerResolvedPath(name string) string
- func (ps *ProvisioningServiceImpl) ProvisionAlerting(ctx context.Context) error
- func (ps *ProvisioningServiceImpl) ProvisionDashboards(ctx context.Context) error
- func (ps *ProvisioningServiceImpl) ProvisionDatasources(ctx context.Context) error
- func (ps *ProvisioningServiceImpl) ProvisionNotifications(ctx context.Context) error
- func (ps *ProvisioningServiceImpl) ProvisionPlugins(ctx context.Context) error
- func (ps *ProvisioningServiceImpl) Run(ctx context.Context) error
- func (ps *ProvisioningServiceImpl) RunInitProvisioners(ctx context.Context) error
- type ProvisioningServiceMock
- func (mock *ProvisioningServiceMock) GetAllowUIUpdatesFromConfig(name string) bool
- func (mock *ProvisioningServiceMock) GetDashboardProvisionerResolvedPath(name string) string
- func (mock *ProvisioningServiceMock) ProvisionAlerting(ctx context.Context) error
- func (mock *ProvisioningServiceMock) ProvisionDashboards(ctx context.Context) error
- func (mock *ProvisioningServiceMock) ProvisionDatasources(ctx context.Context) error
- func (mock *ProvisioningServiceMock) ProvisionNotifications(ctx context.Context) error
- func (mock *ProvisioningServiceMock) ProvisionPlugins(ctx context.Context) error
- func (mock *ProvisioningServiceMock) Run(ctx context.Context) error
- func (mock *ProvisioningServiceMock) RunInitProvisioners(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Calls ¶
type Calls struct { RunInitProvisioners []interface{} ProvisionDatasources []interface{} ProvisionPlugins []interface{} ProvisionNotifications []interface{} ProvisionDashboards []interface{} ProvisionAlerting []interface{} GetDashboardProvisionerResolvedPath []interface{} GetAllowUIUpdatesFromConfig []interface{} Run []interface{} }
type ProvisioningService ¶
type ProvisioningService interface { registry.BackgroundService RunInitProvisioners(ctx context.Context) error ProvisionDatasources(ctx context.Context) error ProvisionPlugins(ctx context.Context) error ProvisionNotifications(ctx context.Context) error ProvisionDashboards(ctx context.Context) error ProvisionAlerting(ctx context.Context) error GetDashboardProvisionerResolvedPath(name string) string GetAllowUIUpdatesFromConfig(name string) bool }
type ProvisioningServiceImpl ¶
type ProvisioningServiceImpl struct { Cfg *setting.Cfg SQLStore db.DB EncryptionService encryption.Internal NotificationService *notifications.NotificationService // contains filtered or unexported fields }
func NewProvisioningServiceImpl ¶
func NewProvisioningServiceImpl() *ProvisioningServiceImpl
Add a public constructor for overriding service to be able to instantiate OSS as fallback
func ProvideService ¶
func ProvideService( ac accesscontrol.AccessControl, cfg *setting.Cfg, sqlStore db.DB, pluginStore plugifaces.Store, encryptionService encryption.Internal, notificatonService *notifications.NotificationService, dashboardProvisioningService dashboardservice.DashboardProvisioningService, datasourceService datasourceservice.DataSourceService, correlationsService correlations.Service, dashboardService dashboardservice.DashboardService, folderService folder.Service, alertingService *alerting.AlertNotificationService, pluginSettings pluginsettings.Service, searchService searchV2.SearchService, quotaService quota.Service, secrectService secrets.Service, orgService org.Service, ) (*ProvisioningServiceImpl, error)
func (*ProvisioningServiceImpl) GetAllowUIUpdatesFromConfig ¶
func (ps *ProvisioningServiceImpl) GetAllowUIUpdatesFromConfig(name string) bool
func (*ProvisioningServiceImpl) GetDashboardProvisionerResolvedPath ¶
func (ps *ProvisioningServiceImpl) GetDashboardProvisionerResolvedPath(name string) string
func (*ProvisioningServiceImpl) ProvisionAlerting ¶
func (ps *ProvisioningServiceImpl) ProvisionAlerting(ctx context.Context) error
func (*ProvisioningServiceImpl) ProvisionDashboards ¶
func (ps *ProvisioningServiceImpl) ProvisionDashboards(ctx context.Context) error
func (*ProvisioningServiceImpl) ProvisionDatasources ¶
func (ps *ProvisioningServiceImpl) ProvisionDatasources(ctx context.Context) error
func (*ProvisioningServiceImpl) ProvisionNotifications ¶
func (ps *ProvisioningServiceImpl) ProvisionNotifications(ctx context.Context) error
func (*ProvisioningServiceImpl) ProvisionPlugins ¶
func (ps *ProvisioningServiceImpl) ProvisionPlugins(ctx context.Context) error
func (*ProvisioningServiceImpl) Run ¶
func (ps *ProvisioningServiceImpl) Run(ctx context.Context) error
func (*ProvisioningServiceImpl) RunInitProvisioners ¶
func (ps *ProvisioningServiceImpl) RunInitProvisioners(ctx context.Context) error
type ProvisioningServiceMock ¶
type ProvisioningServiceMock struct { Calls *Calls RunInitProvisionersFunc func(ctx context.Context) error ProvisionDatasourcesFunc func(ctx context.Context) error ProvisionPluginsFunc func() error ProvisionNotificationsFunc func() error ProvisionDashboardsFunc func() error GetDashboardProvisionerResolvedPathFunc func(name string) string GetAllowUIUpdatesFromConfigFunc func(name string) bool RunFunc func(ctx context.Context) error }
func NewProvisioningServiceMock ¶
func NewProvisioningServiceMock(ctx context.Context) *ProvisioningServiceMock
func (*ProvisioningServiceMock) GetAllowUIUpdatesFromConfig ¶
func (mock *ProvisioningServiceMock) GetAllowUIUpdatesFromConfig(name string) bool
func (*ProvisioningServiceMock) GetDashboardProvisionerResolvedPath ¶
func (mock *ProvisioningServiceMock) GetDashboardProvisionerResolvedPath(name string) string
func (*ProvisioningServiceMock) ProvisionAlerting ¶
func (mock *ProvisioningServiceMock) ProvisionAlerting(ctx context.Context) error
func (*ProvisioningServiceMock) ProvisionDashboards ¶
func (mock *ProvisioningServiceMock) ProvisionDashboards(ctx context.Context) error
func (*ProvisioningServiceMock) ProvisionDatasources ¶
func (mock *ProvisioningServiceMock) ProvisionDatasources(ctx context.Context) error
func (*ProvisioningServiceMock) ProvisionNotifications ¶
func (mock *ProvisioningServiceMock) ProvisionNotifications(ctx context.Context) error
func (*ProvisioningServiceMock) ProvisionPlugins ¶
func (mock *ProvisioningServiceMock) ProvisionPlugins(ctx context.Context) error
func (*ProvisioningServiceMock) Run ¶
func (mock *ProvisioningServiceMock) Run(ctx context.Context) error
func (*ProvisioningServiceMock) RunInitProvisioners ¶
func (mock *ProvisioningServiceMock) RunInitProvisioners(ctx context.Context) error
Directories ¶
Path | Synopsis |
---|---|
Package values is a set of value types to use in provisioning.
|
Package values is a set of value types to use in provisioning. |
Click to show internal directories.
Click to hide internal directories.