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
12 stars 11 forks source link

Add support to BaseImage #145

Closed FrancescoVaiani closed 2 years ago

FrancescoVaiani commented 2 years ago

Add support retrieving IMAGE_ID AND IMAGE_VERSION from /etc/os-release for io.edgehog.devicemanager.BaseImage. Said data are optional and limited to supported OSs. /name is retrieved from IMAGE_ID; /version is retrieved from the first half of IMAGE_VERSION splitted over the character +; /buildId is retrieved from the first half of IMAGE_VERSION splitted over the character +; /fingerprint is left for future releases and only for OSs supporting image hashing.

Close #6

Signed-off-by: Francesco Vaiani francesco.vaiani@secomind.com

codecov[bot] commented 2 years ago

Codecov Report

Base: 66.81% // Head: 67.73% // Increases project coverage by +0.92% :tada:

Coverage data is based on head (e958bfe) compared to base (7b6df69). Patch coverage: 95.65% of modified lines in pull request are covered.

:exclamation: Current head e958bfe differs from pull request most recent head 45528b4. Consider uploading reports for the commit 45528b4 to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #145 +/- ## ========================================== + Coverage 66.81% 67.73% +0.92% ========================================== Files 22 23 +1 Lines 693 716 +23 ========================================== + Hits 463 485 +22 - Misses 230 231 +1 ``` | [Impacted Files](https://codecov.io/gh/edgehog-device-manager/edgehog-device-runtime/pull/145?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=edgehog-device-manager) | Coverage Δ | | |---|---|---| | [src/telemetry/mod.rs](https://codecov.io/gh/edgehog-device-manager/edgehog-device-runtime/pull/145/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=edgehog-device-manager#diff-c3JjL3RlbGVtZXRyeS9tb2QucnM=) | `82.78% <ø> (ø)` | | | [src/telemetry/base\_image.rs](https://codecov.io/gh/edgehog-device-manager/edgehog-device-runtime/pull/145/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=edgehog-device-manager#diff-c3JjL3RlbGVtZXRyeS9iYXNlX2ltYWdlLnJz) | `95.23% <95.23%> (ø)` | | | [src/lib.rs](https://codecov.io/gh/edgehog-device-manager/edgehog-device-runtime/pull/145/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=edgehog-device-manager#diff-c3JjL2xpYi5ycw==) | `56.16% <100.00%> (+0.60%)` | :arrow_up: | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=edgehog-device-manager). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=edgehog-device-manager)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.