Documentation ¶
Overview ¶
Package command is a set of libraries for etcd v3 commands.
Index ¶
- Constants
- func ExitWithError(code int, err error)
- func NewCompactionCommand() *cobra.Command
- func NewDeleteRangeCommand() *cobra.Command
- func NewLeaseCommand() *cobra.Command
- func NewLeaseCreateCommand() *cobra.Command
- func NewLeaseKeepAliveCommand() *cobra.Command
- func NewLeaseRevokeCommand() *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 NewPutCommand() *cobra.Command
- func NewRangeCommand() *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 ¶
func NewCompactionCommand ¶
NewCompactionCommand returns the cobra command for "compaction".
func NewDeleteRangeCommand ¶
NewDeleteRangeCommand returns the cobra command for "deleteRange".
func NewLeaseCommand ¶
NewLeaseCommand returns the cobra command for "lease".
func NewLeaseCreateCommand ¶
NewLeaseCreateCommand returns the cobra command for "lease create".
func NewLeaseKeepAliveCommand ¶
NewLeaseKeepAliveCommand returns the cobra command for "lease keep-alive".
func NewLeaseRevokeCommand ¶
NewLeaseRevokeCommand returns the cobra command for "lease revoke".
func NewMakeMirrorCommand ¶
NewMakeMirrorCommand returns the cobra command for "makeMirror".
func NewMemberAddCommand ¶
NewMemberAddCommand returns the cobra command for "member add".
func NewMemberCommand ¶
NewMemberCommand returns the cobra command for "member".
func NewMemberListCommand ¶
NewMemberListCommand returns the cobra command for "member list".
func NewMemberRemoveCommand ¶
NewMemberRemoveCommand returns the cobra command for "member remove".
func NewMemberUpdateCommand ¶
NewMemberUpdateCommand returns the cobra command for "member update".
func NewPutCommand ¶
NewPutCommand returns the cobra command for "put".
func NewRangeCommand ¶
NewRangeCommand returns the cobra command for "range".
func NewSnapshotCommand ¶
NewSnapshotCommand returns the cobra command for "snapshot".
func NewTxnCommand ¶
NewTxnCommand returns the cobra command for "txn".
func NewVersionCommand ¶
NewVersionCommand prints out the version of etcd.
func NewWatchCommand ¶
NewWatchCommand returns the cobra command for "watch".
Types ¶
type GlobalFlags ¶
GlobalFlags are flags that defined globally and are inherited to all sub-commands.