Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Flags = []cli.Flag{UserFlag, PasswordFlag, URLFlag}
Flags is the common graphite cli flags
View Source
var PasswordFlag = cli.StringFlag{
Name: "graphite_password",
Usage: "Authenticate to graphite endpoint with this password.",
EnvVar: "GRAPHITE_PASSWORD",
}
PasswordFlag has the password for http authenticated graphite apis
View Source
var URLFlag = cli.StringFlag{
Name: "graphite_url",
Usage: "Graphite endpoint to send graphite events to.",
EnvVar: "GRAPHITE_URL",
}
URLFlag is the graphite events endpoint.
View Source
var UserFlag = cli.StringFlag{
Name: "graphite_user",
Usage: "Authenticate to graphite endpoint with this user.",
EnvVar: "GRAPHITE_USER",
}
UserFlag has the username for http authenticated graphite apis
Functions ¶
func NewClientFromContext ¶
NewClientFromContext creates a graphite client from the cli context assuming it is using the flags in this package
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.