ogserver/src
Alejandro Sirgo Rica 6666aba8b7 rest: add cache/list
Add GET cache/list request to obtain information about the client's
cache.

Resquest payload structure:
{
    'clients': ['10.141.10.21', '10.141.10.22']
}

Response's structure:
{
    'clients': [
        {
            'ip': '10.141.10.21',
            'cache_size': 2894572304857,
            'images': [
                {name:'img1', size: 87283902343, checksum: '5d4dcc677bc19f40a647d0002f4ade90'},
                {name:'img2', size: 894572304857, checksum: '3eb22f888f88a55ad954f55644e1192e'}
            ]
        },
        {
            'ip': '10.141.10.22',
            'cache_size': 49872839023434,
            'images': [
                {name:'img2', size: 894572304857, checksum: '3eb22f888f88a55ad954f55644e1192e'}
            ]
        }
    ]
}

Both 'cache_size' and the values in 'image_sizes' are provided
as bytes.

If a client has no cache partition the payload will include it as:
...
	{
            'ip': '10.141.10.22',
            'cache_size': 0,
            'images': []
        }
...
2024-05-30 11:16:20 +02:00
..
cfg.c ogServer is AGPLv3+ 2021-05-04 17:59:11 +02:00
cfg.h #988 remove legacy configuration 2020-10-07 11:17:00 +02:00
client.c client: store image cache data in database 2024-05-30 11:16:13 +02:00
client.h #971 rename sources folder to src 2020-06-26 20:13:42 +02:00
core.c core: remove useless log when ogClient connects to server 2023-11-23 22:08:49 +01:00
core.h core: restrict rest API to 127.0.0.1 2023-11-14 11:25:42 +01:00
dbi.c rest: room in folder can't be updated 2024-02-08 10:03:39 +01:00
dbi.h rest: Add uri to update folder name 2024-02-05 11:34:44 +01:00
json.c client: store image cache data in database 2024-05-30 11:16:13 +02:00
json.h client: store image cache data in database 2024-05-30 11:16:13 +02:00
legacy.c missing copyright header to new src/legacy.c file 2021-06-09 23:17:51 +02:00
legacy.h #915 Add schedule/command 2021-06-09 13:41:28 +02:00
list.h #971 rename sources folder to src 2020-06-26 20:13:42 +02:00
main.c main: use etc folder instead of cfg to store .json configuration file 2023-11-14 11:26:19 +01:00
ogAdmLib.c #915 remove dead code in ogAdmLib 2021-12-22 17:30:04 +01:00
ogAdmLib.h #915 consolidate WoL sender function 2021-12-22 17:30:04 +01:00
ogAdmServer.c src: replace old function to update image information 2024-05-29 17:19:20 +02:00
ogAdmServer.h src: replace old function to update image information 2024-05-29 17:19:20 +02:00
rest.c rest: add cache/list 2024-05-30 11:16:20 +02:00
rest.h rest: add cache/list 2024-05-30 11:16:20 +02:00
schedule.c ogServer is AGPLv3+ 2021-05-04 17:59:11 +02:00
schedule.h #1052 Populate session column when adding actions 2021-07-22 15:52:12 +02:00
schema.c schema: add cache table to store image files in client 2024-05-29 17:19:18 +02:00
utils.c ogServer is AGPLv3+ 2021-05-04 17:59:11 +02:00
utils.h #971 rename sources folder to src 2020-06-26 20:13:42 +02:00
wol.c #915 consolidate WoL sender function 2021-12-22 17:30:04 +01:00
wol.h #915 consolidate WoL sender function 2021-12-22 17:30:04 +01:00