Discussion:
[libvirt-users] Download image to libvirt storage pool
Shashwat shagun
2018-08-25 11:18:01 UTC
Permalink
Is there any function in libvirt (golang SDK) to download image to libvirt
storage pool from path?
Martin Kletzander
2018-08-27 12:49:53 UTC
Permalink
Post by Shashwat shagun
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

Loading...