package
0.14.0
Repository: https://github.com/jaypipes/ghw.git
Documentation: pkg.go.dev

# Functions

New returns a pointer to an Info struct that describes the block storage resources of the host system.

# Constants

DEPRECATED: Please use DriveTypeFDD.
DEPRECATED: Please use DriveTypeHDD.
DEPRECATED: Please use DriveTypeODD.
DEPRECATED: Please use DriveTypeSSD.
DEPRECATED: Please use DriveTypeUnknown.
DEPRECATED: Please use DriveTypeVirtual.
DriveTypeFDD indicates a floppy disk drive.
DriveTypeHDD indicates a hard disk drive.
DriveTypeODD indicates an optical disk drive.
DriveTypeSSD indicates a solid-state drive.
DriveTypeUnknown means we could not determine the drive type of the disk.
DriveTypeVirtual indicates a virtual drive i.e.
DEPRECATED: Please use StorageControllerIDE.
DEPRECATED: Please use StorageControllerLoop.
DEPRECATED: Please use StorageControllerMMC.
DEPRECATED: Please use StorageControllerNVMe.
DEPRECATED: Please use StorageControllerSCSI.
DEPRECATED: Please use StorageControllerUnknown.
DEPRECATED: Please use StorageControllerVirtIO.
StorageControllerIDE indicates a Integrated Drive Electronics (IDE) controller.
StorageControllerLoop indicates a loopback storage controller.
StorageControllerMMC indicates a Multi-media controller (used for mobile phone storage devices).
StorageControllerNVMe indicates a Non-volatile Memory Express (NVMe) controller.
StorageControllerSCSI indicates a Small computer system interface (SCSI) controller.
StorageControllerUnknown indicates we could not determine the storage controller for the disk.
StorageControllerVirtIO indicates a virtualized storage controller/driver.

# Structs

Disk describes a single disk drive on the host system.
Info describes all disk drives and partitions in the host system.
Partition describes a logical division of a Disk.

# Type aliases

DriveType describes the general category of drive device.
StorageController is a category of block storage controller/driver.