api

package
v0.0.0-...-fb7f86c Latest Latest
Warning

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

Go to latest
Published: Aug 18, 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,
	pluginStore plugins.Store, ac accesscontrol.AccessControl) *ImportDashboardAPI

func (*ImportDashboardAPI) ImportDashboard

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

swagger:route POST /dashboards/import dashboards importDashboard

Import dashboard.

Responses: 200: importDashboardResponse 400: badRequestError 401: unauthorisedError 412: preconditionFailedError 422: unprocessableEntityError 500: internalServerError

func (*ImportDashboardAPI) RegisterAPIEndpoints

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

type ImportDashboardParams

type ImportDashboardParams struct {
	// in:body
	// required:true
	Body dashboardimport.ImportDashboardRequest
}

swagger:parameters importDashboard

type ImportDashboardResponse

type ImportDashboardResponse struct {
	// in: body
	Body dashboardimport.ImportDashboardResponse `json:"body"`
}

swagger:response importDashboardResponse

type QuotaService

type QuotaService interface {
	QuotaReached(c *contextmodel.ReqContext, target quota.TargetSrv) (bool, error)
}

Jump to

Keyboard shortcuts

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