Documentation ¶
Index ¶
- func DefaultSpec() specs.Spec
- func Device(d *configs.Device) specs.LinuxDevice
- func DevicesFromPath(pathOnHost, pathInContainer, cgroupPermissions string) (devs []specs.LinuxDevice, devPermissions []specs.LinuxDeviceCgroup, err error)
- func RemoveNamespace(s *specs.Spec, nsType specs.LinuxNamespaceType)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultSpec ¶
func DefaultSpec() specs.Spec
DefaultSpec returns default oci spec used by docker.
func Device ¶
func Device(d *configs.Device) specs.LinuxDevice
Device transforms a libcontainer configs.Device to a specs.LinuxDevice object.
func DevicesFromPath ¶
func DevicesFromPath(pathOnHost, pathInContainer, cgroupPermissions string) (devs []specs.LinuxDevice, devPermissions []specs.LinuxDeviceCgroup, err error)
DevicesFromPath computes a list of devices and device permissions from paths (pathOnHost and pathInContainer) and cgroup permissions.
func RemoveNamespace ¶
func RemoveNamespace(s *specs.Spec, nsType specs.LinuxNamespaceType)
RemoveNamespace removes the `nsType` namespace from OCI spec `s`
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.