Commit Graph

213 Commits

Author SHA1 Message Date
Nadja Reitzenstein
4306b5b691 More cleanup.
Also, this MR closes #48
2022-02-26 14:45:17 +01:00
Nadja Reitzenstein
ea863e71af Makes rumqttc futures run on the tokio runtime as required. 2022-02-26 14:30:06 +01:00
Nadja Reitzenstein
e9b1ba1f50 Use our own MQTT URL dissector so existing configs don't break 2022-02-26 14:16:46 +01:00
Nadja Reitzenstein
e6cb1a958d Fixing more warnings 2022-02-26 14:02:47 +01:00
Nadja Reitzenstein
68418161d7 Replaces paho_mqtt with rumqttc 2022-02-26 14:01:06 +01:00
Nadja Reitzenstein
53cdfeda5d Fix warnings 2022-02-26 14:00:00 +01:00
Nadja Reitzenstein
a7d30930ba Don't default to MQTT 3.1 either 2022-02-26 11:31:46 +01:00
Nadja Reitzenstein
337e8aa563 Sets a 20 second MQTT keepalive intervall 2022-02-26 11:31:46 +01:00
Nadja Reitzenstein
2777645205 Make MQTT client try to reconnect on connection lost or disconnect 2022-02-26 11:31:45 +01:00
Nadja Reitzenstein
89b292a8ac Disclose machines that are used by yourself 2022-02-26 11:31:24 +01:00
Nadja Reitzenstein
4858a6a6fb Implement a simple audit log 2022-01-17 18:36:22 +01:00
Nadja Reitzenstein
bf9fadbf74 Implement getAPIVersion and getServerRelease methods 2022-01-17 18:36:22 +01:00
Nadja Reitzenstein
0da3213395 Improve documentation around example setup
Fixes: #38
2022-01-17 18:36:22 +01:00
Nadja Reitzenstein
f524079914 Implement categories support 2022-01-17 18:36:22 +01:00
Nadja Reitzenstein
17005c0536 Properly parse optional config elements 2022-01-17 18:36:22 +01:00
Nadja Reitzenstein
a0c280eae4 Export some more version metadata 2022-01-17 18:36:22 +01:00
Nadja Reitzenstein
f397e1e636 Better tls connection handling with smol::io::split 2021-12-09 21:54:57 +01:00
Nadja Reitzenstein
83f5fe8265 Implement TLS handling 2021-12-09 20:54:54 +01:00
Nadja Reitzenstein
a09c3d3880 Fix #29 2021-12-07 23:02:26 +01:00
Nadja Reitzenstein
6b88191dc5 Set previous user on all state changes if required
Fixes: #30
2021-12-05 23:43:36 +01:00
Nadja Reitzenstein
6e91295cc0 Fix URN 2021-12-05 23:38:05 +01:00
Nadja Reitzenstein
6d3e08955a Config improvements and make shellies have a topic parameter 2021-12-05 19:23:35 +01:00
Nadja Reitzenstein
eeb0ff306b Fix Machines using their name instead of their id 2021-12-05 18:53:02 +01:00
Nadja Reitzenstein
47781b445e Make machine correctly load state and set previous/current use in API 2021-12-01 15:46:52 +01:00
Nadja Reitzenstein
9fcb7664aa Also catch SIGQUIT and SIGTERM and clean up properly 2021-11-26 03:42:30 +01:00
Nadja Reitzenstein
200179f621 Returns current user 2021-11-26 02:21:35 +00:00
Nadja Reitzenstein
76a1def456 Implement getting a machine by URN 2021-11-26 00:08:24 +01:00
Nadja Reitzenstein
80df913089 Also set URN and wiki links on machine lists 2021-11-25 23:45:00 +01:00
Nadja Reitzenstein
7bcb0712ae Implement wiki and URN links 2021-10-20 09:43:39 +02:00
Nadja Reitzenstein
14402d627c Be consistent in the api 2021-09-21 22:57:50 +02:00
Nadja Reitzenstein
ba73fe80c5 Re-enable MQTT 2021-09-21 18:45:35 +02:00
Nadja Reitzenstein
04052b6193 better output and examples 2021-09-21 09:22:54 +02:00
Nadja Reitzenstein
aa58657122 Let's not break, shall we? ^^' 2021-09-21 09:06:49 +02:00
Nadja Reitzenstein
bd635d97ac Make work 2021-09-21 07:54:18 +02:00
Nadja Reitzenstein
f4fead00e6 Only return caps the user can have 2021-09-21 07:54:18 +02:00
Nadja Reitzenstein
27791ed19b Move around Ownership until it compiles 2021-09-21 07:54:18 +02:00
Nadja Reitzenstein
e678e67d32 Pointerwise moving is even easier 2021-09-21 07:54:18 +02:00
Nadja Reitzenstein
d29b0c207d Unused lifetime parameter are unused. 2021-09-21 07:54:18 +02:00
Nadja Reitzenstein
4e3bb44040 Start the user API 2021-09-21 07:54:18 +02:00
Nadja Reitzenstein
006ae0af68 Better user 2021-09-21 07:54:18 +02:00
Nadja Reitzenstein
2fe6aa41c1 Dump RoleIdentifier the right way around 2021-09-21 07:54:18 +02:00
Nadja Reitzenstein
bf840a2c94 GetMachine impl 2021-09-19 20:34:03 +02:00
Nadja Reitzenstein
ba7a59c3de Stuff to make work 2021-09-19 19:48:16 +02:00
Nadja Reitzenstein
abc9126137 Fix clippy lints 2021-09-19 19:48:16 +02:00
Nadja Reitzenstein
660fe5ed9e Most of Machine implemented 2021-09-19 15:58:37 +02:00
Nadja Reitzenstein
e5903961d1 More API implementation 2021-09-19 15:58:37 +02:00
Nadja Reitzenstein
b8a9b64953 Remove removed schemata include 2021-09-19 15:58:37 +02:00
Gregor Reitzenstein
a1355aaa6a Fix all tests 2021-09-19 15:58:37 +02:00
Gregor Reitzenstein
8ceee0bd94 Better database abstraction 2021-09-19 15:58:37 +02:00
Gregor Reitzenstein
d0b73c9b49 make compile 2021-09-19 15:58:37 +02:00