command

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2020 License: Apache-2.0 Imports: 7 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 NewMemberAddCommand

func NewMemberAddCommand() *cobra.Command

NewMemberAddCommand returns the cobra command for "member add".

func NewMemberCommand

func NewMemberCommand() *cobra.Command

NewMemberCommand returns the cobra command for "member".

func NewMemberListCommand

func NewMemberListCommand() *cobra.Command

NewMemberListCommand returns the cobra command for "member list".

func NewMemberRemoveCommand

func NewMemberRemoveCommand() *cobra.Command

NewMemberRemoveCommand returns the cobra command for "member remove".

func NewVersionCommand

func NewVersionCommand() *cobra.Command

NewVersionCommand prints out the version of etcd.

Types

type GlobalFlags

type GlobalFlags struct {
	Endpoint     string
	OutputFormat string
	IsHex        bool

	User     string
	Password string

	Debug bool
}

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