Documentation ¶
Index ¶
Constants ¶
View Source
const ( // BlockSubSystem is the key used to represent block subsystem in sysfs BlockSubSystem = "block" // NVMeSubSystem is the key used to represent nvme subsystem in sysfs NVMeSubSystem = "nvme" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct { // Path of the blockdevice. eg: /dev/sda, /dev/dm-0 Path string }
Device represents a blockdevice. This struct is used by hierarchy pkg which is used to get the necessary blockdevice hierarchy information
func (*Device) GetDependents ¶
func (d *Device) GetDependents() (blockdevice.DependentBlockDevices, error)
GetDependents gets all the dependent devices for a given Device
Click to show internal directories.
Click to hide internal directories.