Documentation ¶
Index ¶
- func SeachestErrors(err int) string
- type Identifier
- func (I *Identifier) DriveType(driveInfo *C.driveInformationSAS_SATA) string
- func (I *Identifier) GetCapacity(driveInfo *C.driveInformationSAS_SATA) uint64
- func (I *Identifier) GetCurrentTemperature(driveInfo *C.driveInformationSAS_SATA) int16
- func (I *Identifier) GetDeviceUtilizationRate(driveInfo *C.driveInformationSAS_SATA) float64
- func (I *Identifier) GetFirmwareRevision(driveInfo *C.driveInformationSAS_SATA) string
- func (I *Identifier) GetHighestTemperature(driveInfo *C.driveInformationSAS_SATA) int16
- func (I *Identifier) GetHighestValid(driveInfo *C.driveInformationSAS_SATA) bool
- func (I *Identifier) GetHostName(driveInfo *C.driveInformationSAS_SATA) string
- func (I *Identifier) GetLogicalSectorSize(driveInfo *C.driveInformationSAS_SATA) uint32
- func (I *Identifier) GetLowestTemperature(driveInfo *C.driveInformationSAS_SATA) int16
- func (I *Identifier) GetLowestValid(driveInfo *C.driveInformationSAS_SATA) bool
- func (I *Identifier) GetModelNumber(driveInfo *C.driveInformationSAS_SATA) string
- func (I *Identifier) GetPath(driveInfo *C.driveInformationSAS_SATA) string
- func (I *Identifier) GetPercentEnduranceUsed(driveInfo *C.driveInformationSAS_SATA) float64
- func (I *Identifier) GetPhysicalSectorSize(driveInfo *C.driveInformationSAS_SATA) uint32
- func (I *Identifier) GetRotationRate(driveInfo *C.driveInformationSAS_SATA) uint16
- func (I *Identifier) GetSerialNumber(driveInfo *C.driveInformationSAS_SATA) string
- func (I *Identifier) GetTemperatureDataValidStatus(driveInfo *C.driveInformationSAS_SATA) bool
- func (I *Identifier) GetTotalBytesRead(driveInfo *C.driveInformationSAS_SATA) uint64
- func (I *Identifier) GetTotalBytesWritten(driveInfo *C.driveInformationSAS_SATA) uint64
- func (I *Identifier) GetUuid(driveInfo *C.driveInformationSAS_SATA) string
- func (I *Identifier) GetVendorID(driveInfo *C.driveInformationSAS_SATA) string
- func (I *Identifier) SeachestBasicDiskInfo() (*C.driveInformationSAS_SATA, int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SeachestErrors ¶
Seachest errors are converted to string using this function
Types ¶
type Identifier ¶
type Identifier struct {
DevPath string
}
Identifier (devPath such as /dev/sda,etc) is an identifier for seachest probe
func (*Identifier) DriveType ¶
func (I *Identifier) DriveType(driveInfo *C.driveInformationSAS_SATA) string
func (*Identifier) GetCapacity ¶
func (I *Identifier) GetCapacity(driveInfo *C.driveInformationSAS_SATA) uint64
func (*Identifier) GetCurrentTemperature ¶
func (I *Identifier) GetCurrentTemperature(driveInfo *C.driveInformationSAS_SATA) int16
func (*Identifier) GetDeviceUtilizationRate ¶
func (I *Identifier) GetDeviceUtilizationRate(driveInfo *C.driveInformationSAS_SATA) float64
func (*Identifier) GetFirmwareRevision ¶
func (I *Identifier) GetFirmwareRevision(driveInfo *C.driveInformationSAS_SATA) string
func (*Identifier) GetHighestTemperature ¶
func (I *Identifier) GetHighestTemperature(driveInfo *C.driveInformationSAS_SATA) int16
func (*Identifier) GetHighestValid ¶
func (I *Identifier) GetHighestValid(driveInfo *C.driveInformationSAS_SATA) bool
func (*Identifier) GetHostName ¶
func (I *Identifier) GetHostName(driveInfo *C.driveInformationSAS_SATA) string
func (*Identifier) GetLogicalSectorSize ¶
func (I *Identifier) GetLogicalSectorSize(driveInfo *C.driveInformationSAS_SATA) uint32
func (*Identifier) GetLowestTemperature ¶
func (I *Identifier) GetLowestTemperature(driveInfo *C.driveInformationSAS_SATA) int16
func (*Identifier) GetLowestValid ¶
func (I *Identifier) GetLowestValid(driveInfo *C.driveInformationSAS_SATA) bool
func (*Identifier) GetModelNumber ¶
func (I *Identifier) GetModelNumber(driveInfo *C.driveInformationSAS_SATA) string
func (*Identifier) GetPath ¶
func (I *Identifier) GetPath(driveInfo *C.driveInformationSAS_SATA) string
func (*Identifier) GetPercentEnduranceUsed ¶
func (I *Identifier) GetPercentEnduranceUsed(driveInfo *C.driveInformationSAS_SATA) float64
func (*Identifier) GetPhysicalSectorSize ¶
func (I *Identifier) GetPhysicalSectorSize(driveInfo *C.driveInformationSAS_SATA) uint32
func (*Identifier) GetRotationRate ¶
func (I *Identifier) GetRotationRate(driveInfo *C.driveInformationSAS_SATA) uint16
func (*Identifier) GetSerialNumber ¶
func (I *Identifier) GetSerialNumber(driveInfo *C.driveInformationSAS_SATA) string
func (*Identifier) GetTemperatureDataValidStatus ¶
func (I *Identifier) GetTemperatureDataValidStatus(driveInfo *C.driveInformationSAS_SATA) bool
func (*Identifier) GetTotalBytesRead ¶
func (I *Identifier) GetTotalBytesRead(driveInfo *C.driveInformationSAS_SATA) uint64
func (*Identifier) GetTotalBytesWritten ¶
func (I *Identifier) GetTotalBytesWritten(driveInfo *C.driveInformationSAS_SATA) uint64
func (*Identifier) GetUuid ¶
func (I *Identifier) GetUuid(driveInfo *C.driveInformationSAS_SATA) string
func (*Identifier) GetVendorID ¶
func (I *Identifier) GetVendorID(driveInfo *C.driveInformationSAS_SATA) string
func (*Identifier) SeachestBasicDiskInfo ¶
func (I *Identifier) SeachestBasicDiskInfo() (*C.driveInformationSAS_SATA, int)
Click to show internal directories.
Click to hide internal directories.