Versions in this module Expand all Collapse all v0 v0.7.0 Dec 5, 2019 Changes in this version + func Rc2err(label string, rc C.int) error + type Controller struct + FWRev string + Model string + PCIAddr string + Serial string + SocketID int32 + type DeviceHealth struct + AvailSpareWarn bool + CtrlBusyTime uint64 + CtrlrPciAddr string + ErrorLogEntries uint64 + MediaErrors uint64 + PowerCycles uint64 + PowerOnHours uint64 + ReadOnlyWarn bool + ReliabilityWarn bool + Temp uint32 + TempCritTime uint32 + TempWarn bool + TempWarnTime uint32 + UnsafeShutdowns uint64 + VolatileWarn bool + type ENV interface + InitSPDKEnv func(int) error + type Env struct + func (e *Env) InitSPDKEnv(shmID int) (err error) + type NVME interface + Cleanup func() + Discover func() ([]Controller, []Namespace, []DeviceHealth, error) + Format func(ctrlrPciAddr string) ([]Controller, []Namespace, error) + type Namespace struct + CtrlrPciAddr string + ID int32 + Size int32 + type Nvme struct + func (n *Nvme) Cleanup() + func (n *Nvme) Discover() ([]Controller, []Namespace, []DeviceHealth, error) + func (n *Nvme) Format(ctrlrPciAddr string) ([]Controller, []Namespace, error) + func (n *Nvme) Update(ctrlrPciAddr string, path string, slot int32) ([]Controller, []Namespace, error)