provisioning

package
v0.0.0-test Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2021 License: AGPL-3.0 Imports: 14 Imported by: 101

Documentation

Index

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 (*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 (*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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL