dashboards

package
v5.0.0-beta4+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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{}
}

NewService factory for creating a new dashboard service

Functions

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)
}

DashboardService service for operating on dashboards

type FakeDashboardService

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

func (*FakeDashboardService) SaveDashboard

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

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