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 NewPutCommand() *cobra.Command
- func NewRangeCommand() *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 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 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.