rgbkrk / libvirt-go

[DEPRECATED] Go bindings for libvirt
https://github.com/libvirt/libvirt-go
MIT License
166 stars 50 forks source link

Add VirStream, VirDomainScreenshot, VirDomainSendKey #25

Closed robxu9 closed 10 years ago

robxu9 commented 10 years ago

VirStream is libvirt's streaming implementation. Instead of recv and send methods, I interface with the io.Reader and io.Writer standard methods. I didn't implement everything, but this should cover most people's use cases.

VirDomainScreenshot takes a screenshot of the specified screen and sends it over to the client. VirDomainSendKey sends keys to the virtual machine (keymappings are located here, and unfortunately only qemu is supported right now).

alexzorin commented 10 years ago

Thanks, merged. Good call on io.ReadWriter, though maybe expanding it to io.ReadWriteCloser might work too?

robxu9 commented 10 years ago

Sure, I'll take a look into doing that.