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) 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() 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) 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() 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{} GetDashboardProvisionerResolvedPath []interface{} GetAllowUIUpdatesFromConfig []interface{} Run []interface{} }
type ProvisioningService ¶
type ProvisioningService interface { registry.BackgroundService RunInitProvisioners(ctx context.Context) error ProvisionDatasources(ctx context.Context) error ProvisionPlugins() error ProvisionNotifications(ctx context.Context) error ProvisionDashboards(ctx context.Context) error GetDashboardProvisionerResolvedPath(name string) string GetAllowUIUpdatesFromConfig(name string) bool }
type ProvisioningServiceImpl ¶
type ProvisioningServiceImpl struct { Cfg *setting.Cfg SQLStore *sqlstore.SQLStore EncryptionService encryption.Internal // 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(cfg *setting.Cfg, sqlStore *sqlstore.SQLStore, pluginStore plugifaces.Store, encryptionService encryption.Internal) (*ProvisioningServiceImpl, error)
func (*ProvisioningServiceImpl) GetAllowUIUpdatesFromConfig ¶
func (ps *ProvisioningServiceImpl) GetAllowUIUpdatesFromConfig(name string) bool
func (*ProvisioningServiceImpl) GetDashboardProvisionerResolvedPath ¶
func (ps *ProvisioningServiceImpl) GetDashboardProvisionerResolvedPath(name string) string
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() 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) 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() 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.