2016-11-16 19:18:43 -05:00
|
|
|
// +build !linux
|
|
|
|
|
2018-02-05 16:05:59 -05:00
|
|
|
package oci // import "github.com/docker/docker/oci"
|
2016-11-16 19:18:43 -05:00
|
|
|
|
|
|
|
import (
|
|
|
|
"errors"
|
|
|
|
|
|
|
|
"github.com/opencontainers/runc/libcontainer/configs"
|
|
|
|
specs "github.com/opencontainers/runtime-spec/specs-go"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Device transforms a libcontainer configs.Device to a specs.Device object.
|
|
|
|
// Not implemented
|
2017-04-27 17:52:47 -04:00
|
|
|
func Device(d *configs.Device) specs.LinuxDevice { return specs.LinuxDevice{} }
|
2016-11-16 19:18:43 -05:00
|
|
|
|
|
|
|
// DevicesFromPath computes a list of devices and device permissions from paths (pathOnHost and pathInContainer) and cgroup permissions.
|
|
|
|
// Not implemented
|
2017-04-27 17:52:47 -04:00
|
|
|
func DevicesFromPath(pathOnHost, pathInContainer, cgroupPermissions string) (devs []specs.LinuxDevice, devPermissions []specs.LinuxDeviceCgroup, err error) {
|
2016-11-16 19:18:43 -05:00
|
|
|
return nil, nil, errors.New("oci/devices: unsupported platform")
|
|
|
|
}
|