summaryrefslogtreecommitdiffstats
path: root/crates/core
AgeCommit message (Collapse)Author
2022-08-30Move alarms converter code to a separate file (#1366)PradeepKiruvale
* Move c8y alarms converter code to a separate file Signed-off-by: Pradeep Kumar K J <pradeepkumar.kj@softwareag.com>
2022-08-22Add manifest fields to all crates in meta-tedgeMarcel Guzik
Add `homepage` and `manifest` fields in `Cargo.toml`s of crates used in meta-tedge so that cargo-bitbake utility can generate recipe files for them. Signed-off-by: Marcel Guzik <marcel.guzik2@inetum.com>
2022-08-19Merge pull request #1348 from thin-edge/create-pull-request/patchAlbin Suresh
Patch version bump
2022-08-18Merge pull request #1349 from matthiasbeyer/clippy-fixesDidier Wenzek
Clippy fixes
2022-08-18Merge pull request #1279 from matthiasbeyer/remove-let-unitDidier Wenzek
Clippy: Remove let unit
2022-08-18Merge pull request #1338 from ↵initard
initard/feature/1070/tedge-agent-log-directory-path-configurable make log directory configurable during init
2022-08-18Fix clippy: Remove unnecessary .to_string()Matthias Beyer
This fixes clippy::unnecessary_to_owned Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-18Fix clippy: thin_edge_json: Add derive for EqMatthias Beyer
This fixes clippy::derive_partial_eq_without_eq Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-18Fix clippy: tedge_mapper: Add derive for EqMatthias Beyer
This fixes clippy::derive_partial_eq_without_eq Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-18Fix clippy: tedge_agent: Add derive for EqMatthias Beyer
This fixes clippy::derive_partial_eq_without_eq Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-18Fix clippy: tedge: Add derive for EqMatthias Beyer
This fixes clippy::derive_partial_eq_without_eq Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-18Fix clippy: c8y_translator: Add derive for EqMatthias Beyer
This fixes clippy::derive_partial_eq_without_eq Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-18Fix clippy: c8y_smartrest: Add derive for EqMatthias Beyer
This fixes clippy::derive_partial_eq_without_eq Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-18Fix clippy: c8y_api: Add derive for EqMatthias Beyer
This fixes clippy::derive_partial_eq_without_eq Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-18Fix clippy: agent_interface: Add derive for EqMatthias Beyer
This fixes clippy::derive_partial_eq_without_eq Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-18make log directory configurable during initinitard
* the log directory configured in tedge config set logs.path is now used in --init Signed-off-by: initard <alex.solomes@softwareag.com>
2022-08-18Fix clippy in thin_edge_json: Remove let-unit-valueMatthias Beyer
This patch fixes `clippy::let_unit_value`. Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-18Fix clippy in tedge_mapper: Remove let-unit-valueMatthias Beyer
This patch fixes `clippy::let_unit_value`. Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-18Fix clippy in tedge_agent: Remove let-unit-valueMatthias Beyer
This patch fixes `clippy::let_unit_value`. Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-18Fix clippy in tedge: Remove let-unit-valueMatthias Beyer
This patch fixes `clippy::let_unit_value`. Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-18Fix clippy in plugin_sm: Remove let-unit-valueMatthias Beyer
This patch fixes `clippy::let_unit_value`. Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-18Fix clippy in c8y_translator: Remove let-unit-valueMatthias Beyer
This patch fixes `clippy::let_unit_value`. Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-18Fix clippy in c8y_smartrest: Remove let-unit-valueMatthias Beyer
This patch fixes `clippy::let_unit_value`. Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-18Fix clippy in c8y_api: Remove let-unit-valueMatthias Beyer
This patch fixes `clippy::let_unit_value`. Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-18Restart of tedge-mapper-c8y is recreating deleted child devices (#1344)PradeepKiruvale
* Create external device only after alarm message sync Signed-off-by: Pradeep Kumar K J <pradeepkumar.kj@softwareag.com>
2022-08-18(cargo release) bump versionVersioneer
2022-08-17Merge pull request #1330 from Bravo555/add-homepage-fieldDidier Wenzek
Yocto: Add homepage and repository fields to manifests of tedge and tedge_mapper crates
2022-08-16Merge pull request #1318 from matthiasbeyer/tedge-watchdog/systemd-only-on-linuxDidier Wenzek
Make systemd watchdog backend only build for linux
2022-08-16Make systemd watchdog backend only build for linuxMatthias Beyer
This patch ensures that the systemd watchdog backend is only used when building for linux. Right now, there is no other watchdog implementation. Thus, there is a "dummy_watchdog" module introduced that does nothing. This might be removed and replaced by something specific, if we ever build thin-edge.io for other targets, such as Apple, FreeBSD or others. Suggested-by: Albin Suresh <albin.suresh@softwareag.com> Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-11Add homepage and repository fields to manifests of tedge and tedge_mapper cratesMarcel Guzik
This change is necessary to generate bitbake recipes from tedge and tedge_mapper crates as part of #1329. Currently, we're trying to set up a minimal working example, and as such only these crates required this change. Signed-off-by: Marcel Guzik <marcel.guzik2@inetum.com>
2022-08-08tedge_mapper: Remove let _ =Matthias Beyer
These were introduced in 098cd1bc0b8a5fb46d114733c5f5c632fc25587e ("Alarms for child devices (#1314)") from pull request #1314 where my review comments were not fixed, so I'm gonna fix these here. Fixes: 098cd1bc0b8a5fb46d114733c5f5c632fc25587e ("Alarms for child devices (#1314)") Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-08c8y_translator: Remove unnecessary let _ =Matthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-08tedge: Remove unnecessary let _ =Matthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-08Alarms for child devices (#1314)PradeepKiruvale
With this feature the child device now able to send an alarm message to Cumulocity cloud. The child device must use the mqtt topic to publish the alarm message, then thin-edge device will pickup this alarm message and forward it to the cumulocity cloud. Signed-off-by: Pradeep Kumar K J <pradeepkumar.kj@softwareag.com>
2022-08-06Do not necessarily pass &str anymore to fs helper fnsMatthias Beyer
This patch changs the calls of the fs helper functions where the interface of the functions was changed from taking `&str` as path argument to `impl AsRef<Path>`. Because of this, it is not necessary anymore that `&str` is passed, but `Path`es can be passed or, as in most cases, the ad-hoc created `String` objects can be passed by value instead of by reference, resulting in less mental load on the calling side. Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-07-29MQTT health endpoints for tedge plugin extensions (#1299)PradeepKiruvale
* tedge watchdog for c8y-log-plugin and c8y-config-plugin This PR also refactors the health check by removing the duplicate code. Pushed the duplicate code to one place and reused it across all the thin-edge services. Signed-off-by: Pradeep Kumar K J <pradeepkumar.kj@softwareag.com>
2022-07-26Merge pull request #1298 from matthiasbeyer/remove-clock-serdeDidier Wenzek
Remove "serde" module in "clock" crate
2022-07-26Replace clock serde functionality with time serde functionalityMatthias Beyer
The serde module from the "clock" crate was only a reexport of the serde module of the "time" crate, so we can simply use the latter here. Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-07-26Merge pull request #1250 from ↵initard
initard/improvement/1173/inotify-tedge-mapper-dynamic-discovery-of-operations tedge mapper dynamic discovery of operations
2022-07-25implementing fs-notify crate for dynamic discovery of operationsinitard
Signed-off-by: initard <solo@softwareag.com>
2022-07-25Bump serial_test from 0.6.0 to 0.8.0dependabot[bot]
Bumps [serial_test](https://github.com/palfrey/serial_test) from 0.6.0 to 0.8.0. - [Release notes](https://github.com/palfrey/serial_test/releases) - [Commits](https://github.com/palfrey/serial_test/compare/v0.6.0...v0.8.0) --- updated-dependencies: - dependency-name: serial_test dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2022-07-25Merge pull request #1288 from thin-edge/dependabot/cargo/test-case-2.2.1Didier Wenzek
Bump test-case from 2.1.0 to 2.2.1
2022-07-22Bump clap from 3.2.12 to 3.2.14dependabot[bot]
Bumps [clap](https://github.com/clap-rs/clap) from 3.2.12 to 3.2.14. - [Release notes](https://github.com/clap-rs/clap/releases) - [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md) - [Commits](https://github.com/clap-rs/clap/compare/v3.2.12...v3.2.14) --- updated-dependencies: - dependency-name: clap dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2022-07-22Bump test-case from 2.1.0 to 2.2.1dependabot[bot]
Bumps [test-case](https://github.com/frondeus/test-case) from 2.1.0 to 2.2.1. - [Release notes](https://github.com/frondeus/test-case/releases) - [Changelog](https://github.com/frondeus/test-case/blob/master/CHANGELOG.md) - [Commits](https://github.com/frondeus/test-case/compare/v2.1.0...v2.2.1) --- updated-dependencies: - dependency-name: test-case dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2022-07-22Extend events API to support child devices (#1243)PradeepKiruvale
* Events for child devices Extend events APIs to send the event messages from external/child device to device twin in the cloud. Signed-off-by: Pradeep Kumar K J <pradeepkumar.kj@softwareag.com>
2022-07-21Bump mockall from 0.10.2 to 0.11.1dependabot[bot]
Bumps [mockall](https://github.com/asomers/mockall) from 0.10.2 to 0.11.1. - [Release notes](https://github.com/asomers/mockall/releases) - [Changelog](https://github.com/asomers/mockall/blob/master/CHANGELOG.md) - [Commits](https://github.com/asomers/mockall/compare/v0.10.2...v0.11.1) --- updated-dependencies: - dependency-name: mockall dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2022-07-20Remove unused testDidier Wenzek
The test `create_certificate_as_root_should_switch_to_mosquitto` were behind features and never triggered. As a consequence this test has not been maintained and is no more aligned with the code base (the tedge config is no more user dependent, there is --config-dir option, the tedge command is no more running as tegde). Futhermore this test was using `sudo`. Better to simply remove it. Signed-off-by: Didier Wenzek <didier.wenzek@free.fr>
2022-07-20Merge pull request #1257 from thin-edge/create-pull-request/patchRina Fujino
Patch version bump 0.7.3
2022-07-20(cargo release) bump versionVersioneer
2022-07-20publishing supported log types if c8y bridge is upinitard
Signed-off-by: initard <solo@softwareag.com>