cligraphite

package
v0.0.0-...-559e7e0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2018 License: BSD-3-Clause Imports: 3 Imported by: 1

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

func NewClientFromContext(ctx *cli.Context) (*graphite.Graphite, error)

NewClientFromContext creates a graphite client from the cli context assuming it is using the flags in this package

Types

This section is empty.

Jump to

Keyboard shortcuts

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