etcd

package
v0.0.0-...-46d4b59 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	STATUS_SUBURI      = "/v2/stats/self"
	STATUS_METRIC_KEY  = "state"
	VERSION_SUBURI     = "/version"
	VARSION_METRIC_KEY = "etcdserver"
)

Variables

View Source
var (
	EtcdStatusMap = map[string]string{
		"StateLeader":   "leader",
		"StateFollower": "follower",
	}
)

Functions

func GetEtcdStatus

func GetEtcdStatus(caller *cobra.Command) (*interface{}, *tablewriter.Table, *cmderror.CmdError, cobrautil.ClUSTER_HEALTH_STATUS)

func NewEtcdCommand

func NewEtcdCommand() *cobra.Command

Types

type EtcdCommand

type EtcdCommand struct {
	basecmd.FinalCurveCmd
	// contains filtered or unexported fields
}

func NewStatusEtcdCommand

func NewStatusEtcdCommand() *EtcdCommand

func (*EtcdCommand) AddFlags

func (eCmd *EtcdCommand) AddFlags()

func (*EtcdCommand) Init

func (eCmd *EtcdCommand) Init(cmd *cobra.Command, args []string) error

func (*EtcdCommand) Print

func (eCmd *EtcdCommand) Print(cmd *cobra.Command, args []string) error

func (*EtcdCommand) ResultPlainOutput

func (eCmd *EtcdCommand) ResultPlainOutput() error

func (*EtcdCommand) RunCommand

func (eCmd *EtcdCommand) RunCommand(cmd *cobra.Command, args []string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL