Commit Graph

17 Commits

Author SHA1 Message Date
Marek Marczykowski-Górecki
54dcec2cf5
devices: add devices API wrappers 2017-04-30 15:21:04 +02:00
Marek Marczykowski-Górecki
6dd7c69b3f
vm: add run* methods
The base method is run_service, but also implement convenient wrappers.
2017-04-29 01:18:28 +02:00
Marek Marczykowski-Górecki
914c2d7e5e
vm: add/fix lifecycle-related methods 2017-04-29 01:18:27 +02:00
Marek Marczykowski-Górecki
e066656903
features: client-side API 2017-04-29 01:18:27 +02:00
Marek Marczykowski-Górecki
e66b96edd1
Add logging to Qubes() and QubesVM() objects 2017-04-29 01:18:25 +02:00
Marek Marczykowski-Górecki
9262363569
Make QubesVM objects comparable and str()-able
Required for sorting and displaying easily.
2017-03-13 04:37:30 +01:00
Marek Marczykowski-Górecki
ade0030efe
Implement vm.get_power_state() 2017-03-13 04:37:29 +01:00
Marek Marczykowski-Górecki
21d60eff4c
Add vm.shutdown(force) parameter
But not it's implementation (currently not specified in API).

QubesOS/qubes-issues#853
2017-03-09 02:39:54 +01:00
Marek Marczykowski-Górecki
32bd75da77
Update license headers
Update GPL->LGPL for tools moved from core-admin repository.
While at it, change mailing address to www link, as suggested by FSF.

Cc: @woju
Cc: @rootkovska
2017-03-09 02:39:51 +01:00
Marek Marczykowski-Górecki
7d7f1724ff
make pylint happy
Add mock dbus module
2017-03-02 02:05:35 +01:00
Marek Marczykowski-Górecki
f59ff0c641
mgmt.vm.volume.* API support
QubesOS/qubes-issues#853
2017-03-01 23:49:24 +01:00
Marek Marczykowski-Górecki
2b1ebba547
vm: add actual VM classes
QubesOS/qubes-issues#853
2017-03-01 23:49:23 +01:00
Marek Marczykowski-Górecki
3e73b242d1
Add missing docstrings, require them by pylint 2017-03-01 23:49:21 +01:00
Marek Marczykowski-Górecki
61cb9887af
Implement simple VM actions
QubesOS/qubes-issues#853
2017-03-01 23:49:21 +01:00
Marek Marczykowski-Górecki
4bbc7a6b1f
Cache vm.name property
It doesn't make sense to send mgmt call to _named_ VM just to ask for
its name. Use value that QubesVM object already have.
This also means we can safely access vm.name, no need to touch any
private attribute.

QubesOS/qubes-issues#853
2017-03-01 23:49:21 +01:00
Marek Marczykowski-Górecki
c298eddd16
Avoid cyclic imports
QubesOS/qubes-issues#853
2017-03-01 23:49:20 +01:00
Marek Marczykowski-Górecki
3a2e0b770b
Initial commit
First minimal version, with just listing VMs and handling properties.

QubesOS/qubes-issues#853
2017-03-01 23:48:53 +01:00