Documentation
¶
Index ¶
- Variables
- func NewSystemDriveFactory() common.DriveFactory
- type DriveHandleImpl
- func (p *DriveHandleImpl) AtaDoTaskFileCmd(rw bool, dma bool, tf *ata.Tf, data []byte, timeoutSecs int) error
- func (p *DriveHandleImpl) Close()
- func (p *DriveHandleImpl) GetDevicePath() string
- func (p *DriveHandleImpl) GetDriveInfo() *common.DriveInfo
- func (p *DriveHandleImpl) GetDriverHandle() common.DriverHandle
- func (p *DriveHandleImpl) GetDriverName() string
- func (p *DriveHandleImpl) GetDrivingType() common.DrivingType
- func (p *DriveHandleImpl) NvmeGetLogPage(nsid uint32, logId uint32, rae bool, size int) ([]byte, error)
- func (p *DriveHandleImpl) SecurityCommand(rw bool, dma bool, protocol uint8, comId uint16, buffer []byte, ...) error
- func (p *DriveHandleImpl) TcgDiscovery0() error
- type LinuxDriveFactory
- func (f *LinuxDriveFactory) EnumDrives() ([]common.DriveInfo, error)
- func (f *LinuxDriveFactory) EnumVolumes() (common.EnumVolumeContext, error)
- func (f *LinuxDriveFactory) OpenByFd(fd int, path string) (common.DriveHandle, error)
- func (f *LinuxDriveFactory) OpenByPath(path string) (common.DriveHandle, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotSupportThisDriver = errors.New("not supported in this driver")
)
Functions ¶
func NewSystemDriveFactory ¶
func NewSystemDriveFactory() common.DriveFactory
Types ¶
type DriveHandleImpl ¶
type DriveHandleImpl struct { common.DriveHandle Info common.DriveInfo // contains filtered or unexported fields }
func (*DriveHandleImpl) AtaDoTaskFileCmd ¶
func (*DriveHandleImpl) Close ¶
func (p *DriveHandleImpl) Close()
func (*DriveHandleImpl) GetDevicePath ¶
func (p *DriveHandleImpl) GetDevicePath() string
func (*DriveHandleImpl) GetDriveInfo ¶
func (p *DriveHandleImpl) GetDriveInfo() *common.DriveInfo
func (*DriveHandleImpl) GetDriverHandle ¶
func (p *DriveHandleImpl) GetDriverHandle() common.DriverHandle
func (*DriveHandleImpl) GetDriverName ¶
func (p *DriveHandleImpl) GetDriverName() string
func (*DriveHandleImpl) GetDrivingType ¶
func (p *DriveHandleImpl) GetDrivingType() common.DrivingType
func (*DriveHandleImpl) NvmeGetLogPage ¶
func (*DriveHandleImpl) SecurityCommand ¶
func (*DriveHandleImpl) TcgDiscovery0 ¶
func (p *DriveHandleImpl) TcgDiscovery0() error
type LinuxDriveFactory ¶
type LinuxDriveFactory struct {
// contains filtered or unexported fields
}
func NewLinuxDriveFactory ¶
func NewLinuxDriveFactory() *LinuxDriveFactory
func (*LinuxDriveFactory) EnumDrives ¶
func (f *LinuxDriveFactory) EnumDrives() ([]common.DriveInfo, error)
func (*LinuxDriveFactory) EnumVolumes ¶
func (f *LinuxDriveFactory) EnumVolumes() (common.EnumVolumeContext, error)
func (*LinuxDriveFactory) OpenByFd ¶
func (f *LinuxDriveFactory) OpenByFd(fd int, path string) (common.DriveHandle, error)
func (*LinuxDriveFactory) OpenByPath ¶
func (f *LinuxDriveFactory) OpenByPath(path string) (common.DriveHandle, error)
Click to show internal directories.
Click to hide internal directories.