github.com/docker/docker@v299999999.0.0-20200612211812-aaf470eca7b5+incompatible/oci/devices_unsupported.go (about)

     1  // +build !linux
     2  
     3  package oci // import "github.com/docker/docker/oci"
     4  
     5  import (
     6  	"errors"
     7  
     8  	"github.com/opencontainers/runc/libcontainer/configs"
     9  	specs "github.com/opencontainers/runtime-spec/specs-go"
    10  )
    11  
    12  // Device transforms a libcontainer configs.Device to a specs.Device object.
    13  // Not implemented
    14  func Device(d *configs.Device) specs.LinuxDevice { return specs.LinuxDevice{} }
    15  
    16  // DevicesFromPath computes a list of devices and device permissions from paths (pathOnHost and pathInContainer) and cgroup permissions.
    17  // Not implemented
    18  func DevicesFromPath(pathOnHost, pathInContainer, cgroupPermissions string) (devs []specs.LinuxDevice, devPermissions []specs.LinuxDeviceCgroup, err error) {
    19  	return nil, nil, errors.New("oci/devices: unsupported platform")
    20  }