53b9b99e |
// +build !linux
|
4f0d95fa |
package oci // import "github.com/docker/docker/oci" |
53b9b99e |
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 |
005506d3 |
func Device(d *configs.Device) specs.LinuxDevice { return specs.LinuxDevice{} } |
53b9b99e |
// DevicesFromPath computes a list of devices and device permissions from paths (pathOnHost and pathInContainer) and cgroup permissions.
// Not implemented |
005506d3 |
func DevicesFromPath(pathOnHost, pathInContainer, cgroupPermissions string) (devs []specs.LinuxDevice, devPermissions []specs.LinuxDeviceCgroup, err error) { |
53b9b99e |
return nil, nil, errors.New("oci/devices: unsupported platform")
} |