diff options
author | Devaev Maxim <[email protected]> | 2020-06-08 04:51:48 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-06-08 04:51:48 +0300 |
commit | 241c787e105abaa0ec8201e3dcaf42dbad4674cd (patch) | |
tree | 516f77636d89e5196fba79f9ab266b70402b02dc /kvmd/apps/__init__.py | |
parent | 04c3763e69a1e7d1705d56de0cd6b3e5e13f519d (diff) |
periodic snapshots
Diffstat (limited to 'kvmd/apps/__init__.py')
-rw-r--r-- | kvmd/apps/__init__.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/kvmd/apps/__init__.py b/kvmd/apps/__init__.py index e81e6656..cd49c9f1 100644 --- a/kvmd/apps/__init__.py +++ b/kvmd/apps/__init__.py @@ -74,6 +74,8 @@ from ..validators.net import valid_ssl_ciphers from ..validators.kvm import valid_stream_quality from ..validators.kvm import valid_stream_fps +from ..validators.kvm import valid_hid_key +from ..validators.kvm import valid_hid_mouse_move from ..validators.hw import valid_gpio_pin_optional from ..validators.hw import valid_otg_gadget @@ -264,6 +266,18 @@ def _get_config_scheme() -> Dict: "cmd": Option(["/bin/true"], type=valid_command), }, + + "snapshot": { + "idle_interval": Option(0.0, type=valid_float_f0), + "live_interval": Option(0.0, type=valid_float_f0), + + "wakeup_key": Option("", type=(lambda arg: (valid_hid_key(arg) if arg else ""))), + "wakeup_move": Option(0, type=valid_hid_mouse_move), + + "online_delay": Option(5.0, type=valid_float_f0), + "retries": Option(10, type=valid_int_f1), + "retries_delay": Option(3.0, type=valid_float_f01), + }, }, "otg": { |