libguestfs

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: 20 Imported by: 2

Documentation

Index

Constants

View Source
const (
	ErrFishsMismatch = ErrorFish("fishs mismatch")
	ErrFishsWorking  = ErrorFish("fishs working")
	ErrFishsDied     = ErrorFish("fishs died")
)
View Source
const (
	DiskLabelLength = 6
)

Variables

This section is empty.

Functions

func Init

func Init(count int) error

func RandStringBytes

func RandStringBytes(n int) string

Types

type ErrorFish

type ErrorFish string

func (ErrorFish) Error

func (e ErrorFish) Error() string

type GuestfsManager

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

func NewGuestfsManager

func NewGuestfsManager(count int) *GuestfsManager

func (*GuestfsManager) AcquireFish

func (m *GuestfsManager) AcquireFish() (*guestfish.Guestfish, error)

func (*GuestfsManager) ReleaseFish

func (m *GuestfsManager) ReleaseFish(fish *guestfish.Guestfish) error

type SLibguestfsDriver

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

func NewLibguestfsDriver

func NewLibguestfsDriver(imageInfo qemuimg.SImageInfo) *SLibguestfsDriver

func (*SLibguestfsDriver) Connect

func (d *SLibguestfsDriver) Connect() error

func (*SLibguestfsDriver) Disconnect

func (d *SLibguestfsDriver) Disconnect() error

func (*SLibguestfsDriver) FormatPartition

func (d *SLibguestfsDriver) FormatPartition(fs, uuid string) error

func (*SLibguestfsDriver) FormatPartition2

func (d *SLibguestfsDriver) FormatPartition2(fs, uuid string) error

func (*SLibguestfsDriver) GetPartitions

func (d *SLibguestfsDriver) GetPartitions() []fsdriver.IDiskPartition

func (*SLibguestfsDriver) IsLVMPartition

func (d *SLibguestfsDriver) IsLVMPartition() bool

func (*SLibguestfsDriver) MakePartition

func (d *SLibguestfsDriver) MakePartition(fsFormat string) error

func (*SLibguestfsDriver) MakePartition2

func (d *SLibguestfsDriver) MakePartition2(fsFormat string) error

func (*SLibguestfsDriver) ResizePartition

func (d *SLibguestfsDriver) ResizePartition() error

func (*SLibguestfsDriver) Zerofree

func (d *SLibguestfsDriver) Zerofree()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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