Versions in this module Expand all Collapse all v0 v0.0.3 Aug 4, 2015 v0.0.2 Jul 17, 2015 v0.0.1 Jul 16, 2015 Changes in this version + const Wildcard + var DefaultAllowedDevices = append([]*Device{ ... }, DefaultSimpleDevices) — linux/amd64 + var DefaultAutoCreatedDevices = append([]*Device{ ... }, DefaultSimpleDevices) — linux/amd64 + var DefaultSimpleDevices = []*Device — linux/amd64 + type Action int + const Allow + const Kill + const Trap + type Arg struct + Index int + Op Operator + Value uint32 + type Cgroup struct + AllowAllDevices bool + AllowedDevices []*Device + BlkioThrottleReadBpsDevice string + BlkioThrottleReadIOpsDevice string + BlkioThrottleWriteBpsDevice string + BlkioThrottleWriteIOpsDevice string + BlkioWeight int64 + BlkioWeightDevice string + CpuPeriod int64 + CpuQuota int64 + CpuRtPeriod int64 + CpuRtRuntime int64 + CpuShares int64 + CpusetCpus string + CpusetMems string + DeniedDevices []*Device + Freezer FreezerState + HugetlbLimit []*HugepageLimit + KernelMemory int64 + Memory int64 + MemoryReservation int64 + MemorySwap int64 + MemorySwappiness int64 + Name string + NetClsClassid string + NetPrioIfpriomap []*IfPrioMap + OomKillDisable bool + Parent string + Slice string + type Command struct + Args []string + Dir string + Env []string + Path string + type Config struct + AdditionalGroups []string + AppArmorProfile string + Capabilities []string + Cgroups *Cgroup + Devices []*Device + GidMappings []IDMap + Hostname string + MaskPaths []string + MountLabel string + Mounts []*Mount + Namespaces Namespaces + Networks []*Network + NoPivotRoot bool + ParentDeathSignal int + PivotDir string + Privatefs bool + ProcessLabel string + ReadonlyPaths []string + Readonlyfs bool + Rlimits []Rlimit + Rootfs string + Routes []*Route + Seccomp *Seccomp + Sysctl map[string]string + UidMappings []IDMap + func (c Config) HostGID() (int, error) + func (c Config) HostUID() (int, error) + type Device struct + FileMode os.FileMode + Gid uint32 + Major int64 + Minor int64 + Path string + Permissions string + Type rune + Uid uint32 + func (d *Device) CgroupString() string + func (d *Device) Mkdev() int + type FreezerState string + const Frozen + const Thawed + const Undefined + type HugepageLimit struct + Limit int + Pagesize string + type IDMap struct + ContainerID int + HostID int + Size int + type IfPrioMap struct + Interface string + Priority int64 + func (i *IfPrioMap) CgroupString() string + type Mount struct + Data string + Destination string + Device string + Flags int + PostmountCmds []Command + PremountCmds []Command + Relabel string + Source string + type Namespace struct — linux/amd64, windows/amd64 + Path string + Type NamespaceType + func (n *Namespace) GetPath(pid int) string + func (n *Namespace) Syscall() int + type NamespaceType string + const NEWIPC + const NEWNET + const NEWNS + const NEWPID + const NEWUSER + const NEWUTS + func NamespaceTypes() []NamespaceType + type Namespaces []Namespace + func (n *Namespaces) Add(t NamespaceType, path string) + func (n *Namespaces) CloneFlags() uintptr + func (n *Namespaces) Contains(t NamespaceType) bool + func (n *Namespaces) Remove(t NamespaceType) bool + type Network struct + Address string + Bridge string + Gateway string + HairpinMode bool + HostInterfaceName string + IPv6Address string + IPv6Gateway string + MacAddress string + Mtu int + Name string + TxQueueLen int + Type string + type Operator int + const EqualTo + const GreatherThan + const LessThan + const MaskEqualTo + const NotEqualTo + type Rlimit struct + Hard uint64 + Soft uint64 + Type int + type Route struct + Destination string + Gateway string + InterfaceName string + Source string + type Seccomp struct + Syscalls []*Syscall + type Syscall struct + Action Action + Args []*Arg + Value int