smart

package
v0.0.0-...-e06cd52 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoDisksFound             = errors.New("smart: no physical disks found in the system")
	ErrSmartctlNotFound         = errors.New("smart: couldn't detect path to smartctl executable")
	ErrSmartctlInfoNotAvailable = errors.New("smart: cannot get version string from smartctl executable")
	ErrUnderlyingToolNotFound   = errors.New("smart: underlying tool not found")
	ErrParseSmartctlVersion     = errors.New("smart: unable parse smartctl version")
)

Functions

This section is empty.

Types

type Option

type Option func(*SMART) error

Option callback for connection option

func Executable

func Executable(val string, tryDefaultOnFail bool) Option

type SMART

type SMART struct {
	// contains filtered or unexported fields
}

func New

func New(opts ...Option) (*SMART, error)

func (*SMART) Parse

func (sm *SMART) Parse() (common.MeasurementsMap, []error)

Parse detect hardware disks and parse their S.M.A.R.T

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL