command

package
v0.0.0-...-a1b3306 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// http://tldp.org/LDP/abs/html/exitcodes.html
	ExitSuccess = iota
	ExitError
	ExitBadConnection
	ExitInvalidInput // for txn, watch command
	ExitBadFeature   // provided a valid flag with an unsupported value
	ExitInterrupted
	ExitIO
	ExitBadArgs = 128
)

Variables

This section is empty.

Functions

func ExitWithError

func ExitWithError(code int, err error)

func NewLoadPURCommand

func NewLoadPURCommand() *cobra.Command

func NewLoadWatchCommand

func NewLoadWatchCommand() *cobra.Command

NewLoadWatchCommand returns the cobra command for "load watch test for etcdloadtest".

func RandomStrings

func RandomStrings(maxlen uint, n int) []string

RandomStrings retruns a slice of randomly generated strings.

func UniqueStrings

func UniqueStrings(maxlen uint, n int) []string

UniqueStrings retruns a slice of randomly generated unique strings.

Types

type GlobalFlags

type GlobalFlags struct {
	Endpoints   []string
	DialTimeout time.Duration
}

GlobalFlags are flags that defined globally and are inherited to all sub-commands.

Jump to

Keyboard shortcuts

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