package oci
import "github.com/dotcloud/docker/oci"
Index ¶
- func DefaultSpec() specs.Spec
- func Device(d *configs.Device) specs.Device
- func DevicesFromPath(pathOnHost, pathInContainer, cgroupPermissions string) (devs []specs.Device, devPermissions []specs.DeviceCgroup, err error)
- func RemoveNamespace(s *specs.Spec, nsType specs.NamespaceType)
Functions ¶
func DefaultSpec ¶
func DefaultSpec() specs.Spec
DefaultSpec returns default oci spec used by docker.
func Device ¶
Device transforms a libcontainer configs.Device to a specs.Device object.
func DevicesFromPath ¶
func DevicesFromPath(pathOnHost, pathInContainer, cgroupPermissions string) (devs []specs.Device, devPermissions []specs.DeviceCgroup, 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.NamespaceType)
RemoveNamespace removes the `nsType` namespace from OCI spec `s`
Source Files ¶
defaults_linux.go devices_linux.go namespaces.go
- Version
- v1.13.0-rc6
- Published
- Jan 11, 2017
- Platform
- linux/amd64
- Imports
- 8 packages
- Last checked
- 1 minute ago –
Tools for package owners.