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 WindowsDriveFactory
- func (f *WindowsDriveFactory) EnumDrives() ([]common.DriveInfo, error)
- func (f *WindowsDriveFactory) EnumVolumes() (common.EnumVolumeContext, error)
- func (f *WindowsDriveFactory) OpenByHandle(handle windows.Handle, path string) (common.DriveHandle, error)
- func (f *WindowsDriveFactory) OpenByPath(path string) (common.DriveHandle, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotSupportThisDriver = errors.New("not supported in this driver")
)
View Source
var GUID_DEVINTERFACE_DISK = windows.GUID{ 0x53f56307, 0xb6bf, 0x11d0, [8]byte{0x94, 0xf2, 0x00, 0xa0, 0xc9, 0x1e, 0xfb, 0x8b}, }
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 WindowsDriveFactory ¶
type WindowsDriveFactory struct {
// contains filtered or unexported fields
}
func NewWindowsDriveFactory ¶
func NewWindowsDriveFactory() *WindowsDriveFactory
func (*WindowsDriveFactory) EnumDrives ¶
func (f *WindowsDriveFactory) EnumDrives() ([]common.DriveInfo, error)
func (*WindowsDriveFactory) EnumVolumes ¶
func (f *WindowsDriveFactory) EnumVolumes() (common.EnumVolumeContext, error)
func (*WindowsDriveFactory) OpenByHandle ¶
func (f *WindowsDriveFactory) OpenByHandle(handle windows.Handle, path string) (common.DriveHandle, error)
func (*WindowsDriveFactory) OpenByPath ¶
func (f *WindowsDriveFactory) OpenByPath(path string) (common.DriveHandle, error)
Click to show internal directories.
Click to hide internal directories.