package
0.4.8
Repository: https://github.com/siderolabs/go-blockdevice.git
Documentation: pkg.go.dev

# Functions

Find disk matching provided spec.
Get gathers disk information from sys block.
List returns list of disks by reading /sys/block.
Match checks if the disk matches the spec.
ParseType converts string id to the disk type id.
WithBusPath select disk by it's full path.
WithModalias select disk with modalias.
WithModel select disk with model.
WithName select disk with name.
WithSerial select disk with serial.
WithType select disk with type.
WithUUID select disk with UUID.
WithWWID select disk with WWID.

# Constants

TypeHDD HDD disk.
TypeNVMe NVMe disk.
TypeSD SD card.
TypeSSD SATA SSD disk.
TypeUnknown is set when couldn't detect the disk type.

# Structs

Disk reresents disk information obtained by reading /sys/block.

# Type aliases

Matcher is a function that can handle some custom disk matching logic.
Type is the disk type: HDD, SSD, SD card, NVMe drive.