github.com/Shopify/docker@v1.13.1/oci/devices_unsupported.go (about)

     1  // +build !linux
     2  
     3  package 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.Device { return specs.Device{} }
    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.Device, devPermissions []specs.DeviceCgroup, err error) {
    19  	return nil, nil, errors.New("oci/devices: unsupported platform")
    20  }