mirror of
https://github.com/genuinetools/reg.git
synced 2024-09-17 16:11:01 -04:00
21 lines
725 B
Go
21 lines
725 B
Go
|
// +build !linux
|
||
|
|
||
|
package 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")
|
||
|
}
|