Documentation ¶
Index ¶
- func ProvideDashboardPluginService(features featuremgmt.FeatureToggles, orig *DashboardServiceImpl) dashboards.PluginService
- func ProvideDashboardProvisioningService(features featuremgmt.FeatureToggles, orig *DashboardServiceImpl) dashboards.DashboardProvisioningService
- func ProvideDashboardService(features featuremgmt.FeatureToggles, orig *DashboardServiceImpl) dashboards.DashboardService
- type DashboardServiceImpl
- func (dr *DashboardServiceImpl) BuildSaveDashboardCommand(ctx context.Context, dto *dashboards.SaveDashboardDTO, ...) (*dashboards.SaveDashboardCommand, error)
- func (dr *DashboardServiceImpl) CleanUpDeletedDashboards(ctx context.Context) (int64, error)
- func (dr DashboardServiceImpl) CountInFolders(ctx context.Context, orgID int64, folderUIDs []string, u identity.Requester) (int64, error)
- func (dr *DashboardServiceImpl) DeleteDashboard(ctx context.Context, dashboardId int64, orgId int64) error
- func (dr *DashboardServiceImpl) DeleteInFolders(ctx context.Context, orgID int64, folderUIDs []string, u identity.Requester) error
- func (dr *DashboardServiceImpl) DeleteOrphanedProvisionedDashboards(ctx context.Context, ...) error
- func (dr *DashboardServiceImpl) DeleteProvisionedDashboard(ctx context.Context, dashboardId int64, orgId int64) error
- func (dr *DashboardServiceImpl) FindDashboards(ctx context.Context, query *dashboards.FindPersistedDashboardsQuery) ([]dashboards.DashboardSearchProjection, error)
- func (dr *DashboardServiceImpl) GetAllDashboards(ctx context.Context) ([]*dashboards.Dashboard, error)
- func (dr *DashboardServiceImpl) GetDashboard(ctx context.Context, query *dashboards.GetDashboardQuery) (*dashboards.Dashboard, error)
- func (dr *DashboardServiceImpl) GetDashboardByPublicUid(ctx context.Context, dashboardPublicUid string) (*dashboards.Dashboard, error)
- func (dr *DashboardServiceImpl) GetDashboardTags(ctx context.Context, query *dashboards.GetDashboardTagsQuery) ([]*dashboards.DashboardTagCloudItem, error)
- func (dr *DashboardServiceImpl) GetDashboardUIDByID(ctx context.Context, query *dashboards.GetDashboardRefByIDQuery) (*dashboards.DashboardRef, error)
- func (dr *DashboardServiceImpl) GetDashboards(ctx context.Context, query *dashboards.GetDashboardsQuery) ([]*dashboards.Dashboard, error)
- func (dr *DashboardServiceImpl) GetDashboardsByPluginID(ctx context.Context, query *dashboards.GetDashboardsByPluginIDQuery) ([]*dashboards.Dashboard, error)
- func (dr *DashboardServiceImpl) GetDashboardsSharedWithUser(ctx context.Context, user identity.Requester) ([]*dashboards.Dashboard, error)
- func (dr *DashboardServiceImpl) GetProvisionedDashboardData(ctx context.Context, name string) ([]*dashboards.DashboardProvisioning, error)
- func (dr *DashboardServiceImpl) GetProvisionedDashboardDataByDashboardID(ctx context.Context, dashboardID int64) (*dashboards.DashboardProvisioning, error)
- func (dr *DashboardServiceImpl) GetProvisionedDashboardDataByDashboardUID(ctx context.Context, orgID int64, dashboardUID string) (*dashboards.DashboardProvisioning, error)
- func (dr *DashboardServiceImpl) GetSoftDeletedDashboard(ctx context.Context, orgID int64, uid string) (*dashboards.Dashboard, error)
- func (dr *DashboardServiceImpl) ImportDashboard(ctx context.Context, dto *dashboards.SaveDashboardDTO) (*dashboards.Dashboard, error)
- func (dr *DashboardServiceImpl) Kind() string
- func (dr *DashboardServiceImpl) RestoreDashboard(ctx context.Context, dashboard *dashboards.Dashboard, user identity.Requester, ...) error
- func (dr *DashboardServiceImpl) SaveDashboard(ctx context.Context, dto *dashboards.SaveDashboardDTO, allowUiUpdate bool) (*dashboards.Dashboard, error)
- func (dr *DashboardServiceImpl) SaveFolderForProvisionedDashboards(ctx context.Context, dto *folder.CreateFolderCommand) (*folder.Folder, error)
- func (dr *DashboardServiceImpl) SaveProvisionedDashboard(ctx context.Context, dto *dashboards.SaveDashboardDTO, ...) (*dashboards.Dashboard, error)
- func (dr *DashboardServiceImpl) SearchDashboards(ctx context.Context, query *dashboards.FindPersistedDashboardsQuery) (model.HitList, error)
- func (dr *DashboardServiceImpl) SoftDeleteDashboard(ctx context.Context, orgID int64, dashboardUID string) error
- func (dr *DashboardServiceImpl) UnprovisionDashboard(ctx context.Context, dashboardId int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProvideDashboardPluginService ¶
func ProvideDashboardPluginService( features featuremgmt.FeatureToggles, orig *DashboardServiceImpl, ) dashboards.PluginService
func ProvideDashboardProvisioningService ¶
func ProvideDashboardProvisioningService( features featuremgmt.FeatureToggles, orig *DashboardServiceImpl, ) dashboards.DashboardProvisioningService
func ProvideDashboardService ¶
func ProvideDashboardService( features featuremgmt.FeatureToggles, orig *DashboardServiceImpl, ) dashboards.DashboardService
Types ¶
type DashboardServiceImpl ¶
type DashboardServiceImpl struct {
// contains filtered or unexported fields
}
func ProvideDashboardServiceImpl ¶
func ProvideDashboardServiceImpl( cfg *setting.Cfg, dashboardStore dashboards.Store, folderStore folder.FolderStore, features featuremgmt.FeatureToggles, folderPermissionsService accesscontrol.FolderPermissionsService, dashboardPermissionsService accesscontrol.DashboardPermissionsService, ac accesscontrol.AccessControl, folderSvc folder.Service, r prometheus.Registerer, ) (*DashboardServiceImpl, error)
This is the uber service that implements a three smaller services
func (*DashboardServiceImpl) BuildSaveDashboardCommand ¶
func (dr *DashboardServiceImpl) BuildSaveDashboardCommand(ctx context.Context, dto *dashboards.SaveDashboardDTO, validateProvisionedDashboard bool) (*dashboards.SaveDashboardCommand, error)
func (*DashboardServiceImpl) CleanUpDeletedDashboards ¶
func (dr *DashboardServiceImpl) CleanUpDeletedDashboards(ctx context.Context) (int64, error)
func (DashboardServiceImpl) CountInFolders ¶
func (*DashboardServiceImpl) DeleteDashboard ¶
func (dr *DashboardServiceImpl) DeleteDashboard(ctx context.Context, dashboardId int64, orgId int64) error
DeleteDashboard removes dashboard from the DB. Errors out if the dashboard was provisioned. Should be used for operations by the user where we want to make sure user does not delete provisioned dashboard.
func (*DashboardServiceImpl) DeleteInFolders ¶
func (*DashboardServiceImpl) DeleteOrphanedProvisionedDashboards ¶
func (dr *DashboardServiceImpl) DeleteOrphanedProvisionedDashboards(ctx context.Context, cmd *dashboards.DeleteOrphanedProvisionedDashboardsCommand) error
func (*DashboardServiceImpl) DeleteProvisionedDashboard ¶
func (dr *DashboardServiceImpl) DeleteProvisionedDashboard(ctx context.Context, dashboardId int64, orgId int64) error
DeleteProvisionedDashboard removes dashboard from the DB even if it is provisioned.
func (*DashboardServiceImpl) FindDashboards ¶
func (dr *DashboardServiceImpl) FindDashboards(ctx context.Context, query *dashboards.FindPersistedDashboardsQuery) ([]dashboards.DashboardSearchProjection, error)
func (*DashboardServiceImpl) GetAllDashboards ¶
func (dr *DashboardServiceImpl) GetAllDashboards(ctx context.Context) ([]*dashboards.Dashboard, error)
func (*DashboardServiceImpl) GetDashboard ¶
func (dr *DashboardServiceImpl) GetDashboard(ctx context.Context, query *dashboards.GetDashboardQuery) (*dashboards.Dashboard, error)
func (*DashboardServiceImpl) GetDashboardByPublicUid ¶
func (dr *DashboardServiceImpl) GetDashboardByPublicUid(ctx context.Context, dashboardPublicUid string) (*dashboards.Dashboard, error)
func (*DashboardServiceImpl) GetDashboardTags ¶
func (dr *DashboardServiceImpl) GetDashboardTags(ctx context.Context, query *dashboards.GetDashboardTagsQuery) ([]*dashboards.DashboardTagCloudItem, error)
func (*DashboardServiceImpl) GetDashboardUIDByID ¶
func (dr *DashboardServiceImpl) GetDashboardUIDByID(ctx context.Context, query *dashboards.GetDashboardRefByIDQuery) (*dashboards.DashboardRef, error)
func (*DashboardServiceImpl) GetDashboards ¶
func (dr *DashboardServiceImpl) GetDashboards(ctx context.Context, query *dashboards.GetDashboardsQuery) ([]*dashboards.Dashboard, error)
func (*DashboardServiceImpl) GetDashboardsByPluginID ¶
func (dr *DashboardServiceImpl) GetDashboardsByPluginID(ctx context.Context, query *dashboards.GetDashboardsByPluginIDQuery) ([]*dashboards.Dashboard, error)
func (*DashboardServiceImpl) GetDashboardsSharedWithUser ¶
func (dr *DashboardServiceImpl) GetDashboardsSharedWithUser(ctx context.Context, user identity.Requester) ([]*dashboards.Dashboard, error)
func (*DashboardServiceImpl) GetProvisionedDashboardData ¶
func (dr *DashboardServiceImpl) GetProvisionedDashboardData(ctx context.Context, name string) ([]*dashboards.DashboardProvisioning, error)
func (*DashboardServiceImpl) GetProvisionedDashboardDataByDashboardID ¶
func (dr *DashboardServiceImpl) GetProvisionedDashboardDataByDashboardID(ctx context.Context, dashboardID int64) (*dashboards.DashboardProvisioning, error)
func (*DashboardServiceImpl) GetProvisionedDashboardDataByDashboardUID ¶
func (dr *DashboardServiceImpl) GetProvisionedDashboardDataByDashboardUID(ctx context.Context, orgID int64, dashboardUID string) (*dashboards.DashboardProvisioning, error)
func (*DashboardServiceImpl) GetSoftDeletedDashboard ¶
func (dr *DashboardServiceImpl) GetSoftDeletedDashboard(ctx context.Context, orgID int64, uid string) (*dashboards.Dashboard, error)
func (*DashboardServiceImpl) ImportDashboard ¶
func (dr *DashboardServiceImpl) ImportDashboard(ctx context.Context, dto *dashboards.SaveDashboardDTO) ( *dashboards.Dashboard, error)
func (*DashboardServiceImpl) Kind ¶
func (dr *DashboardServiceImpl) Kind() string
func (*DashboardServiceImpl) RestoreDashboard ¶
func (dr *DashboardServiceImpl) RestoreDashboard(ctx context.Context, dashboard *dashboards.Dashboard, user identity.Requester, optionalFolderUID string) error
func (*DashboardServiceImpl) SaveDashboard ¶
func (dr *DashboardServiceImpl) SaveDashboard(ctx context.Context, dto *dashboards.SaveDashboardDTO, allowUiUpdate bool) (*dashboards.Dashboard, error)
func (*DashboardServiceImpl) SaveFolderForProvisionedDashboards ¶
func (dr *DashboardServiceImpl) SaveFolderForProvisionedDashboards(ctx context.Context, dto *folder.CreateFolderCommand) (*folder.Folder, error)
func (*DashboardServiceImpl) SaveProvisionedDashboard ¶
func (dr *DashboardServiceImpl) SaveProvisionedDashboard(ctx context.Context, dto *dashboards.SaveDashboardDTO, provisioning *dashboards.DashboardProvisioning) (*dashboards.Dashboard, error)
func (*DashboardServiceImpl) SearchDashboards ¶
func (dr *DashboardServiceImpl) SearchDashboards(ctx context.Context, query *dashboards.FindPersistedDashboardsQuery) (model.HitList, error)
func (*DashboardServiceImpl) SoftDeleteDashboard ¶
func (*DashboardServiceImpl) UnprovisionDashboard ¶
func (dr *DashboardServiceImpl) UnprovisionDashboard(ctx context.Context, dashboardId int64) error
UnprovisionDashboard removes info about dashboard being provisioned. Used after provisioning configs are changed and provisioned dashboards are left behind but not deleted.
Click to show internal directories.
Click to hide internal directories.