summaryrefslogtreecommitdiffstats
path: root/crates/core/tedge
AgeCommit message (Collapse)Author
2022-02-03Bump Rust version to 1.58.1 (#803)Michael Abel
* Bump Rust version to 1.58.1 * Avoid to run the cargo msrv check ... ... in favour of the hardcoded rust-version in our Cargo.toml files * Update rust version string from rustc --version
2022-01-27#733 Configurable Device Type (#782)initard
* configurable device type (#733) Signed-off-by: initard <solo@softwareag.com> * adding device data fragment to mapper init (#733) Signed-off-by: initard <solo@softwareag.com> * fixing test Signed-off-by: initard <solo@softwareag.com> * adding device type when making new device (#733) Signed-off-by: initard <solo@softwareag.com> * removing comment and unused package Signed-off-by: initard <solo@softwareag.com> * passing down device type and removing tedge util Signed-off-by: initard <solo@softwareag.com> * string formatting (#733) Signed-off-by: initard <solo@softwareag.com> * documenting device data settings Signed-off-by: initard <solo@softwareag.com> * addressing minor pr comments on syntax (#733) Signed-off-by: initard <solo@softwareag.com> Co-authored-by: initard <solo@softwareag.com>
2022-01-24add retain flag to pub (#783)PradeepKiruvale
* add retain flag to pub * update document * add short option to retain flag * address comments Co-authored-by: Pradeep Kumar K J <pradeepkumar.kj@sofwareag.com>
2022-01-24[773] tedge connect panics (#780)PradeepKiruvale
* parse rsa pvt key * add tests * add failing test * add pase key test * Address review comments * clone to referenes Co-authored-by: Pradeep Kumar K J <pradeepkumar.kj@sofwareag.com>
2022-01-20Migrate to edition 2021 (#558)Lukasz Woznicki
* Migrate to edition 2021 * Update docs and workflows * Update to latest rust 1.58 * Force version in clippy Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>
2022-01-20Feature/686/c8y platform fragments (#757)initard
* adding c8y bridge to config (#686) Signed-off-by: initard <solo@softwareag.com> * creating inventory fragments and refactoring supported operations fragments (#686) Signed-off-by: initard <solo@softwareag.com> * adding device name to c8y converter (#686) Signed-off-by: initard <solo@softwareag.com> * added errors to ConversionError to support json (#686) Signed-off-by: initard <solo@softwareag.com> * adding c8y_fragments module to project (#686) Signed-off-by: initard <solo@softwareag.com> * c8y fragments file (#686) Signed-off-by: initard <solo@softwareag.com> * matching on read_json_from_file in case it is not present (#686) Signed-off-by: initard <solo@softwareag.com> * fixing existing tests to take device name in converter (#686) Signed-off-by: initard <solo@softwareag.com> * added tests for inventory from file + individual fragment (#686) Signed-off-by: initard <solo@softwareag.com> * test fix (#686) Signed-off-by: initard <solo@softwareag.com> * removing unit test, does not work (#686) Signed-off-by: initard <solo@softwareag.com> * adding newly created topic for test (#686) Signed-off-by: initard <solo@softwareag.com> * removed unit test and refactoring (#686) Signed-off-by: initard <solo@softwareag.com> * rename to inventory (#686) Signed-off-by: initard <solo@softwareag.com> * refactoring with consts and renaming error messages (#686) Signed-off-by: initard <solo@softwareag.com> * removing unwrap (#686) Signed-off-by: initard <solo@softwareag.com> Co-authored-by: initard <solo@softwareag.com>
2022-01-19update docs (#772)PradeepKiruvale
Co-authored-by: Pradeep Kumar K J <pradeepkumar.kj@sofwareag.com>
2022-01-19Patch version bump (#771)github-actions[bot]
* (cargo release) bump version 0.5.2
2022-01-19[710] Simplify tedge connect c8y (#751)PradeepKiruvale
* mqtt direct connection * break on error message receival * handle errors * refactor device connection * check connection with jwt token * add log * fix typos * remove unwrap * address review comments * fix the loop * fix * replace event loop without spwaning thread * switch to mosquito user to read keyfile * create function to read certificate * remove unwrap * address review comments * user_manager * remove rustls_native_certs * refactor check if bridge exists * fix typos Co-authored-by: Pradeep Kumar K J <pradeepkumar.kj@sofwareag.com>
2022-01-18Fix the paths of maintainer-scripts in Cargo.toml to adjust to cargo-deb ↵Rina Fujino
1.34.2 (#768) Signed-off-by: Rina Fujino <18257209+rina23q@users.noreply.github.com>
2022-01-12Feature/651/configurable temp path (#732)initard
* configurable download path (WIP) (#651) Signed-off-by: initard <solo@softwareag.com> * download path test (WIP) (#651) Signed-off-by: initard <solo@softwareag.com> * default download path #651 Signed-off-by: initard <solo@softwareag.com> * install to download.path test (#651) Signed-off-by: initard <solo@softwareag.com> * formatting issues (#651) Signed-off-by: initard <solo@softwareag.com> * formatting issues (#651) Signed-off-by: initard <solo@softwareag.com> * rename download path to tmp path & test fix (#651) Signed-off-by: initard <solo@softwareag.com> * cargo fmt Signed-off-by: initard <solo@softwareag.com> * download path integration test (#651) Signed-off-by: initard <solo@softwareag.com> * adding doc detailing how to set temp path (#651) Signed-off-by: initard <solo@softwareag.com> * test fix (#651) Signed-off-by: initard <solo@softwareag.com> * adding sudo to doc (#651) Signed-off-by: initard <solo@softwareag.com> * removing unused test (#651) Signed-off-by: initard <solo@softwareag.com> * renaming, refactoring and extra documentation (#651) Signed-off-by: initard <solo@softwareag.com> * fixing naming of tmp.path (#651) Signed-off-by: initard <solo@softwareag.com> * changes to tmp dto #651 Signed-off-by: initard <solo@softwareag.com> Co-authored-by: initard <solo@softwareag.com>
2022-01-10#639 Remove the dependency on systemd (#729)Rina Fujino
* The purpose of this change is to get rid of the hard-coded dependencies on systemd from tedge connect/disconnect, to allow users to use other system managers, e.g. OpenRC, initd, etc.. * If /etc/tedge/system.toml exists, tedge connect/disconnect uses the service manager defined in the file. * If the file is not given by user, tedge connect/disconnect uses /bin/systemctl as the service manager. (the same behaviour as we have it so far) * Delete old service implementation files for BSD, OpenRC, systemd, and NULL. * Add system.toml example files for BSD and OpenRC. * Add a reference guide to explain the format of system.toml configuration file. Signed-off-by: Rina Fujino <18257209+rina23q@users.noreply.github.com>
2022-01-05Patch version bump to 0.5.1 (#734)github-actions[bot]
* (cargo release) bump version to 0.5.1 Co-authored-by: Versioneer <info@thin-edge.io>
2021-12-10Bump version to 0.5.0. Update some docs to use 0.5.0 as well (#677)Lukasz Woznicki
Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com> Co-authored-by: Sebastian Büttner <sebastian.buettner@softwareag.com>
2021-12-10A quick workaround for the issue: use the same wait for mosquitto as on ↵Lukasz Woznicki
first restart. WIP on proper pub/sub check (#707) Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com> Co-authored-by: Rina Fujino <18257209+rina23q@users.noreply.github.com>
2021-12-09[680] Start the mapper only after the connection has been checked (#682)Didier Wenzek
* [680] Start the mapper only after the connection has been checked Workaround to fix #680. * Add `.` and `\n` Co-authored-by: Wenzek <diw@softwareag.com> Co-authored-by: Rina Fujino <18257209+rina23q@users.noreply.github.com>
2021-12-06tedge connect c8y checks configured URL and connected URL are the same (#661)Rina Fujino
* tedge connect c8y checks configured URL and connected URL are the same - Close #600 Signed-off-by: Rina Fujino <18257209+rina23q@users.noreply.github.com>
2021-12-02#624 Update dependencies and error handlers (#656)Lukasz Woznicki
* Update dependencies and error handlers Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>
2021-11-24Restructure directories of the workspace (#559)Lukasz Woznicki
* Restructure directories of the workspace * Rename c8y_translator_lib to c8y_translator * Update comment on how to get dummy plugin path Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>