etcd: go.etcd.io/etcd/etcdctl/ctlv3/command Index | Files

package command

import "go.etcd.io/etcd/etcdctl/ctlv3/command"

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

Index

Package Files

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

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
)

func ExitWithError Uses

func ExitWithError(code int, err error)

func NewAlarmCommand Uses

func NewAlarmCommand() *cobra.Command

NewAlarmCommand returns the cobra command for "alarm".

func NewAlarmDisarmCommand Uses

func NewAlarmDisarmCommand() *cobra.Command

func NewAlarmListCommand Uses

func NewAlarmListCommand() *cobra.Command

func NewAuthCommand Uses

func NewAuthCommand() *cobra.Command

NewAuthCommand returns the cobra command for "auth".

func NewCheckCommand Uses

func NewCheckCommand() *cobra.Command

NewCheckCommand returns the cobra command for "check".

func NewCheckDatascaleCommand Uses

func NewCheckDatascaleCommand() *cobra.Command

NewCheckDatascaleCommand returns the cobra command for "check datascale".

func NewCheckPerfCommand Uses

func NewCheckPerfCommand() *cobra.Command

NewCheckPerfCommand returns the cobra command for "check perf".

func NewCompactionCommand Uses

func NewCompactionCommand() *cobra.Command

NewCompactionCommand returns the cobra command for "compaction".

func NewDefragCommand Uses

func NewDefragCommand() *cobra.Command

NewDefragCommand returns the cobra command for "Defrag".

func NewDelCommand Uses

func NewDelCommand() *cobra.Command

NewDelCommand returns the cobra command for "del".

func NewElectCommand Uses

func NewElectCommand() *cobra.Command

NewElectCommand returns the cobra command for "elect".

func NewEndpointCommand Uses

func NewEndpointCommand() *cobra.Command

NewEndpointCommand returns the cobra command for "endpoint".

func NewGetCommand Uses

func NewGetCommand() *cobra.Command

NewGetCommand returns the cobra command for "get".

func NewLeaseCommand Uses

func NewLeaseCommand() *cobra.Command

NewLeaseCommand returns the cobra command for "lease".

func NewLeaseGrantCommand Uses

func NewLeaseGrantCommand() *cobra.Command

NewLeaseGrantCommand returns the cobra command for "lease grant".

func NewLeaseKeepAliveCommand Uses

func NewLeaseKeepAliveCommand() *cobra.Command

NewLeaseKeepAliveCommand returns the cobra command for "lease keep-alive".

func NewLeaseListCommand Uses

func NewLeaseListCommand() *cobra.Command

NewLeaseListCommand returns the cobra command for "lease list".

func NewLeaseRevokeCommand Uses

func NewLeaseRevokeCommand() *cobra.Command

NewLeaseRevokeCommand returns the cobra command for "lease revoke".

func NewLeaseTimeToLiveCommand Uses

func NewLeaseTimeToLiveCommand() *cobra.Command

NewLeaseTimeToLiveCommand returns the cobra command for "lease timetolive".

func NewLockCommand Uses

func NewLockCommand() *cobra.Command

NewLockCommand returns the cobra command for "lock".

func NewMakeMirrorCommand Uses

func NewMakeMirrorCommand() *cobra.Command

NewMakeMirrorCommand returns the cobra command for "makeMirror".

func NewMemberAddCommand Uses

func NewMemberAddCommand() *cobra.Command

NewMemberAddCommand returns the cobra command for "member add".

func NewMemberCommand Uses

func NewMemberCommand() *cobra.Command

NewMemberCommand returns the cobra command for "member".

func NewMemberListCommand Uses

func NewMemberListCommand() *cobra.Command

NewMemberListCommand returns the cobra command for "member list".

func NewMemberPromoteCommand Uses

func NewMemberPromoteCommand() *cobra.Command

NewMemberPromoteCommand returns the cobra command for "member promote".

func NewMemberRemoveCommand Uses

func NewMemberRemoveCommand() *cobra.Command

NewMemberRemoveCommand returns the cobra command for "member remove".

func NewMemberUpdateCommand Uses

func NewMemberUpdateCommand() *cobra.Command

NewMemberUpdateCommand returns the cobra command for "member update".

func NewMigrateCommand Uses

func NewMigrateCommand() *cobra.Command

NewMigrateCommand returns the cobra command for "migrate".

func NewMoveLeaderCommand Uses

func NewMoveLeaderCommand() *cobra.Command

NewMoveLeaderCommand returns the cobra command for "move-leader".

func NewPrinter Uses

func NewPrinter(printerType string, isHex bool) printer

func NewPutCommand Uses

func NewPutCommand() *cobra.Command

NewPutCommand returns the cobra command for "put".

func NewRoleCommand Uses

func NewRoleCommand() *cobra.Command

NewRoleCommand returns the cobra command for "role".

func NewSnapshotCommand Uses

func NewSnapshotCommand() *cobra.Command

NewSnapshotCommand returns the cobra command for "snapshot".

func NewSnapshotRestoreCommand Uses

func NewSnapshotRestoreCommand() *cobra.Command

func NewSnapshotSaveCommand Uses

func NewSnapshotSaveCommand() *cobra.Command

func NewTxnCommand Uses

func NewTxnCommand() *cobra.Command

NewTxnCommand returns the cobra command for "txn".

func NewUserCommand Uses

func NewUserCommand() *cobra.Command

NewUserCommand returns the cobra command for "user".

func NewVersionCommand Uses

func NewVersionCommand() *cobra.Command

NewVersionCommand prints out the version of etcd.

func NewWatchCommand Uses

func NewWatchCommand() *cobra.Command

NewWatchCommand returns the cobra command for "watch".

type GlobalFlags Uses

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) and is imported by 10 packages. Updated 2019-06-14. Refresh now. Tools for package owners.