guestfish

package
v0.0.0-...-2b29b9b Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: Apache-2.0 Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Guestfish

type Guestfish struct {
	*exec.Cmd
	// contains filtered or unexported fields
}

func NewGuestfish

func NewGuestfish() (*Guestfish, error)

func (*Guestfish) AddDrive

func (fish *Guestfish) AddDrive(path, label string, readonly bool) error

func (*Guestfish) Blkid

func (fish *Guestfish) Blkid(partDev string) ([]string, error)

func (*Guestfish) Fsck

func (fish *Guestfish) Fsck(dev, fs string) error

func (*Guestfish) IsAlive

func (fish *Guestfish) IsAlive() bool

func (*Guestfish) ListDevices

func (fish *Guestfish) ListDevices() ([]string, error)

func (*Guestfish) ListFilesystems

func (fish *Guestfish) ListFilesystems() (*sortedmap.SSortedMap, error)

func (*Guestfish) LvmClearFilter

func (fish *Guestfish) LvmClearFilter() error

Clears the LVM cache and performs a volume group scan.

func (*Guestfish) Lvs

func (fish *Guestfish) Lvs() ([]string, error)

func (*Guestfish) Mkfs

func (fish *Guestfish) Mkfs(dev, fs string) error

func (*Guestfish) Mkswap

func (fish *Guestfish) Mkswap(partDev, uuid, label string) error

func (*Guestfish) Mount

func (fish *Guestfish) Mount(partition string) error

func (*Guestfish) MountLocal

func (fish *Guestfish) MountLocal(localmountpoint string, readonly bool) error

func (*Guestfish) MountLocalRun

func (fish *Guestfish) MountLocalRun() error

This should only be called after "mount_local" returns successfully. * The call will not return until the filesystem is unmounted.

func (*Guestfish) Ntfsfix

func (fish *Guestfish) Ntfsfix(dev string) error

func (*Guestfish) PartDisk

func (fish *Guestfish) PartDisk(dev, diskType string) error

func (*Guestfish) Quit

func (fish *Guestfish) Quit() error

func (*Guestfish) RemoveDrive

func (fish *Guestfish) RemoveDrive() error

func (*Guestfish) Run

func (fish *Guestfish) Run() error

func (*Guestfish) SfdiskL

func (fish *Guestfish) SfdiskL(dev string) ([]string, error)

func (*Guestfish) Umount

func (fish *Guestfish) Umount(partition string) error

func (*Guestfish) UmountLocal

func (fish *Guestfish) UmountLocal() error

func (*Guestfish) ZeroFreeSpace

func (fish *Guestfish) ZeroFreeSpace(dir string) error

func (*Guestfish) Zerofree

func (fish *Guestfish) Zerofree(dev string) error

Jump to

Keyboard shortcuts

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