MCPcopy Create free account
hub / github.com/78/tenbox / ImageFileToJson

Function ImageFileToJson

src/daemon/cloud_tunnel.cpp:325–332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323}
324
325nlohmann::json ImageFileToJson(const image_source::ImageFile& file) {
326 return {
327 {"name", file.name},
328 {"url", file.url},
329 {"sha256", file.sha256},
330 {"size", file.size},
331 };
332}
333
334nlohmann::json ImageToJson(const image_source::ImageEntry& image, const std::string& images_dir) {
335 nlohmann::json files = nlohmann::json::array();

Callers 1

ImageToJsonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected