oci

package
v1.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2017 License: Apache-2.0 Imports: 8 Imported by: 305

Documentation

Index

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 added in v1.13.0

func Device(d *configs.Device) specs.Device

Device transforms a libcontainer configs.Device to a specs.Device object.

func DevicesFromPath added in v1.13.0

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 added in v1.13.0

func RemoveNamespace(s *specs.Spec, nsType specs.NamespaceType)

RemoveNamespace removes the `nsType` namespace from OCI spec `s`

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL