command

package
v2.3.0-alpha.0....-8199147 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2016 License: Apache-2.0 Imports: 13 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
	ExitBadArgs      = 128
)

Variables

This section is empty.

Functions

func ExitWithError

func ExitWithError(code int, err error)

func NewCompactionCommand

func NewCompactionCommand() *cobra.Command

NewCompactionCommand returns the cobra command for "compaction".

func NewDeleteRangeCommand

func NewDeleteRangeCommand() *cobra.Command

NewDeleteRangeCommand returns the cobra command for "deleteRange".

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 NewPutCommand

func NewPutCommand() *cobra.Command

NewPutCommand returns the cobra command for "put".

func NewRangeCommand

func NewRangeCommand() *cobra.Command

NewRangeCommand returns the cobra command for "range".

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
}

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