ogclient/src/virtual
Alejandro Sirgo Rica fe40f9c5d6 src: add POST cache/fetch method
Add API REST method to fetch an image.
Consolidate image fetch loging for cache/fetch and image/restore.

Resquest payload structure:
{
    'image': 'linux.img'
    'type': 'TIPTORRENT'
    'repository': '12.141.10.2'
}

The client will try to fetch'image' from 'repository' into cache.

Resquest response structure:
{
    'cache': [
        {'name': 'windows.img', 'size': 2432370213, checksum: '5d4dcc677bc19f40a647d0002f4ade90'},
        {'name': 'linux.img', 'size': 243234534213, checksum: '3eb22f888f88a55ad954f55644e1192e'}
    ]
}
2024-08-09 11:04:56 +02:00
..
__init__.py Add virtual operations 2020-04-07 13:55:09 +02:00
ogOperations.py src: add POST cache/fetch method 2024-08-09 11:04:56 +02:00
poweroffd.py src: improve logging 2022-06-08 10:27:06 +02:00
qmp.py qmp: incorrect copyright header 2024-04-02 13:20:27 +02:00