commands

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2018 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultInterval = 60
)

Variables

This section is empty.

Functions

func NewStartCommand

func NewStartCommand() cli.Command

func PrepareCommand

func PrepareCommand(name string, usage string, cmd command, additionalFlags ...cli.Flag) cli.Command

Types

type StartExporterServiceCommand

type StartExporterServiceCommand struct {
	ListenAddr         string `long:"listen" env:"GCP_EXPORTER_LISTEN" description:"Metrics and debug server listen address"`
	Interval           int    `long:"interval" env:"GCP_EXPORTER_INTERVAL" description:"Number of seconds between requesting data from GCP"`
	ServiceAccountFile string `long:"service-account-file" env:"GCP_EXPORTER_SERVICE_ACCOUNT_FILE" description:"Path to GCP Service Account JSON file"`
	// contains filtered or unexported fields
}

func (*StartExporterServiceCommand) Execute

func (sc *StartExporterServiceCommand) Execute(cliCtx *cli.Context)

Jump to

Keyboard shortcuts

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