Versions in this module Expand all Collapse all v1 v1.0.2 Mar 17, 2021 Changes in this version + const NvmeAdminGetLogPage — linux/amd64 + const NvmeAdminIdentify — linux/amd64 + func Asset(name string) ([]byte, error) + func AssetDir(name string) ([]string, error) + func AssetInfo(name string) (os.FileInfo, error) + func AssetNames() []string + func MustAsset(name string) []byte + func RestoreAsset(dir, name string) error + func RestoreAssets(dir, name string) error + type AtaInfo struct + ATAMajorVersion string + ATAMinorVersion string + ErrorLog string + FirmwareRevision string + LUWWNDeviceID string + ModelNum string + RotationRate string + SerialNum string + SmartSupportAvailable bool + SmartSupportEnabled bool + Transport string + type Info struct + Ata *AtaInfo + Device string + Error string + Nvme *NvmeInfo + Scsi *ScsiInfo + func GetInfo(device string) (Info, error) + type NVMeDevice struct + Name string + func NewNVMeDevice(name string) *NVMeDevice + func (d *NVMeDevice) Close() error + func (d *NVMeDevice) Open() (err error) + type NvmeInfo struct + ControllerBusyTime *big.Int + CriticalWarning string + DataUnitsReadBytes *big.Int + DataUnitsWrittenBytes *big.Int + FirmwareVersion string + HostReadCommands *big.Int + HostWriteCommands *big.Int + MaxDataTransferPages int + MediaAndDataIntegrityErrors *big.Int + ModelNum string + PowerCycles *big.Int + PowerOnHours *big.Int + SerialNum string + SpareAvailable string + SpareThreshold string + Temperature string + UnsafeShutdowns *big.Int + VendorID string + type ScsiInfo struct + BdLen int64 + CapacityBytes int64 + ModeSenseBuf string + Offset int64 + RPM int64 + RespLen int64