GO-2024-3140 : Grafana plugin SDK Information Leakage in github.com/grafana/grafana-plugin-sdk-go
Discover Packages
github.com/grafana/grafana-plugin-sdk-go
build
package
Version:
v0.58.0
Opens a new window with list of versions in this module.
Published: Apr 27, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 15
Opens a new window with list of imports.
Imported by: 4
Opens a new window with list of known importers.
README
README
¶
This package includes standard mage targets useful in the build.
See: https://magefile.org/magefiles/ .
These targets can be used in your plugin project by creating Magefile.go in the root of your project like the following:
//+build mage
package main
import (
// mage:import
build "github.com/grafana/grafana-plugin-sdk-go/build"
)
// Default configures the default target.
var Default = build.BuildAll
https://magefile.org/importing/
Expand ▾
Collapse ▴
Documentation
¶
BuildAll builds production back-end components.
Clean cleans build artifacts, by deleting the dist directory.
Coverage runs backend tests and makes a coverage report.
Debugger makes a new debug build, re-launches the plugin and attaches the Delve debugger, in headless mode
listening on port 3222.
The plugin process is killed after re-building, in order to make Grafana launch the new version. Once the new
version is up, we attach to it with Delve.
Format formats the sources.
Lint audits the source style
func ReloadPlugin() error
ReloadPlugin - kills any running instances and waits for grafana to reload the plugin
Build is a namespace.
Backend build a production build for all platforms
Darwin builds the back-end plugin for OSX.
Debug builds the debug version for the current platform
Linux builds the back-end plugin for Linux.
Windows builds the back-end plugin for Windows.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.