Versions in this module Expand all Collapse all v1 v1.1.11 Jan 21, 2024 Changes in this version + const Wildcard + var ErrNotADevice = errors.New("not a device node") — darwin/amd64, js/wasm, linux/amd64 + type Device struct + FileMode os.FileMode + Gid uint32 + Path string + Uid uint32 + func DeviceFromPath(path, permissions string) (*Device, error) + func GetDevices(path string) ([]*Device, error) + func HostDevices() ([]*Device, error) + type Permissions string + func (p Permissions) Difference(o Permissions) Permissions + func (p Permissions) Intersection(o Permissions) Permissions + func (p Permissions) IsEmpty() bool + func (p Permissions) IsValid() bool + func (p Permissions) Union(o Permissions) Permissions + type Rule struct + Allow bool + Major int64 + Minor int64 + Permissions Permissions + Type Type + func (d *Rule) CgroupString() string + func (d *Rule) Mkdev() (uint64, error) + type Type rune + const BlockDevice + const CharDevice + const FifoDevice + const WildcardDevice + func (t Type) CanCgroup() bool + func (t Type) CanMknod() bool + func (t Type) IsValid() bool