basemgr

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

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) 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

Jump to

Keyboard shortcuts

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