Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HostInfo ¶
type HostInfo struct {
PrivateKey string `json:"privateKey"`
Host string `json:"host"`
Port uint16 `json:"port"`
Username string `json:"username"`
Password string `json:"password"`
Passphrase string `json:"passphrase"`
}
func (*HostInfo) GetAuthMethods ¶
func (h *HostInfo) GetAuthMethods() []ssh.AuthMethod
type PingChecker ¶
type PingChecker struct {
// contains filtered or unexported fields
}
func NewPingChecker ¶
func NewPingChecker(host string) *PingChecker
func NewPingCheckerWithTimeout ¶
func NewPingCheckerWithTimeout(host string, timeout time.Duration) *PingChecker
func (*PingChecker) Check ¶
func (pc *PingChecker) Check() (result *health.Health)
type PingResult ¶
type SSHChecker ¶
type SSHChecker struct {
// contains filtered or unexported fields
}
func NewSSHChecker ¶
func NewSSHChecker(hostInfo *HostInfo) *SSHChecker
func NewSSHCheckerWithTimeout ¶
func NewSSHCheckerWithTimeout(hostInfo *HostInfo, timeout time.Duration) *SSHChecker
func (*SSHChecker) Check ¶
func (sc *SSHChecker) Check() (result *health.Health)
Click to show internal directories.
Click to hide internal directories.