plugin

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const GrafanaUserSignInTokenHeaderName = "X-Grafana-Id" //nolint:gosec

GrafanaUserSignInTokenHeaderName the header name used for forwarding the SignIn token of a Grafana User. Requires idForwarded feature toggle enabled.

View Source
const Name = "mahendrapaipuri-dashboardreporter-app"

Variables

This section is empty.

Functions

func NewDashboardReporterApp added in v1.5.0

func NewDashboardReporterApp(ctx context.Context, settings backend.AppInstanceSettings) (instancemgmt.Instance, error)

NewDashboardReporterApp creates a new example *App instance.

Types

type App

type App struct {
	backend.CallResourceHandler
	// contains filtered or unexported fields
}

App is the backend plugin which can respond to api queries.

func (*App) CheckHealth

CheckHealth handles health checks sent from Grafana to the plugin.

func (*App) Dispose

func (app *App) Dispose()

Dispose here tells plugin SDK that plugin wants to clean up resources when a new instance created.

func (*App) GetAuthZClient added in v1.6.0

func (app *App) GetAuthZClient(req *http.Request) (authz.EnforcementClient, error)

GetAuthZClient returns an authz enforcement client configured thanks to the plugin context.

func (*App) HasAccess added in v1.6.0

func (app *App) HasAccess(req *http.Request, action string, resource authz.Resource) (bool, error)

HasAccess verifies if the current request context has access to certain action.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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