Documentation ¶
Index ¶
- Constants
- func Init(count int) error
- func RandStringBytes(n int) string
- type ErrorFish
- type GuestfsManager
- type SLibguestfsDriver
- func (d *SLibguestfsDriver) Connect(*apis.GuestDesc) error
- func (d *SLibguestfsDriver) DeployGuestfs(req *apis.DeployParams) (res *apis.DeployGuestFsResponse, err error)
- func (d *SLibguestfsDriver) DetectIsUEFISupport(rootfs fsdriver.IRootFsDriver) bool
- func (d *SLibguestfsDriver) Disconnect() error
- func (d *SLibguestfsDriver) FormatFs(req *apis.FormatFsParams) (*apis.Empty, error)
- func (d *SLibguestfsDriver) FormatPartition(fs, uuid string, features *apis.FsFeatures) error
- func (d *SLibguestfsDriver) FormatPartition2(fs, uuid string) error
- func (d *SLibguestfsDriver) GetPartitions() []fsdriver.IDiskPartition
- func (d *SLibguestfsDriver) IsLVMPartition() bool
- func (d *SLibguestfsDriver) MakePartition(fsFormat string) error
- func (d *SLibguestfsDriver) MakePartition2(fsFormat string) error
- func (d *SLibguestfsDriver) MountRootfs(readonly bool) (fsdriver.IRootFsDriver, error)
- func (d *SLibguestfsDriver) ProbeImageInfo(req *apis.ProbeImageInfoPramas) (*apis.ImageInfo, error)
- func (d *SLibguestfsDriver) ResizeFs() (*apis.Empty, error)
- func (d *SLibguestfsDriver) ResizePartition() error
- func (d *SLibguestfsDriver) SaveToGlance(req *apis.SaveToGlanceParams) (*apis.SaveToGlanceResponse, error)
- func (d *SLibguestfsDriver) UmountRootfs(fd fsdriver.IRootFsDriver) error
- func (d *SLibguestfsDriver) Zerofree()
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 RandStringBytes ¶
Types ¶
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) 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) ResizePartition ¶
func (d *SLibguestfsDriver) ResizePartition() error
func (*SLibguestfsDriver) SaveToGlance ¶
func (d *SLibguestfsDriver) SaveToGlance(req *apis.SaveToGlanceParams) (*apis.SaveToGlanceResponse, error)
func (*SLibguestfsDriver) UmountRootfs ¶
func (d *SLibguestfsDriver) UmountRootfs(fd fsdriver.IRootFsDriver) error
func (*SLibguestfsDriver) Zerofree ¶
func (d *SLibguestfsDriver) Zerofree()
Click to show internal directories.
Click to hide internal directories.