host

package
v0.0.0-...-fb63ead Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: MIT Imports: 5 Imported by: 1

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 PingResult struct {
	Addr  string `json:"addr"`
	Error error  `json:"error"`
}

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)

type SSHResult

type SSHResult struct {
	Error error `json:"error"`
}

Jump to

Keyboard shortcuts

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