Documentation ¶
Index ¶
- Constants
- func NewDashboardReporterApp(ctx context.Context, settings backend.AppInstanceSettings) (instancemgmt.Instance, error)
- type App
- func (app *App) CheckHealth(_ context.Context, _ *backend.CheckHealthRequest) (*backend.CheckHealthResult, error)
- func (app *App) Dispose()
- func (app *App) GetAuthZClient(req *http.Request) (authz.EnforcementClient, error)
- func (app *App) HasAccess(req *http.Request, action string, resource authz.Resource) (bool, error)
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 ¶
func (app *App) CheckHealth(_ context.Context, _ *backend.CheckHealthRequest) (*backend.CheckHealthResult, error)
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
GetAuthZClient returns an authz enforcement client configured thanks to the plugin context.
Click to show internal directories.
Click to hide internal directories.