Documentation ¶
Index ¶
Constants ¶
View Source
const AdminUserId = 1
Variables ¶
View Source
var Commands = []*cli.Command{
{
Name: "plugins",
Usage: "Manage plugins for grafana",
Subcommands: pluginCommands,
},
{
Name: "admin",
Usage: "Grafana admin commands",
Subcommands: adminCommands,
},
}
Functions ¶
func InstallPlugin ¶
InstallPlugin downloads the plugin code as a zip file from the Grafana.com API and then extracts the zip into the plugins directory.
func SelectVersion ¶
SelectVersion returns latest version if none is specified or the specified version. If the version string is not matched to existing version it errors out. It also errors out if version that is matched is not available for current os and platform. It expects plugin.Versions to be sorted so the newest version is first.
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.