package command

import "github.com/coreos/etcd/etcdctlv3/command"

Package command is a set of libraries for etcd v3 commands.

Index

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
)

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 NewMakeMirrorCommand

func NewMakeMirrorCommand() *cobra.Command

NewMakeMirrorCommand returns the cobra command for "makeMirror".

func NewMemberAddCommand

func NewMemberAddCommand() *cobra.Command

NewMemberAddCommand returns the cobra command for "member add".

func NewMemberCommand

func NewMemberCommand() *cobra.Command

NewMemberCommand returns the cobra command for "member".

func NewMemberListCommand

func NewMemberListCommand() *cobra.Command

NewMemberListCommand returns the cobra command for "member list".

func NewMemberRemoveCommand

func NewMemberRemoveCommand() *cobra.Command

NewMemberRemoveCommand returns the cobra command for "member remove".

func NewMemberUpdateCommand

func NewMemberUpdateCommand() *cobra.Command

NewMemberUpdateCommand returns the cobra command for "member update".

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 NewSnapshotCommand

func NewSnapshotCommand() *cobra.Command

NewSnapshotCommand returns the cobra command for "snapshot".

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
	TLS       transport.TLSInfo
}

GlobalFlags are flags that defined globally and are inherited to all sub-commands.

Source Files

compaction_command.go delete_range_command.go doc.go error.go global.go lease_command.go make_mirror_command.go member_command.go put_command.go range_command.go snapshot_command.go txn_command.go version_command.go watch_command.go

Version
v2.3.0-alpha.1+incompatible
Published
Feb 17, 2016
Platform
js/wasm
Imports
20 packages
Last checked
1 day ago

Tools for package owners.