Commit Graph

7 Commits

Author SHA1 Message Date
Ben LeMasurier
c6e0d02f28 Adds support for dumping domain XML
This adds support for dumping a domain's XML definition, akin to `virsh
dumpxml <domain>`. The returned data is quite large so I've included an
integration test rather than adding a huge blob of hex to `libvirttest`.
2016-11-30 19:31:45 -07:00
Simarpreet Singh
693bffa997
destroy: Adding the ability to destroy a domain.
Signed-off-by: Simarpreet Singh <simar@linux.com>
2016-11-02 20:47:37 -07:00
Ben LeMasurier
d556125e20 Add support for undefining a domain 2016-09-28 15:37:06 -06:00
Charlie Drage
4603ca308d Add note to constants
Adds a small note to the constants.go file for creating a new api call
within libvirt.go
2016-08-31 13:34:49 -04:00
Ben LeMasurier
128bc7d448
Add support for domain migrations
This adds basic support for domain migrations from one hypervisor to
another. Migration options, e.g., live, tunneled, compressed, etc..,
are specified by the constants described `constants.Migrate*`.

Two unknowns remain, Libvirt specifies `RemoteParameters` and `CookieIn`.
In testing both values are always set to 0 by `virsh` and the source
does not provide clear definitions of their purpose. For now, using
the same zero'd values used by `virsh` will be Good Enough.
2016-08-21 09:10:30 -06:00
ricky
92abb8c314 adding virsh migrate-setspeed 2016-08-04 14:29:29 -04:00
Ben LeMasurier
65d878e075 Adds test package
This splits out the mock libvirt server for testing within
other packages. Constants from the main libvirt package
have been moved to a separate package, constants, for shared access.
2016-05-20 10:50:10 -06:00