diff options
author | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-08-07 15:55:01 +0200 |
---|---|---|
committer | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-08-09 10:47:18 +0200 |
commit | d383ff1c1a7c52efcae767ab866389b507077b35 (patch) | |
tree | 52e04f1d31590803514fd65e8e4a1a53962eaea8 /src/rest.h | |
parent | 6bc71b201dafd552a46b8e9ab5ee8f1ee5577c17 (diff) |
rest: add cache/fetchv1.2.5-17
Add POST cache/fetch request to request download of images in
the client's cache.
Resquest payload structure:
{
'clients': ['10.141.10.21', '10.141.10.22']
'image': 'windows.img'
'type': 'TIPTORRENT'
'repository': '12.141.10.2'
}
The clients listed in the 'clients' field will receive a
cache/fetch POST request with the payload received by the server
without the 'clients' field.
The clients respond with the contents of their cache so the server
can update the database.
Diffstat (limited to 'src/rest.h')
-rw-r--r-- | src/rest.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -42,6 +42,7 @@ enum og_cmd_type { OG_CMD_RUN_SCHEDULE, OG_CMD_IMAGES, OG_CMD_CACHE_DELETE, + OG_CMD_CACHE_FETCH, OG_CMD_MAX }; @@ -128,6 +129,7 @@ enum og_rest_uri { OG_URI_IMAGE_RESTRICT, OG_URI_CACHE_LIST, OG_URI_CACHE_DELETE, + OG_URI_CACHE_FETCH, OG_URI_PART_SETUP, OG_URI_RUN_SCHEDULE, OG_URI_TASK_RUN, |