plugins

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: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(ctx context.Context, grafanaDir string, p syncutil.WorkerPool, g *errutil.Group, verMode *config.BuildConfig) error

BuildPlugins builds internal plugins. The built plugins are placed in plugins-bundled/dist/.

func BuildManifest

func BuildManifest(ctx context.Context, dpath string, signingAdmin bool) error

BuildManifest requests a plugin's signed manifest file fromt he Grafana API. If signingAdmin is true, the manifest signing admin endpoint (without plugin ID) will be used, and requires an admin API key.

func Download

func Download(ctx context.Context, grafanaDir string, p syncutil.WorkerPool) error

downloadPlugins downloads Grafana plugins that should be bundled into packages.

The plugin archives are downloaded into <grafanaDir>/plugins-bundled.

func Unzip

func Unzip(fpath, tgtDir string) error

Unzip unzips a plugin.

Types

type PluginSigningMode

type PluginSigningMode = int

Jump to

Keyboard shortcuts

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