2014-01-15 17:36:13 -05:00
|
|
|
package sysinfo
|
|
|
|
|
2015-03-26 23:05:07 -04:00
|
|
|
// SysInfo stores information about which features a kernel supports.
|
2015-05-14 12:05:14 -04:00
|
|
|
// TODO Windows: Factor out platform specific capabilities.
|
2014-01-15 17:36:13 -05:00
|
|
|
type SysInfo struct {
|
2015-06-16 22:36:20 -04:00
|
|
|
AppArmor bool
|
|
|
|
*cgroupMemInfo
|
|
|
|
*cgroupCpuInfo
|
2015-06-16 21:19:11 -04:00
|
|
|
IPv4ForwardingDisabled bool
|
|
|
|
BridgeNfCallIptablesDisabled bool
|
|
|
|
BridgeNfCallIp6tablesDisabled bool
|
2015-06-16 22:36:20 -04:00
|
|
|
CgroupDevicesEnabled bool
|
|
|
|
}
|
|
|
|
|
|
|
|
type cgroupMemInfo struct {
|
2015-07-12 03:46:33 -04:00
|
|
|
MemoryLimit bool
|
|
|
|
SwapLimit bool
|
|
|
|
OomKillDisable bool
|
|
|
|
MemorySwappiness bool
|
2015-06-16 22:36:20 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
type cgroupCpuInfo struct {
|
|
|
|
CpuCfsPeriod bool
|
|
|
|
CpuCfsQuota bool
|
2014-01-15 17:36:13 -05:00
|
|
|
}
|