tool

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DD

type DD struct {
	Input       string
	Output      string
	ChunkSizeKB int
	Status      string
}

func (DD) Run

func (d DD) Run() error

type Drive

type Drive struct {
	// contains filtered or unexported fields
}

func DetectDrives

func DetectDrives() ([]Drive, error)

func DetectSdxDrives

func DetectSdxDrives(fileList []os.FileInfo) ([]Drive, error)

func (Drive) Device

func (d Drive) Device() string

func (Drive) Partitions

func (d Drive) Partitions() []Partition

func (Drive) String

func (d Drive) String() string

type Partition

type Partition struct {
	// contains filtered or unexported fields
}

func DetectPartitions

func DetectPartitions() ([]Partition, error)

func DetectSdxPartitions

func DetectSdxPartitions(fileList []os.FileInfo) ([]Partition, error)

func FilterPartitions

func FilterPartitions(fn func(Partition) bool, partitions []Partition) []Partition

func (Partition) Device

func (p Partition) Device() string

func (Partition) GetPath

func (d Partition) GetPath() string

func (Partition) IsMounted

func (d Partition) IsMounted() bool

func (*Partition) Mount

func (d *Partition) Mount() error

func (Partition) MountPoint

func (d Partition) MountPoint() string

func (Partition) String

func (d Partition) String() string

func (*Partition) Umount

func (d *Partition) Umount() error

Jump to

Keyboard shortcuts

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