api

package
v0.0.85-test Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImportDashboardAPI

type ImportDashboardAPI struct {
	// contains filtered or unexported fields
}

func New

func New(dashboardImportService dashboardimport.Service, quotaService QuotaService,
	schemaLoaderService SchemaLoaderService, pluginStore plugins.Store, ac accesscontrol.AccessControl) *ImportDashboardAPI

func (*ImportDashboardAPI) ImportDashboard

func (api *ImportDashboardAPI) ImportDashboard(c *models.ReqContext) response.Response

func (*ImportDashboardAPI) RegisterAPIEndpoints

func (api *ImportDashboardAPI) RegisterAPIEndpoints(routeRegister routing.RouteRegister)

type QuotaService

type QuotaService interface {
	QuotaReached(c *models.ReqContext, target string) (bool, error)
}

type SchemaLoaderService

type SchemaLoaderService interface {
	IsDisabled() bool
	DashboardApplyDefaults(input *simplejson.Json) (*simplejson.Json, error)
}

Jump to

Keyboard shortcuts

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