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 ¶
func InstallPlugin(pluginName, version string, c CommandLine) error
InstallPlugin downloads the plugin code as a zip file from the Grafana.com API and then extracts the zip into the plugins directory.
func RemoveGitBuildFromName ¶
Types ¶
type CommandLine ¶
type CommandLine interface {
ShowHelp()
ShowVersion()
Application() *cli.App
Args() cli.Args
Bool(name string) bool
Int(name string) int
String(name string) string
StringSlice(name string) []string
GlobalString(name string) string
FlagNames() (names []string)
Generic(name string) interface{}
PluginDirectory() string
RepoDirectory() string
PluginURL() string
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.