atasmart

package
v0.0.0-...-d5a5adf Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2017 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DebugEnabled = false
)

Variables

View Source
var (
	InternalError = errors.New("atasmart internal Error")
)

Functions

This section is empty.

Types

type Attribute

type Attribute struct {
	ID        uint8
	Name      string
	Current   uint8
	Worst     uint8
	Threshold uint8
	Raw       uint64
}

type SkDisk

type SkDisk struct {
	Data       *SkDiskData
	Attributes []Attribute
	Path       string
	// contains filtered or unexported fields
}

func DiskOpen

func DiskOpen(path string) (*SkDisk, error)

func (*SkDisk) DiskDump

func (sd *SkDisk) DiskDump() int

func (*SkDisk) Free

func (sd *SkDisk) Free()

func (*SkDisk) GetSize

func (sd *SkDisk) GetSize() (uint64, error)

func (*SkDisk) GetSmartPowerCycle

func (sd *SkDisk) GetSmartPowerCycle() (uint64, error)

func (*SkDisk) GetSmartPowerOn

func (sd *SkDisk) GetSmartPowerOn() (uint64, error)

func (*SkDisk) GetSmartTemperature

func (sd *SkDisk) GetSmartTemperature() (uint64, error)

func (*SkDisk) IsSleepMode

func (sd *SkDisk) IsSleepMode() (bool, error)

func (*SkDisk) ParseIdentify

func (sd *SkDisk) ParseIdentify() error

func (*SkDisk) ParseSmartAttr

func (sd *SkDisk) ParseSmartAttr() error

func (*SkDisk) ReadSmartData

func (sd *SkDisk) ReadSmartData() error

type SkDiskData

type SkDiskData struct {
	Serial   string
	Firmware string
	Model    string
}

Jump to

Keyboard shortcuts

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