Documentation
¶
Index ¶
- type ConnectWithProc
- func (c *ConnectWithProc) CheckSftpClient() bool
- func (c *ConnectWithProc) CloseSftpClient() error
- func (c *ConnectWithProc) CreateSftpClient() error
- func (p *ConnectWithProc) ListInPID(path string) ([]uint64, error)
- func (p *ConnectWithProc) ListPID(path string, max uint64) ([]uint64, error)
- func (p *ConnectWithProc) NetIPv4Decoder(s string) (string, error)
- func (p *ConnectWithProc) NetIPv6Decoder(s string) (string, error)
- func (p *ConnectWithProc) ReadCPUInfo(path string) (*proc.CPUInfo, error)
- func (p *ConnectWithProc) ReadData(path string) (string, error)
- func (p *ConnectWithProc) ReadDisk(path string) (*proc.Disk, error)
- func (p *ConnectWithProc) ReadDiskStats(path string) ([]proc.DiskStat, error)
- func (p *ConnectWithProc) ReadFibTrie(procFibTriePath string, procRoutePath string) (data []IPv4, err error)
- func (p *ConnectWithProc) ReadIfInet6(path string) (data []IPv6, err error)
- func (p *ConnectWithProc) ReadInterrupts(path string) (*proc.Interrupts, error)
- func (p *ConnectWithProc) ReadLoadAvg(path string) (*proc.LoadAvg, error)
- func (p *ConnectWithProc) ReadMaxPID(path string) (uint64, error)
- func (p *ConnectWithProc) ReadMemInfo(path string) (*proc.MemInfo, error)
- func (p *ConnectWithProc) ReadMounts(path string) (*proc.Mounts, error)
- func (p *ConnectWithProc) ReadNetStat(path string) (*proc.NetStat, error)
- func (p *ConnectWithProc) ReadNetTCPSockets(path string, ip proc.NetIPDecoder) (*proc.NetTCPSockets, error)
- func (p *ConnectWithProc) ReadNetUDPSockets(path string, ip proc.NetIPDecoder) (*proc.NetUDPSockets, error)
- func (p *ConnectWithProc) ReadNetUnixDomainSockets(fpath string) (*proc.NetUnixDomainSockets, error)
- func (p *ConnectWithProc) ReadNetworkStat(path string) ([]proc.NetworkStat, error)
- func (p *ConnectWithProc) ReadProcess(pid uint64, path string) (*proc.Process, error)
- func (p *ConnectWithProc) ReadProcessCmdline(path string) (string, error)
- func (p *ConnectWithProc) ReadProcessIO(path string) (*proc.ProcessIO, error)
- func (p *ConnectWithProc) ReadProcessPassPermission(pid uint64, path string) (*proc.Process, error)
- func (p *ConnectWithProc) ReadProcessSchedStat(path string) (*proc.ProcessSchedStat, error)
- func (p *ConnectWithProc) ReadProcessStat(path string) (*proc.ProcessStat, error)
- func (p *ConnectWithProc) ReadProcessStatm(path string) (*proc.ProcessStatm, error)
- func (p *ConnectWithProc) ReadProcessStatus(path string) (*proc.ProcessStatus, error)
- func (p *ConnectWithProc) ReadSnmp(path string) (*proc.Snmp, error)
- func (p *ConnectWithProc) ReadSockStat(path string) (*proc.SockStat, error)
- func (p *ConnectWithProc) ReadStat(path string) (*proc.Stat, error)
- func (p *ConnectWithProc) ReadUptime(path string) (*proc.Uptime, error)
- func (p *ConnectWithProc) ReadVMStat(path string) (*proc.VMStat, error)
- type IPv4
- type IPv6
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectWithProc ¶
func (*ConnectWithProc) CheckSftpClient ¶
func (c *ConnectWithProc) CheckSftpClient() bool
func (*ConnectWithProc) CloseSftpClient ¶
func (c *ConnectWithProc) CloseSftpClient() error
func (*ConnectWithProc) CreateSftpClient ¶
func (c *ConnectWithProc) CreateSftpClient() error
func (*ConnectWithProc) ListInPID ¶
func (p *ConnectWithProc) ListInPID(path string) ([]uint64, error)
In ListPID, the pid is obtained by looping the specified number, but since this is slow to handle via ssh. It be handled by extracting the path that only has numbers under `/proc`.
func (*ConnectWithProc) ListPID ¶
func (p *ConnectWithProc) ListPID(path string, max uint64) ([]uint64, error)
func (*ConnectWithProc) NetIPv4Decoder ¶
func (p *ConnectWithProc) NetIPv4Decoder(s string) (string, error)
NetIPv4Decoder decodes an IPv4 address with port from a given hex string NOTE: This function match NetIPDecoder type
func (*ConnectWithProc) NetIPv6Decoder ¶
func (p *ConnectWithProc) NetIPv6Decoder(s string) (string, error)
NetIPv6Decoder decodes an IPv6 address with port from a given hex string NOTE: This function match NetIPDecoder type
func (*ConnectWithProc) ReadCPUInfo ¶
func (p *ConnectWithProc) ReadCPUInfo(path string) (*proc.CPUInfo, error)
func (*ConnectWithProc) ReadDisk ¶
func (p *ConnectWithProc) ReadDisk(path string) (*proc.Disk, error)
func (*ConnectWithProc) ReadDiskStats ¶
func (p *ConnectWithProc) ReadDiskStats(path string) ([]proc.DiskStat, error)
ReadDiskStats reads and parses the file.
Note: * Assumes a well formed file and will panic if it isn't.
func (*ConnectWithProc) ReadFibTrie ¶
func (p *ConnectWithProc) ReadFibTrie(procFibTriePath string, procRoutePath string) (data []IPv4, err error)
func (*ConnectWithProc) ReadIfInet6 ¶
func (p *ConnectWithProc) ReadIfInet6(path string) (data []IPv6, err error)
func (*ConnectWithProc) ReadInterrupts ¶
func (p *ConnectWithProc) ReadInterrupts(path string) (*proc.Interrupts, error)
func (*ConnectWithProc) ReadLoadAvg ¶
func (p *ConnectWithProc) ReadLoadAvg(path string) (*proc.LoadAvg, error)
func (*ConnectWithProc) ReadMaxPID ¶
func (p *ConnectWithProc) ReadMaxPID(path string) (uint64, error)
func (*ConnectWithProc) ReadMemInfo ¶
func (p *ConnectWithProc) ReadMemInfo(path string) (*proc.MemInfo, error)
func (*ConnectWithProc) ReadMounts ¶
func (p *ConnectWithProc) ReadMounts(path string) (*proc.Mounts, error)
func (*ConnectWithProc) ReadNetStat ¶
func (p *ConnectWithProc) ReadNetStat(path string) (*proc.NetStat, error)
func (*ConnectWithProc) ReadNetTCPSockets ¶
func (p *ConnectWithProc) ReadNetTCPSockets(path string, ip proc.NetIPDecoder) (*proc.NetTCPSockets, error)
func (*ConnectWithProc) ReadNetUDPSockets ¶
func (p *ConnectWithProc) ReadNetUDPSockets(path string, ip proc.NetIPDecoder) (*proc.NetUDPSockets, error)
func (*ConnectWithProc) ReadNetUnixDomainSockets ¶
func (p *ConnectWithProc) ReadNetUnixDomainSockets(fpath string) (*proc.NetUnixDomainSockets, error)
func (*ConnectWithProc) ReadNetworkStat ¶
func (p *ConnectWithProc) ReadNetworkStat(path string) ([]proc.NetworkStat, error)
func (*ConnectWithProc) ReadProcess ¶
func (*ConnectWithProc) ReadProcessCmdline ¶
func (p *ConnectWithProc) ReadProcessCmdline(path string) (string, error)
func (*ConnectWithProc) ReadProcessIO ¶
func (p *ConnectWithProc) ReadProcessIO(path string) (*proc.ProcessIO, error)
func (*ConnectWithProc) ReadProcessPassPermission ¶
func (*ConnectWithProc) ReadProcessSchedStat ¶
func (p *ConnectWithProc) ReadProcessSchedStat(path string) (*proc.ProcessSchedStat, error)
func (*ConnectWithProc) ReadProcessStat ¶
func (p *ConnectWithProc) ReadProcessStat(path string) (*proc.ProcessStat, error)
func (*ConnectWithProc) ReadProcessStatm ¶
func (p *ConnectWithProc) ReadProcessStatm(path string) (*proc.ProcessStatm, error)
func (*ConnectWithProc) ReadProcessStatus ¶
func (p *ConnectWithProc) ReadProcessStatus(path string) (*proc.ProcessStatus, error)
func (*ConnectWithProc) ReadSnmp ¶
func (p *ConnectWithProc) ReadSnmp(path string) (*proc.Snmp, error)
func (*ConnectWithProc) ReadSockStat ¶
func (p *ConnectWithProc) ReadSockStat(path string) (*proc.SockStat, error)
func (*ConnectWithProc) ReadStat ¶
func (p *ConnectWithProc) ReadStat(path string) (*proc.Stat, error)
func (*ConnectWithProc) ReadUptime ¶
func (p *ConnectWithProc) ReadUptime(path string) (*proc.Uptime, error)
func (*ConnectWithProc) ReadVMStat ¶
func (p *ConnectWithProc) ReadVMStat(path string) (*proc.VMStat, error)
Source Files
¶
- cpuinfo.go
- disk.go
- diskstat.go
- interrupts.go
- kernel_version.go
- loadavg.go
- meminfo.go
- mounts.go
- net_fib_trie.go
- net_if_inet6.go
- net_ip.go
- net_tcp.go
- net_udp.go
- net_unix.go
- netstat.go
- network_stat.go
- process.go
- process_cmdline.go
- process_io.go
- process_pid.go
- process_sched_stat.go
- process_stat.go
- process_statm.go
- process_status.go
- snmp.go
- sockstat.go
- sshproc.go
- stat.go
- uptime.go
- vmstat.go
Click to show internal directories.
Click to hide internal directories.