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 NewPutCommand() *cobra.Command
- func NewRangeCommand() *cobra.Command
- func NewTxnCommand() *cobra.Command
- func NewVersionCommand() *cobra.Command
- func NewWatchCommand() *cobra.Command
- type GlobalFlags
Constants ¶
View Source
const ( // http://tldp.org/LDP/abs/html/exitcodes.html ExitSuccess = iota ExitError ExitBadConnection ExitInvalidInput // for txn, watch command 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 NewPutCommand ¶
NewPutCommand returns the cobra command for "put".
func NewRangeCommand ¶
NewRangeCommand returns the cobra command for "range".
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 ¶
type GlobalFlags struct {
Endpoints string
}
GlobalFlags are flags that defined globally and are inherited to all sub-commands.
Click to show internal directories.
Click to hide internal directories.