Documentation ¶
Index ¶
- type BaseManager
- func (mgr *BaseManager) GetAllDrivesSmartInfo() (string, error)
- func (mgr *BaseManager) GetDriveSmartInfo(serialNumber string) (string, error)
- func (mgr BaseManager) GetDrivesList() ([]*api.Drive, error)
- func (mgr *BaseManager) GetNVMDevices() ([]*api.Drive, error)
- func (mgr *BaseManager) GetSCSIDevices() ([]*api.Drive, error)
- func (mgr *BaseManager) Locate(serialNumber string, action int32) (int32, error)
- func (mgr *BaseManager) LocateNode(action int32) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseManager ¶
type BaseManager struct {
// contains filtered or unexported fields
}
BaseManager is a drive manager based on Linux system utils
func New ¶
func New(exec command.CmdExecutor, logger *logrus.Logger) *BaseManager
New is a constructor BaseManager
func (*BaseManager) GetAllDrivesSmartInfo ¶ added in v1.6.1
func (mgr *BaseManager) GetAllDrivesSmartInfo() (string, error)
GetAllDrivesSmartInfo implements GetAllDrivesSmartInfo method of DriveManager interface
func (*BaseManager) GetDriveSmartInfo ¶ added in v1.6.1
func (mgr *BaseManager) GetDriveSmartInfo(serialNumber string) (string, error)
GetDriveSmartInfo implements GetDriveSmartInfo method of DriveManager interface
func (BaseManager) GetDrivesList ¶
func (mgr BaseManager) GetDrivesList() ([]*api.Drive, error)
GetDrivesList gets api.Drive slice using Linux system utils
func (*BaseManager) GetNVMDevices ¶
func (mgr *BaseManager) GetNVMDevices() ([]*api.Drive, error)
GetNVMDevices get []*api.Drive using nvme_cli system util
func (*BaseManager) GetSCSIDevices ¶
func (mgr *BaseManager) GetSCSIDevices() ([]*api.Drive, error)
GetSCSIDevices get []*api.Drive using lsscsi system util
func (*BaseManager) Locate ¶
func (mgr *BaseManager) Locate(serialNumber string, action int32) (int32, error)
Locate implements Locate method of DriveManager interface
func (*BaseManager) LocateNode ¶
func (mgr *BaseManager) LocateNode(action int32) error
LocateNode implements LocateNode method of DriveManager interface
Click to show internal directories.
Click to hide internal directories.