Documentation ¶
Index ¶
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) 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
Click to show internal directories.
Click to hide internal directories.