proxmox-backup/proxmox-file-restore/src
Dominik Csapak 6ddd69c5ce file-restore: add 'timeout' and 'json-error' parameter
timeout limits the code with the given timeout in seconds, and
'json-error' return json to stdout when the call returns an error like
this:

{
    "msg": "error message",
    "error": true,
    "code": <HTTP_STATUS_CODE>, // if it was an http error
}

with both options set, a client can more easily determine if the call
ran into a timeout (since it will return a 503 error), and can poll
it again

both is done behind new parameters, so that we can stay backwards-compatible

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-04-27 19:19:57 +02:00
..
block_driver.rs make datastore BackupGroup/Dir ctors private 2022-04-20 11:56:23 +02:00
block_driver_qemu.rs make datastore BackupGroup/Dir ctors private 2022-04-20 11:56:23 +02:00
cpio.rs file restore: rust fmt 2022-04-06 16:57:07 +02:00
main.rs file-restore: add 'timeout' and 'json-error' parameter 2022-04-27 19:19:57 +02:00
qemu_helper.rs file restore: rust fmt 2022-04-06 16:57:07 +02:00