[libvirt-users] Download image to libvirt storage pool
Martin Kletzander
mkletzan at redhat.com
Mon Aug 27 12:49:53 UTC 2018
On Sat, Aug 25, 2018 at 04:48:01PM +0530, Shashwat shagun wrote:
>Is there any function in libvirt (golang SDK) to download image to libvirt
>storage pool from path?
I _think_ you have to do:
https://godoc.org/github.com/libvirt/libvirt-go#StoragePool.StorageVolCreateXML
followed by:
https://godoc.org/github.com/libvirt/libvirt-go#StorageVol.Upload
HTH,
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20180827/5ff6fcfb/attachment.sig>
More information about the libvirt-users
mailing list