Documentation ¶
Index ¶
- type SGuestfishDiskPartition
- func (d *SGuestfishDiskPartition) GetPartDev() string
- func (d *SGuestfishDiskPartition) GetPhysicalPartitionType() string
- func (d *SGuestfishDiskPartition) IsMounted() bool
- func (d *SGuestfishDiskPartition) IsReadonly() bool
- func (d *SGuestfishDiskPartition) Mount() bool
- func (d *SGuestfishDiskPartition) MountPartReadOnly() bool
- func (d *SGuestfishDiskPartition) Umount() error
- func (d *SGuestfishDiskPartition) Zerofree()
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()
Click to show internal directories.
Click to hide internal directories.