github.com/carlanton/docker@v1.8.0-rc1/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 MemorySwappiness bool 20 } 21 22 type cgroupCpuInfo struct { 23 CpuCfsPeriod bool 24 CpuCfsQuota bool 25 }