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