guestfishpart

package
v0.3.10-0-alpha2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SGuestfishDiskPartition

type SGuestfishDiskPartition struct {
	*kvmpart.SLocalGuestFS
	// contains filtered or unexported fields
}

func NewGuestfishDiskPartition

func NewGuestfishDiskPartition(
	dev, partDev, fs string, fish *guestfish.Guestfish,
) *SGuestfishDiskPartition

dev like /dev/sda, partDev like /dev/sda1

func (*SGuestfishDiskPartition) GetPartDev

func (d *SGuestfishDiskPartition) GetPartDev() string

func (*SGuestfishDiskPartition) GetPhysicalPartitionType

func (d *SGuestfishDiskPartition) GetPhysicalPartitionType() string

func (*SGuestfishDiskPartition) IsMounted

func (d *SGuestfishDiskPartition) IsMounted() bool

func (*SGuestfishDiskPartition) IsReadonly

func (d *SGuestfishDiskPartition) IsReadonly() bool

func (*SGuestfishDiskPartition) Mount

func (d *SGuestfishDiskPartition) Mount() bool

func (*SGuestfishDiskPartition) MountPartReadOnly

func (d *SGuestfishDiskPartition) MountPartReadOnly() bool

func (*SGuestfishDiskPartition) Umount

func (d *SGuestfishDiskPartition) Umount() error

func (*SGuestfishDiskPartition) Zerofree

func (d *SGuestfishDiskPartition) Zerofree()

Jump to

Keyboard shortcuts

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