Versions in this module Expand all Collapse all v0 v0.6.2 Oct 30, 2020 Changes in this version + type Disk struct + BusPath string + DriveType DriveType + IsRemovable bool + Model string + NUMANodeID int + Name string + Partitions []*Partition + PhysicalBlockSizeBytes uint64 + SerialNumber string + SizeBytes uint64 + StorageController StorageController + Vendor string + WWN string + func (d *Disk) String() string + type DriveType int + const DRIVE_TYPE_FDD + const DRIVE_TYPE_HDD + const DRIVE_TYPE_ODD + const DRIVE_TYPE_SSD + const DRIVE_TYPE_UNKNOWN + func (dt DriveType) MarshalJSON() ([]byte, error) + func (dt DriveType) String() string + type Info struct + Disks []*Disk + Partitions []*Partition + TotalPhysicalBytes uint64 + func New(opts ...*option.Option) (*Info, error) + func (i *Info) JSONString(indent bool) string + func (i *Info) String() string + func (i *Info) YAMLString() string + type Partition struct + Disk *Disk + IsReadOnly bool + Label string + MountPoint string + Name string + SizeBytes uint64 + Type string + UUID string + func (p *Partition) String() string + type StorageController int + const STORAGE_CONTROLLER_IDE + const STORAGE_CONTROLLER_MMC + const STORAGE_CONTROLLER_NVME + const STORAGE_CONTROLLER_SCSI + const STORAGE_CONTROLLER_UNKNOWN + const STORAGE_CONTROLLER_VIRTIO + func (sc StorageController) MarshalJSON() ([]byte, error) + func (sc StorageController) String() string