package devices
import "github.com/opencontainers/runc/libcontainer/devices"
Index ¶
- Variables
- func DeviceFromPath(path, permissions string) (*configs.Device, error)
- func GetDevices(path string) ([]*configs.Device, error)
- func HostDevices() ([]*configs.Device, error)
Variables ¶
var ( // ErrNotADevice denotes that a file is not a valid linux device. ErrNotADevice = errors.New("not a device node") )
Functions ¶
func DeviceFromPath ¶
Given the path to a device and its cgroup_permissions(which cannot be easily queried) look up the information about a linux device and return that information as a Device struct.
func GetDevices ¶
GetDevices recursively traverses a directory specified by path and returns all devices found there.
func HostDevices ¶
HostDevices returns all devices that can be found under /dev directory.
Source Files ¶
- Version
- v1.0.0-rc90
- Published
- Jan 22, 2020
- Platform
- windows/amd64
- Imports
- 6 packages
- Last checked
- 1 minute ago –
Tools for package owners.