libguestfs

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: 21 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(*apis.GuestDesc) error

func (*SLibguestfsDriver) DeployGuestfs

func (d *SLibguestfsDriver) DeployGuestfs(req *apis.DeployParams) (res *apis.DeployGuestFsResponse, err error)

func (*SLibguestfsDriver) DetectIsUEFISupport

func (d *SLibguestfsDriver) DetectIsUEFISupport(rootfs fsdriver.IRootFsDriver) bool

func (*SLibguestfsDriver) Disconnect

func (d *SLibguestfsDriver) Disconnect() error

func (*SLibguestfsDriver) FormatFs

func (d *SLibguestfsDriver) FormatFs(req *apis.FormatFsParams) (*apis.Empty, error)

func (*SLibguestfsDriver) FormatPartition

func (d *SLibguestfsDriver) FormatPartition(fs, uuid string, features *apis.FsFeatures) 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) MountRootfs

func (d *SLibguestfsDriver) MountRootfs(readonly bool) (fsdriver.IRootFsDriver, error)

func (*SLibguestfsDriver) ProbeImageInfo

func (d *SLibguestfsDriver) ProbeImageInfo(req *apis.ProbeImageInfoPramas) (*apis.ImageInfo, error)

func (*SLibguestfsDriver) ResizeFs

func (d *SLibguestfsDriver) ResizeFs() (*apis.Empty, error)

func (*SLibguestfsDriver) ResizePartition

func (d *SLibguestfsDriver) ResizePartition() error

func (*SLibguestfsDriver) SaveToGlance

func (*SLibguestfsDriver) UmountRootfs

func (d *SLibguestfsDriver) UmountRootfs(fd fsdriver.IRootFsDriver) 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