Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultDaemonPort = 30123 SudoDaemonPort = 30124 DaemonHttpPort = 30125 SudoDaemonHttpPort = 30126 )
Variables ¶
View Source
var ( Version = "1.0" CommitId = "" )
Functions ¶
func CopyNhctlBinaryToTmpDir ¶
CopyNhctlBinaryToTmpDir Copy nhctl binary to a tmpDir and return the path of nhctl in tmpDir
func StartDaemonServerBySubProcess ¶
StartDaemonServerBySubProcess Start daemon server from client
Types ¶
type CheckClusterStatus ¶
type DaemonServerInfo ¶
type DaemonServerStatusResponse ¶
type DaemonServerStatusResponse struct {
PortForwardList []*PortForwardProfile `json:"portForwardList"`
}
type PortForwardProfile ¶
type PortForwardProfile struct {
Cancel context.CancelFunc `json:"-"` // For canceling a port forward
StopCh chan error `json:"-"`
NameSpace string `json:"nameSpace"`
AppName string `json:"appName"`
SvcName string `json:"svcName"`
SvcType string `json:"svcType"`
Role string `json:"role"`
LocalPort int `json:"localPort"`
RemotePort int `json:"remotePort"`
}
Click to show internal directories.
Click to hide internal directories.