Documentation ¶
Overview ¶
Package command is a set of libraries for etcd v3 commands.
Index ¶
- Constants
- func ExitWithError(code int, err error)
- func NewAuthCommand() *cobra.Command
- func NewAuthEnableCommand() *cobra.Command
- func NewCompactionCommand() *cobra.Command
- func NewDefragCommand() *cobra.Command
- func NewDelCommand() *cobra.Command
- func NewElectCommand() *cobra.Command
- func NewGetCommand() *cobra.Command
- func NewLeaseCommand() *cobra.Command
- func NewLeaseCreateCommand() *cobra.Command
- func NewLeaseKeepAliveCommand() *cobra.Command
- func NewLeaseRevokeCommand() *cobra.Command
- func NewLockCommand() *cobra.Command
- func NewMakeMirrorCommand() *cobra.Command
- func NewMemberAddCommand() *cobra.Command
- func NewMemberCommand() *cobra.Command
- func NewMemberListCommand() *cobra.Command
- func NewMemberRemoveCommand() *cobra.Command
- func NewMemberUpdateCommand() *cobra.Command
- func NewPrinter(printerType string, isHex bool) printer
- func NewPutCommand() *cobra.Command
- func NewSnapshotCommand() *cobra.Command
- func NewTxnCommand() *cobra.Command
- func NewVersionCommand() *cobra.Command
- func NewWatchCommand() *cobra.Command
- type GlobalFlags
Constants ¶
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 ¶ added in v2.3.0
func NewAuthCommand ¶ added in v2.3.0
NewAuthCommand returns the cobra command for "auth".
func NewAuthEnableCommand ¶ added in v2.3.0
func NewCompactionCommand ¶ added in v2.3.0
NewCompactionCommand returns the cobra command for "compaction".
func NewDefragCommand ¶ added in v2.3.0
NewDefragCommand returns the cobra command for "Defrag".
func NewDelCommand ¶ added in v2.3.0
NewDelCommand returns the cobra command for "del".
func NewElectCommand ¶ added in v2.3.0
NewElectCommand returns the cobra command for "elect".
func NewGetCommand ¶ added in v2.3.0
NewGetCommand returns the cobra command for "get".
func NewLeaseCommand ¶ added in v2.3.0
NewLeaseCommand returns the cobra command for "lease".
func NewLeaseCreateCommand ¶ added in v2.3.0
NewLeaseCreateCommand returns the cobra command for "lease create".
func NewLeaseKeepAliveCommand ¶ added in v2.3.0
NewLeaseKeepAliveCommand returns the cobra command for "lease keep-alive".
func NewLeaseRevokeCommand ¶ added in v2.3.0
NewLeaseRevokeCommand returns the cobra command for "lease revoke".
func NewLockCommand ¶ added in v2.3.0
NewLockCommand returns the cobra command for "lock".
func NewMakeMirrorCommand ¶ added in v2.3.0
NewMakeMirrorCommand returns the cobra command for "makeMirror".
func NewMemberAddCommand ¶ added in v2.3.0
NewMemberAddCommand returns the cobra command for "member add".
func NewMemberCommand ¶ added in v2.3.0
NewMemberCommand returns the cobra command for "member".
func NewMemberListCommand ¶ added in v2.3.0
NewMemberListCommand returns the cobra command for "member list".
func NewMemberRemoveCommand ¶ added in v2.3.0
NewMemberRemoveCommand returns the cobra command for "member remove".
func NewMemberUpdateCommand ¶ added in v2.3.0
NewMemberUpdateCommand returns the cobra command for "member update".
func NewPrinter ¶ added in v2.3.0
func NewPutCommand ¶
NewPutCommand returns the cobra command for "put".
func NewSnapshotCommand ¶ added in v2.3.0
NewSnapshotCommand returns the cobra command for "snapshot".
func NewTxnCommand ¶
NewTxnCommand returns the cobra command for "txn".
func NewVersionCommand ¶ added in v2.3.0
NewVersionCommand prints out the version of etcd.
func NewWatchCommand ¶ added in v2.3.0
NewWatchCommand returns the cobra command for "watch".
Types ¶
Source Files ¶
- auth_command.go
- compaction_command.go
- defrag_command.go
- del_command.go
- doc.go
- elect_command.go
- error.go
- get_command.go
- global.go
- lease_command.go
- lock_command.go
- make_mirror_command.go
- member_command.go
- printer.go
- put_command.go
- snapshot_command.go
- txn_command.go
- util.go
- version_command.go
- watch_command.go