edgehog-device-manager / edgehog-device-runtime

Edgehog Device Runtime is a portable middleware written in Rust, that enables remote device management on Linux-based systems.
Apache License 2.0
11 stars 10 forks source link

[Docker] Create image request #277

Open joshuachp opened 11 months ago

joshuachp commented 11 months ago

Create the structure to receive the CreateImageRequest and publish the AvailableImages property.

### Create image request ```json { "interface_name": "io.edgehog.devicemanager.apps.CreateImageRequest", "version_major": 0, "version_minor": 1, "type": "datastream", "ownership": "server", "aggregation": "object", "mappings": [ { "endpoint": "/image/id", "type": "string" }, { "endpoint": "/image/repo", "type": "string" }, { "endpoint": "/image/name", "type": "string" }, { "endpoint": "/image/tag", "type": "string" } ] } ``` ### Available Images ```json { "interface_name": "io.edgehog.devicemanager.apps.AvailableImages", "version_major": 0, "version_minor": 1, "type": "properties", "ownership": "device", "mappings": [ { "allow_unset": true, "endpoint": "/%{image_id}/pulled", "type": "boolean" } ] } ```