Documentation
¶
Index ¶
- Variables
- func Command(s ServerEntity, cmd string, args []string) (string, error)
- func Exec(s ServerEntity, cmd string) (string, error)
- func GetVersion(s ServerEntity) (*pb.VersionRsp, error)
- func H2c(g *grpc.Server, h http.Handler) http.Handler
- func Kill(pid int, signal syscall.Signal) error
- func ListenAndServe(network, addr string) error
- func RegisterCommand(cmd string, f func(args []string) (string, error))
- func RegisterUpgradeService(s *grpc.Server)
- func Rollback(s ServerEntity, version string) (*pb.RollbackRsp, error)
- func Signal(s ServerEntity, signal int32) error
- func Update(s ServerEntity, path, tag string) error
- func UploadFile(s ServerEntity, path string) error
- type ServerEntity
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version = "Undefined" Branch = "Undefined" Commit = "Undefined" )
Functions ¶
func GetVersion ¶
func GetVersion(s ServerEntity) (*pb.VersionRsp, error)
func ListenAndServe ¶
func RegisterUpgradeService ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.