a1150245cc
Movified from686be57d0a
, and re-ran gofmt again to address for files not present in 20.10 and vice-versa. Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit686be57d0a
) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
21 lines
784 B
Go
21 lines
784 B
Go
//go:build !linux
|
|
// +build !linux
|
|
|
|
package oci // import "github.com/docker/docker/oci"
|
|
|
|
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
|
|
func Device(d *configs.Device) specs.LinuxDevice { return specs.LinuxDevice{} }
|
|
|
|
// DevicesFromPath computes a list of devices and device permissions from paths (pathOnHost and pathInContainer) and cgroup permissions.
|
|
// Not implemented
|
|
func DevicesFromPath(pathOnHost, pathInContainer, cgroupPermissions string) (devs []specs.LinuxDevice, devPermissions []specs.LinuxDeviceCgroup, err error) {
|
|
return nil, nil, errors.New("oci/devices: unsupported platform")
|
|
}
|