package sysinfo
import "github.com/dotcloud/docker/pkg/sysinfo"
Index ¶
Types ¶
type SysInfo ¶
type SysInfo struct { // Whether the kernel supports AppArmor or not AppArmor bool // Whether IPv4 forwarding is supported or not, if this was disabled, networking will not work IPv4ForwardingDisabled bool // Whether bridge-nf-call-iptables is supported or not BridgeNfCallIptablesDisabled bool // Whether bridge-nf-call-ip6tables is supported or not BridgeNfCallIP6tablesDisabled bool // Whether the cgroup has the mountpoint of "devices" or not CgroupDevicesEnabled bool // contains filtered or unexported fields }
SysInfo stores information about which features a kernel supports. TODO Windows: Factor out platform specific capabilities.
func (SysInfo) IsCpusetCpusAvailable ¶
IsCpusetCpusAvailable returns `true` if the provided string set is contained in cgroup's cpuset.cpus set, `false` otherwise. If error is not nil a parsing error occurred.
func (SysInfo) IsCpusetMemsAvailable ¶
IsCpusetMemsAvailable returns `true` if the provided string set is contained in cgroup's cpuset.mems set, `false` otherwise. If error is not nil a parsing error occurred.
Source Files ¶
- Version
- v1.9.0-rc3
- Published
- Oct 28, 2015
- Platform
- js/wasm
- Imports
- 1 packages
- Last checked
- 1 second ago –
Tools for package owners.