Documentation
¶
Index ¶
- Constants
- func SendLocalToRemote(stream libvirt.VirStream, volume libvirt.VirStorageVol, data []byte) error
- func VmInstall(conn libvirt.VirConnection, vmname string, url string, autoyast string, ...)
- type Domain
- type DownloadManager
- type Downloader
- type HTTPDownloader
- type Storage
- type VolumeXMXEncoder
Constants ¶
View Source
const ( OSSECTION = "<os> <type arch='x86_64'>hvm</type><boot dev='hd'/></os>" ONBOOT = "<on_reboot>restart</on_reboot>" ONCRASH = "<on_crash>restart</on_crash>" POOXML = ` <pool type='dir'> <name>boot-scratch</name> <target> <path>/var/lib/libvirt/boot</path> </target> </pool> ` DOMAINXML = `` /* 966-byte string literal not displayed */ STORAGEXML = `` /* 128-byte string literal not displayed */ )
View Source
const ( VMINSTALL_SUCCESS = "SUCCESS" VMINSTALL_FAIL = "FAIL" )
MESSAGE to be sent to the channel
Variables ¶
This section is empty.
Functions ¶
func SendLocalToRemote ¶
Types ¶
type DownloadManager ¶
type DownloadManager struct {
// contains filtered or unexported fields
}
func (*DownloadManager) Download ¶
func (manager *DownloadManager) Download(url string) ([]byte, error)
func (*DownloadManager) Regsiter ¶
func (manager *DownloadManager) Regsiter(d Downloader)
type HTTPDownloader ¶
type HTTPDownloader struct { }
func (HTTPDownloader) Match ¶
func (h HTTPDownloader) Match() string
type Storage ¶
type VolumeXMXEncoder ¶
Click to show internal directories.
Click to hide internal directories.