Documentation ¶
Index ¶
- Constants
- func Init(count int) error
- func RandStringBytes(n int) string
- type ErrorFish
- type GuestfsManager
- type SLibguestfsDriver
- func (d *SLibguestfsDriver) Connect() error
- func (d *SLibguestfsDriver) Disconnect() error
- func (d *SLibguestfsDriver) FormatPartition(fs, uuid string) 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) ResizePartition() 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) 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()
Click to show internal directories.
Click to hide internal directories.