Documentation ¶
Index ¶
- Constants
- Variables
- func CheckVersion(version int64) bool
- type AllFs
- type Auth
- type DiskStat
- type DiskStats
- type FsInfo
- type FsSize
- type IoStat
- type Kernel
- type Match
- type Mem
- type Misc
- type Net
- type NetData
- type NetDev
- type Proc
- type ProcAll
- type ProcCommon
- type ProcLoad
- type ProcMatch
- type ProcStat
- type Process
- type Processes
- type Stat
- type User
Constants ¶
View Source
const KERNEL26_DISKSTATS_INDEX = 2
View Source
const PROC_AVG = "/proc/loadavg"
View Source
const PROC_CPUINFO = "/proc/cpuinfo"
View Source
const PROC_DIR = "/proc"
View Source
const PROC_DISKSTATS = "/proc/diskstats"
View Source
const PROC_MEMNFO = "/proc/meminfo"
View Source
const PROC_NET_DATA = "/proc/net/dev"
View Source
const PROC_PARTITIONS = "/proc/partitions"
View Source
const PROC_STAT = "/proc/stat"
View Source
const PROC_SYS_KERNEL_HOSTNAME = "/proc/sys/kernel/hostname"
View Source
const PROC_SYS_KERNEL_OS = "/proc/sys/kernel/osrelease"
View Source
const PROC_UPTIME = "/proc/uptime"
View Source
const ProcMount = "/proc/mounts"
ProcMount where to find the information in os
Variables ¶
View Source
var ValidFSList = []string{"ext2", "ext3", "ext4", "btrfs", "xfs", "gfs", "ntfs", "vfat"}
ValidFSList List of valid fs format to export
Functions ¶
func CheckVersion ¶
Types ¶
type ProcAll ¶
type ProcCommon ¶
type ProcCommon interface { Init() Update() }
type Process ¶
type Process struct { Pid int64 ParentPid int64 Comm string State string Cmdline string Stat map[string]int64 Statm map[string]int64 Diff map[string]int64 User User Group User ProcLoad float32 MemLoad float32 StartTime int64 Hostname string HostId string TimeStamp string // contains filtered or unexported fields }
type Processes ¶
type Processes struct { /* all map[int64]*Process All []*Process */ List map[string]*Process Time int64 TimePrev int64 }
Processes struct to contain all processes fnformation
Click to show internal directories.
Click to hide internal directories.