cleanup sysinfo package
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
parent
ba8bb0c1d7
commit
d89616fb64
3 changed files with 139 additions and 76 deletions
|
@ -3,13 +3,22 @@ package sysinfo
|
|||
// SysInfo stores information about which features a kernel supports.
|
||||
// TODO Windows: Factor out platform specific capabilities.
|
||||
type SysInfo struct {
|
||||
MemoryLimit bool
|
||||
SwapLimit bool
|
||||
CpuCfsPeriod bool
|
||||
CpuCfsQuota bool
|
||||
AppArmor bool
|
||||
*cgroupMemInfo
|
||||
*cgroupCpuInfo
|
||||
IPv4ForwardingDisabled bool
|
||||
AppArmor bool
|
||||
OomKillDisable bool
|
||||
BridgeNfCallIptablesDisabled bool
|
||||
BridgeNfCallIp6tablesDisabled bool
|
||||
CgroupDevicesEnabled bool
|
||||
}
|
||||
|
||||
type cgroupMemInfo struct {
|
||||
MemoryLimit bool
|
||||
SwapLimit bool
|
||||
OomKillDisable bool
|
||||
}
|
||||
|
||||
type cgroupCpuInfo struct {
|
||||
CpuCfsPeriod bool
|
||||
CpuCfsQuota bool
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue