package devices

import "github.com/opencontainers/runc/libcontainer/devices"

Index

Variables

var (
	ErrNotADevice = errors.New("not a device node")
)

Functions

func DeviceFromPath

func DeviceFromPath(path, permissions string) (*configs.Device, error)

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 HostDevices

func HostDevices() ([]*configs.Device, error)

Source Files

devices.go

Version
v1.0.0-rc5
Published
Feb 27, 2018
Platform
windows/amd64
Imports
6 packages
Last checked
14 minutes ago

Tools for package owners.