mirror of https://git.48k.eu/ogserver
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': [] } ... |
||
---|---|---|
.. | ||
cfg.c | ||
cfg.h | ||
client.c | ||
client.h | ||
core.c | ||
core.h | ||
dbi.c | ||
dbi.h | ||
json.c | ||
json.h | ||
legacy.c | ||
legacy.h | ||
list.h | ||
main.c | ||
ogAdmLib.c | ||
ogAdmLib.h | ||
ogAdmServer.c | ||
ogAdmServer.h | ||
rest.c | ||
rest.h | ||
schedule.c | ||
schedule.h | ||
schema.c | ||
utils.c | ||
utils.h | ||
wol.c | ||
wol.h |