Documentation ¶
Index ¶
- Constants
- Variables
- func AddDisk(dom libvirt.Domain, diskSize, format, bus string) (rsvirt.Disk, error)
- func CreateImage(diskInfo *Disk) error
- func CreateVm(vm *VM) error
- func DeleteDisk(path string)
- func DownloadFile(filepath string, url string) error
- func GenericError(msg string)
- func GetDiskFormat(format string) (string, error)
- func NewCmdAddDisk() *cobra.Command
- func NewCmdListVM() *cobra.Command
- func NewCmdNewVM() *cobra.Command
- func NewCmdSSH() *cobra.Command
- func NewCmdStartVM() *cobra.Command
- func NewCmdStopVM() *cobra.Command
- func NewCmdVmInfo() *cobra.Command
- func NewCmddeleteVM() *cobra.Command
- func SSH(vm, user, sshOpts string) error
- type Disk
- type Pool
- type VM
- type WriteCounter
Constants ¶
View Source
const VIRTSYSPREP = "virt-sysprep"
virt-sysprep
Variables ¶
View Source
var FormatStr = map[string]string{
"qcow2": ".qcow2",
"raw": ".img",
}
FormatStr Format image termination
View Source
var QEMU_IMG = "qemu-img"
QEMU_IMG qemu-img binary
View Source
var VirtInfo virtInfo
Functions ¶
func CreateImage ¶
CreateImage Creates a new backed image using qemu-img utility
func DeleteDisk ¶
func DeleteDisk(path string)
func DownloadFile ¶
func GenericError ¶
func GenericError(msg string)
func GetDiskFormat ¶
GetDiskFormat Return file termination for disks formats
func NewCmdAddDisk ¶
func NewCmdListVM ¶
func NewCmdStartVM ¶
func NewCmdStopVM ¶
func NewCmdVmInfo ¶
Types ¶
type WriteCounter ¶
func (WriteCounter) PrintProgress ¶
func (wc WriteCounter) PrintProgress()
Click to show internal directories.
Click to hide internal directories.