hierarchy

package
v0.7.0-RC2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL