sdk

package
v0.0.0-...-918400c Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version = "Undefined"
	Branch  = "Undefined"
	Commit  = "Undefined"
)

Functions

func Command

func Command(s ServerEntity, cmd string, args []string) (string, error)

func Exec

func Exec(s ServerEntity, cmd string) (string, error)

func GetVersion

func GetVersion(s ServerEntity) (*pb.VersionRsp, error)

func H2c

func H2c(g *grpc.Server, h http.Handler) http.Handler

func Kill

func Kill(pid int, signal syscall.Signal) error

func ListenAndServe

func ListenAndServe(network, addr string) error

func RegisterCommand

func RegisterCommand(cmd string, f func(args []string) (string, error))

func RegisterUpgradeService

func RegisterUpgradeService(s *grpc.Server)

func Rollback

func Rollback(s ServerEntity, version string) (*pb.RollbackRsp, error)

func Signal

func Signal(s ServerEntity, signal int32) error

func Update

func Update(s ServerEntity, path, tag string) error

func UploadFile

func UploadFile(s ServerEntity, path string) error

Types

type ServerEntity

type ServerEntity struct {
	Addr string
	Tag  []string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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