import "github.com/etcd-io/etcd/etcdctl/ctlv3/command"
Package command is a set of libraries for etcd v3 commands.
alarm_command.go auth_command.go check.go compaction_command.go defrag_command.go del_command.go doc.go elect_command.go ep_command.go error.go get_command.go global.go lease_command.go lock_command.go make_mirror_command.go member_command.go migrate_command.go move_leader_command.go printer.go printer_fields.go printer_json.go printer_protobuf.go printer_simple.go printer_table.go put_command.go role_command.go snapshot_command.go txn_command.go user_command.go util.go version_command.go watch_command.go
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 )
NewAlarmCommand returns the cobra command for "alarm".
NewAuthCommand returns the cobra command for "auth".
NewCheckCommand returns the cobra command for "check".
NewCheckDatascaleCommand returns the cobra command for "check datascale".
NewCheckPerfCommand returns the cobra command for "check perf".
NewCompactionCommand returns the cobra command for "compaction".
NewDefragCommand returns the cobra command for "Defrag".
NewDelCommand returns the cobra command for "del".
NewElectCommand returns the cobra command for "elect".
NewEndpointCommand returns the cobra command for "endpoint".
NewGetCommand returns the cobra command for "get".
NewLeaseCommand returns the cobra command for "lease".
NewLeaseGrantCommand returns the cobra command for "lease grant".
NewLeaseKeepAliveCommand returns the cobra command for "lease keep-alive".
NewLeaseListCommand returns the cobra command for "lease list".
NewLeaseRevokeCommand returns the cobra command for "lease revoke".
NewLeaseTimeToLiveCommand returns the cobra command for "lease timetolive".
NewLockCommand returns the cobra command for "lock".
NewMakeMirrorCommand returns the cobra command for "makeMirror".
NewMemberAddCommand returns the cobra command for "member add".
NewMemberCommand returns the cobra command for "member".
NewMemberListCommand returns the cobra command for "member list".
NewMemberPromoteCommand returns the cobra command for "member promote".
NewMemberRemoveCommand returns the cobra command for "member remove".
NewMemberUpdateCommand returns the cobra command for "member update".
NewMigrateCommand returns the cobra command for "migrate".
NewMoveLeaderCommand returns the cobra command for "move-leader".
NewPutCommand returns the cobra command for "put".
NewRoleCommand returns the cobra command for "role".
NewSnapshotCommand returns the cobra command for "snapshot".
NewTxnCommand returns the cobra command for "txn".
NewUserCommand returns the cobra command for "user".
NewVersionCommand prints out the version of etcd.
NewWatchCommand returns the cobra command for "watch".
type GlobalFlags struct { Insecure bool InsecureSkipVerify bool InsecureDiscovery bool Endpoints []string DialTimeout time.Duration CommandTimeOut time.Duration KeepAliveTime time.Duration KeepAliveTimeout time.Duration DNSClusterServiceName string TLS transport.TLSInfo OutputFormat string IsHex bool User string Password string Debug bool }
GlobalFlags are flags that defined globally and are inherited to all sub-commands.
Package command imports 60 packages (graph). Updated 2019-12-06. Refresh now. Tools for package owners.