Versions in this module Expand all Collapse all v0 v0.4.0 Mar 28, 2017 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 Errno + const Kill + const Trace + const Trap + type Arg struct + Index uint + Op Operator + Value uint64 + ValueTwo uint64 + type Cgroup struct — linux/amd64 + AllowAllDevices bool + AllowedDevices []*Device + BlkioLeafWeight uint16 + BlkioThrottleReadBpsDevice []*ThrottleDevice + BlkioThrottleReadIOPSDevice []*ThrottleDevice + BlkioThrottleWriteBpsDevice []*ThrottleDevice + BlkioThrottleWriteIOPSDevice []*ThrottleDevice + BlkioWeight uint16 + BlkioWeightDevice []*WeightDevice + 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 Cgroup struct — windows/amd64 + type Command struct + Args []string + Dir string + Env []string + Path string + func (c Command) Run(s HookState) error + type CommandHook struct + func NewCommandHook(cmd Command) CommandHook + type Config struct + AdditionalGroups []string + AppArmorProfile string + Capabilities []string + Cgroups *Cgroup + Devices []*Device + GidMappings []IDMap + Hooks *Hooks + Hostname string + MaskPaths []string + MountLabel string + Mounts []*Mount + Namespaces Namespaces + Networks []*Network + NoPivotRoot bool + OomScoreAdj int + ParentDeathSignal int + PivotDir string + ProcessLabel string + ReadonlyPaths []string + Readonlyfs bool + Rlimits []Rlimit + RootPropagation int + Rootfs string + Routes []*Route + Seccomp *Seccomp + Sysctl map[string]string + UidMappings []IDMap + Version string + 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 — linux/amd64 + const Frozen + const Thawed + const Undefined + type FuncHook struct + func NewFunctionHook(f func(HookState) error) FuncHook + func (f FuncHook) Run(s HookState) error + type Hook interface + Run func(HookState) error + type HookState struct + ID string + Pid int + Root string + Version string + type Hooks struct + Poststart []Hook + Poststop []Hook + Prestart []Hook + type HugepageLimit struct + Limit uint64 + 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 + PropagationFlags []int + Relabel string + Source string + type Namespace struct — darwin/amd64, js/wasm, windows/amd64 + func (n *Namespace) Syscall() int + type Namespace struct — linux/amd64 + Path string + Type NamespaceType + func (n *Namespace) GetPath(pid int) string + 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 GreaterThan + const GreaterThanOrEqualTo + const LessThan + const LessThanOrEqualTo + 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 + Architectures []string + DefaultAction Action + Syscalls []*Syscall + type Syscall struct + Action Action + Args []*Arg + Name string + type ThrottleDevice struct + Rate uint64 + func NewThrottleDevice(major, minor int64, rate uint64) *ThrottleDevice + func (td *ThrottleDevice) String() string + type WeightDevice struct + LeafWeight uint16 + Weight uint16 + func NewWeightDevice(major, minor int64, weight, leafWeight uint16) *WeightDevice + func (wd *WeightDevice) LeafWeightString() string + func (wd *WeightDevice) WeightString() string