Documentation ¶
Overview ¶
Access SMART data of disks
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SmartCtlBackend ¶
func SmartCtlViaDockerBackend ¶
joonas/smartmontools built from simple Dockerfile:
FROM alpine:edge RUN apk add --update smartmontools
Types ¶
type AtaSmartAttribute ¶
type SmartCtlJsonReport ¶
type SmartCtlJsonReport struct { JsonFormatVersion []int `json:"json_format_version"` AtaSmartAttributes struct { Revision int `json:"revision"` Table []AtaSmartAttribute `json:"table"` } `json:"ata_smart_attributes"` SmartStatus struct { Passed bool `json:"passed"` } `json:"smart_status"` PowerCycleCount int `json:"power_cycle_count"` PowerOnTime struct { Hours int `json:"hours"` } `json:"power_on_time"` Temperature struct { Current int `json:"current"` } `json:"temperature"` }
func (*SmartCtlJsonReport) FindSmartAttributeByName ¶
func (s *SmartCtlJsonReport) FindSmartAttributeByName(name string) *AtaSmartAttribute
Click to show internal directories.
Click to hide internal directories.