2014-01-15 14:36:13 -08:00
|
|
|
package sysinfo
|
|
|
|
|
2015-03-26 23:05:07 -04:00
|
|
|
// SysInfo stores information about which features a kernel supports.
|
2015-05-14 09:05:14 -07:00
|
|
|
// TODO Windows: Factor out platform specific capabilities.
|
2014-01-15 14:36:13 -08:00
|
|
|
type SysInfo struct {
|
2015-06-16 22:36:20 -04:00
|
|
|
AppArmor bool
|
|
|
|
*cgroupMemInfo
|
|
|
|
*cgroupCpuInfo
|
2015-06-17 09:19:11 +08:00
|
|
|
IPv4ForwardingDisabled bool
|
|
|
|
BridgeNfCallIptablesDisabled bool
|
|
|
|
BridgeNfCallIp6tablesDisabled bool
|
2015-06-16 22:36:20 -04:00
|
|
|
CgroupDevicesEnabled bool
|
|
|
|
}
|
|
|
|
|
|
|
|
type cgroupMemInfo struct {
|
2015-07-12 13:16:33 +05:30
|
|
|
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 14:36:13 -08:00
|
|
|
}
|