datadiscover

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: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

Directories

Path Synopsis
Package types contains interface and structure for discovering of logic entries on drive
Package types contains interface and structure for discovering of logic entries on drive

Jump to

Keyboard shortcuts

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