dashboards

package
v6.1.6+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2019 License: Apache-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewFolderService = func(orgId int64, user *models.SignedInUser) FolderService {
	return &dashboardServiceImpl{
		orgId: orgId,
		user:  user,
	}
}

NewFolderService factory for creating a new folder service

View Source
var NewProvisioningService = func() DashboardProvisioningService {
	return &dashboardServiceImpl{}
}

NewProvisioningService factory for creating a new dashboard provisioning service

View Source
var NewService = func() DashboardService {
	return &dashboardServiceImpl{
		log: log.New("dashboard-service"),
	}
}

NewService factory for creating a new dashboard service

Functions

func MakeUserAdmin

func MakeUserAdmin(bus bus.Bus, orgId int64, userId int64, dashboardId int64, setViewAndEditPermissions bool) error

func MockDashboardService

func MockDashboardService(mock *FakeDashboardService)

Types

type DashboardProvisioningService

type DashboardProvisioningService interface {
	SaveProvisionedDashboard(dto *SaveDashboardDTO, provisioning *models.DashboardProvisioning) (*models.Dashboard, error)
	SaveFolderForProvisionedDashboards(*SaveDashboardDTO) (*models.Dashboard, error)
	GetProvisionedDashboardData(name string) ([]*models.DashboardProvisioning, error)
}

DashboardProvisioningService service for operating on provisioned dashboards

type DashboardService

type DashboardService interface {
	SaveDashboard(dto *SaveDashboardDTO) (*models.Dashboard, error)
	ImportDashboard(dto *SaveDashboardDTO) (*models.Dashboard, error)
}

DashboardService service for operating on dashboards

type FakeDashboardService

type FakeDashboardService struct {
	SaveDashboardResult *models.Dashboard
	SaveDashboardError  error
	SavedDashboards     []*SaveDashboardDTO
}

func (*FakeDashboardService) ImportDashboard

func (s *FakeDashboardService) ImportDashboard(dto *SaveDashboardDTO) (*models.Dashboard, error)

func (*FakeDashboardService) SaveDashboard

func (s *FakeDashboardService) SaveDashboard(dto *SaveDashboardDTO) (*models.Dashboard, error)

type FolderService

type FolderService interface {
	GetFolders(limit int) ([]*models.Folder, error)
	GetFolderByID(id int64) (*models.Folder, error)
	GetFolderByUID(uid string) (*models.Folder, error)
	CreateFolder(cmd *models.CreateFolderCommand) error
	UpdateFolder(uid string, cmd *models.UpdateFolderCommand) error
	DeleteFolder(uid string) (*models.Folder, error)
}

FolderService service for operating on folders

type SaveDashboardDTO

type SaveDashboardDTO struct {
	OrgId     int64
	UpdatedAt time.Time
	User      *models.SignedInUser
	Message   string
	Overwrite bool
	Dashboard *models.Dashboard
}

Jump to

Keyboard shortcuts

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