Documentation ¶
Overview ¶
Package datadiscover contains code for discovering filesystems, partitions, partition table and LVM PV on drive
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WrapDataDiscoverImpl ¶
type WrapDataDiscoverImpl struct {
// contains filtered or unexported fields
}
WrapDataDiscoverImpl is the basic implementation of WrapDataDiscover interface
func NewDataDiscover ¶
func NewDataDiscover(fs fs.WrapFS, part partitionhelper.WrapPartition, lvm lvm.WrapLVM) *WrapDataDiscoverImpl
NewDataDiscover is a constructor for WrapDataDiscoverImpl
func (*WrapDataDiscoverImpl) DiscoverData ¶
func (w *WrapDataDiscoverImpl) DiscoverData(device, serialNumber string) (*types.DiscoverResult, error)
DiscoverData perform linux operation to determine if device has logical entities like filesystem on it It executes lsblk to find file systems and partitions, parted for partition table Receive device path and serial number Return true if device has data, false in opposite, error if something went wrong
Click to show internal directories.
Click to hide internal directories.