eoscli

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: Apache-2.0 Imports: 20 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CmdCluster = "clusters"
View Source
var CmdInfo = "info"
View Source
var CmdJoin = "join"
View Source
var CmdLeave = "leave"
View Source
var CmdStop = "stop"

Functions

func CheckPIDFILEAlreadyExists

func CheckPIDFILEAlreadyExists() bool

func ClearPid

func ClearPid()

func Cluster

func Cluster(x cli.ActionFunc) *cli.Command

func ClustersFunc

func ClustersFunc(c *cli.Context) error

ClustersFunc 获取集群列表

func Env

func Env(x cli.ActionFunc) *cli.Command

func EnvFunc

func EnvFunc(c *cli.Context) error

func Info

func Info(x cli.ActionFunc) *cli.Command

func InfoFunc

func InfoFunc(c *cli.Context) error

InfoFunc 获取节点信息

func Join

func Join(x cli.ActionFunc) *cli.Command

func JoinFunc

func JoinFunc(c *cli.Context) error

JoinFunc 加入集群

func Leave

func Leave(x cli.ActionFunc) *cli.Command

func LeaveFunc

func LeaveFunc(c *cli.Context) error

LeaveFunc 离开集群

func Restart

func Restart(x cli.ActionFunc) *cli.Command

func RestartFunc

func RestartFunc(c *cli.Context) error

func Start

func Start(x cli.ActionFunc) *cli.Command

func StartFunc

func StartFunc(c *cli.Context) error

StartFunc 开启节点

func StartMaster

func StartMaster(args []string, extra []*os.File) (*exec.Cmd, error)

func Stop

func Stop(stop cli.ActionFunc) *cli.Command

func StopFunc

func StopFunc(c *cli.Context) error

StopFunc 停止节点

Types

type App

type App struct {
	// contains filtered or unexported fields
}

func NewApp

func NewApp() *App

func (*App) AppendCommand

func (a *App) AppendCommand(cmd ...*cli.Command)

func (*App) Run

func (a *App) Run(args []string) error

type ICtiServiceClient

type ICtiServiceClient interface {
	service.CtiServiceClient
	io.Closer
}

Jump to

Keyboard shortcuts

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