package devices
import "github.com/opencontainers/runc/libcontainer/devices"
Index ¶
- Constants
- Variables
- type Device
- func DeviceFromPath(path, permissions string) (*Device, error)
- func GetDevices(path string) ([]*Device, error)
- func HostDevices() ([]*Device, error)
- type Permissions
- type Rule
- type Type
Constants ¶
const ( Wildcard = config.Wildcard WildcardDevice = config.WildcardDevice BlockDevice = config.BlockDevice CharDevice = config.CharDevice FifoDevice = config.FifoDevice )
Deprecated: use github.com/opencontainers/cgroups/devices/config.
Variables ¶
ErrNotADevice denotes that a file is not a valid linux device.
Types ¶
type Device ¶
Deprecated: use github.com/opencontainers/cgroups/devices/config.
func DeviceFromPath ¶
DeviceFromPath takes the path to a device and its cgroup_permissions (which cannot be easily queried) to look up the information about a linux device and returns 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.
type Permissions ¶
type Permissions = config.Permissions
Deprecated: use github.com/opencontainers/cgroups/devices/config.
type Rule ¶
Deprecated: use github.com/opencontainers/cgroups/devices/config.
type Type ¶
Deprecated: use github.com/opencontainers/cgroups/devices/config.
Source Files ¶
device_deprecated.go device_unix.go
- Version
- v1.3.0 (latest)
- Published
- Apr 29, 2025
- Platform
- js/wasm
- Imports
- 5 packages
- Last checked
- 12 minutes ago –
Tools for package owners.