github.com/chenchun/docker@v1.3.2-0.20150629222414-20467faf132b/pkg/sysinfo/sysinfo.go (about) 1 package sysinfo 2 3 // SysInfo stores information about which features a kernel supports. 4 // TODO Windows: Factor out platform specific capabilities. 5 type SysInfo struct { 6 AppArmor bool 7 *cgroupMemInfo 8 *cgroupCpuInfo 9 IPv4ForwardingDisabled bool 10 BridgeNfCallIptablesDisabled bool 11 BridgeNfCallIp6tablesDisabled bool 12 CgroupDevicesEnabled bool 13 } 14 15 type cgroupMemInfo struct { 16 MemoryLimit bool 17 SwapLimit bool 18 OomKillDisable bool 19 } 20 21 type cgroupCpuInfo struct { 22 CpuCfsPeriod bool 23 CpuCfsQuota bool 24 }