Documentation ¶
Index ¶
- func AllMachines(search string)
- func NewSftpClient(h *model.Machine) (*sftp.Client, error)
- func NewSshClient(h *model.Machine) (*ssh.Client, error)
- func RunProxy(h *model.Machine, localAddr, remoteAddr string) error
- func RunSocksProxy(h *model.Machine, port int) error
- func RunSshTerminal(h *model.Machine, sudoMode bool) error
- func ScpLR(h *model.Machine, localPath, remotePath string) error
- func ScpRL(h *model.Machine, remotePath, localPath string) error
- func ShowHardwareInfo(mac *model.Machine) error
- type CPUInfo
- type FSInfo
- type NetIntfInfo
- type SSHTerminal
- type Stats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllMachines ¶
func AllMachines(search string)
func ShowHardwareInfo ¶
Types ¶
type SSHTerminal ¶
type Stats ¶
type Stats struct { Uptime time.Duration Hostname string Load1 string Load5 string Load10 string RunningProcs string TotalProcs string MemTotal uint64 MemFree uint64 MemBuffers uint64 MemCached uint64 SwapTotal uint64 SwapFree uint64 FSInfos []FSInfo NetIntf map[string]NetIntfInfo CPU CPUInfo // or []CPUInfo to get all the cpu-core's stats? OsInfo string }
Click to show internal directories.
Click to hide internal directories.