summaryrefslogtreecommitdiffstats
path: root/src/dbi.h
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2022-05-19 17:18:52 +0200
committerJavier Sánchez Parra <jsanchez@soleta.eu>2022-05-26 15:15:52 +0200
commitb86b6e1443a6dfd21fa1520f7c4421a44d3595f3 (patch)
tree3a9032043cd29619eced8fab346f5c8d4ca4ebc7 /src/dbi.h
parentd5e6dc0990cb22efc05dda405dfa1e49f60359f5 (diff)
#915 Extend GET /images function with the repository IP
This extension adds the field 'repo_ip', indicating which repository has the image. This new field is useful when restoring an image. Request: GET /images Response: 200 OK { "disk": { "free": 37091418112, "total": 52573995008 }, "images": [ { "datasize": 5939200000, "id": 25, "modified": "Wed Oct 14 11:49:00 2020", "name": "archlinux", "permissions": "744", "size": 1844222333, "software_id": 19, "type": 1 "repo_ip": "192.168.56.10" } ] }
Diffstat (limited to 'src/dbi.h')
-rw-r--r--src/dbi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dbi.h b/src/dbi.h
index cffb458..2423503 100644
--- a/src/dbi.h
+++ b/src/dbi.h
@@ -53,6 +53,7 @@ struct og_image_legacy {
struct og_image {
char name[OG_DB_IMAGE_NAME_MAXLEN + 1];
char description[OG_DB_IMAGE_DESCRIPTION_MAXLEN + 1];
+ char repo_ip[OG_DB_IP_MAXLEN + 1];
uint64_t software_id;
uint64_t center_id;
uint64_t datasize;