command

package
v2.3.4+incompatible Latest Latest
Warning

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

Go to latest
Published: May 12, 2016 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Overview

Package command is a set of libraries for etcd v3 commands.

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 NewAuthCommand

func NewAuthCommand() *cobra.Command

NewAuthCommand returns the cobra command for "auth".

func NewAuthEnableCommand

func NewAuthEnableCommand() *cobra.Command

func NewCompactionCommand

func NewCompactionCommand() *cobra.Command

NewCompactionCommand returns the cobra command for "compaction".

func NewDefragCommand

func NewDefragCommand() *cobra.Command

NewDefragCommand returns the cobra command for "Defrag".

func NewDelCommand

func NewDelCommand() *cobra.Command

NewDelCommand returns the cobra command for "del".

func NewElectCommand

func NewElectCommand() *cobra.Command

NewElectCommand returns the cobra command for "elect".

func NewGetCommand

func NewGetCommand() *cobra.Command

NewGetCommand returns the cobra command for "get".

func NewLeaseCommand

func NewLeaseCommand() *cobra.Command

NewLeaseCommand returns the cobra command for "lease".

func NewLeaseCreateCommand

func NewLeaseCreateCommand() *cobra.Command

NewLeaseCreateCommand returns the cobra command for "lease create".

func NewLeaseKeepAliveCommand

func NewLeaseKeepAliveCommand() *cobra.Command

NewLeaseKeepAliveCommand returns the cobra command for "lease keep-alive".

func NewLeaseRevokeCommand

func NewLeaseRevokeCommand() *cobra.Command

NewLeaseRevokeCommand returns the cobra command for "lease revoke".

func NewLockCommand

func NewLockCommand() *cobra.Command

NewLockCommand returns the cobra command for "lock".

func NewMakeMirrorCommand

func NewMakeMirrorCommand() *cobra.Command

NewMakeMirrorCommand returns the cobra command for "makeMirror".

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 NewMemberUpdateCommand

func NewMemberUpdateCommand() *cobra.Command

NewMemberUpdateCommand returns the cobra command for "member update".

func NewPrinter

func NewPrinter(printerType string, isHex bool) printer

func NewPutCommand

func NewPutCommand() *cobra.Command

NewPutCommand returns the cobra command for "put".

func NewSnapshotCommand

func NewSnapshotCommand() *cobra.Command

NewSnapshotCommand returns the cobra command for "snapshot".

func NewTxnCommand

func NewTxnCommand() *cobra.Command

NewTxnCommand returns the cobra command for "txn".

func NewVersionCommand

func NewVersionCommand() *cobra.Command

NewVersionCommand prints out the version of etcd.

func NewWatchCommand

func NewWatchCommand() *cobra.Command

NewWatchCommand returns the cobra command for "watch".

Types

type GlobalFlags

type GlobalFlags struct {
	Endpoints []string

	TLS transport.TLSInfo

	OutputFormat string
	IsHex        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