Dominik Csapak
83cf350f04
proxmox-time: daily_duration.rs: rustfmt
...
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-12-01 07:12:51 +01:00
Dominik Csapak
78e1e8ce09
proxmox-time: move parse_daily_duration to daily_duration.rs
...
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-12-01 07:12:35 +01:00
Dominik Csapak
f61ee1372f
proxmox-time: split DateTimeValue into own file
...
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-12-01 06:55:51 +01:00
Dominik Csapak
07cc21bd5a
proxmox-time: move WeekDays into own file
...
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-12-01 06:55:32 +01:00
Dominik Csapak
a104c8fc41
proxmox-time: move common parse functions to parse_helpers
...
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-12-01 06:55:04 +01:00
Dominik Csapak
8e0fc66dfe
proxmox-time: calendar-events: make hour optional
...
to be compatible with our perl calendar events, we have to make hour optional
in that case we select every hour, so 'X' is the same as writing '*:X'
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-12-01 06:54:32 +01:00
Dominik Csapak
8480b7b4ff
proxmox-time: calendar-events: implement repeated ranges
...
so that we can have e.g. '7..17/2:00' as timespec
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-12-01 06:53:55 +01:00
Wolfgang Bumiller
fc80f519f4
api-macro: add #[updater(type = "...")]
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-11-30 17:21:20 +01:00
Wolfgang Bumiller
e461be1c9f
api-macro: clippy fixes
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-11-30 17:02:25 +01:00
Wolfgang Bumiller
60fa521095
time: clippy fixes
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-11-29 14:56:31 +01:00
Wolfgang Bumiller
36e064d73a
io: clippy fixes
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-11-29 14:51:26 +01:00
Wolfgang Bumiller
eac7ebfc55
sys: add back d/control
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-11-29 11:35:39 +01:00
Wolfgang Bumiller
30e99fef5b
bump proxmox-sys to 0.2.2
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-11-29 11:33:42 +01:00
Wolfgang Bumiller
35ecf9a551
sys: deprecate the identity macro
...
to be removed with the next major version bump
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-11-29 11:31:39 +01:00
Wolfgang Bumiller
9dcc229491
sys: depend on sortable-macro 0.1.2
...
drops the requirement for the identity macro
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-11-29 11:30:06 +01:00
Wolfgang Bumiller
3891953724
proxmox-sys: fix a warning in io_bail_last macro
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-11-29 11:29:31 +01:00
Wolfgang Bumiller
6679005b4f
bump proxmox-tfa to 2.0.0-1
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-11-28 17:00:29 +01:00
Wolfgang Bumiller
d85ebbb464
tfa: clippy fixes
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-11-28 17:00:29 +01:00
Wolfgang Bumiller
637188d4ba
tfa: make configured webauthn origin optional
...
and add a webauthn origin override parameter to all methods
accessing it
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-11-28 17:00:29 +01:00
Wolfgang Bumiller
508c1e7c85
tfa: let OriginUrl deref to its inner Url, add FromStr impl
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-11-28 17:00:29 +01:00
Wolfgang Bumiller
df3e1c53d5
tfa: add WebauthnConfig::digest method
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-11-28 17:00:29 +01:00
Wolfgang Bumiller
21b56f0c79
tfa: fix typo in docs
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-11-28 17:00:29 +01:00
Dietmar Maurer
248e888ae7
cleanup: avoid use anyhow::*
...
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2021-11-28 12:50:59 +01:00
Wolfgang Bumiller
0bb298b262
bump proxmox-sortable-macro to 0.1.2-1
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-11-26 14:11:30 +01:00
Wolfgang Bumiller
2ce2136744
sortable-macro: drop anyhow dependency
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-11-26 14:10:14 +01:00
Wolfgang Bumiller
be7b330d8f
sortable-macro: remove need for 'identity' macro
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-11-26 14:10:14 +01:00
Dietmar Maurer
cdf8220676
bump proxmox-io version to 1.0.1-1
...
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2021-11-25 12:16:03 +01:00
Dietmar Maurer
10ad340322
bump proxmox-sys version to 0.2.1
...
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2021-11-25 12:12:35 +01:00
Dietmar Maurer
41d3df8950
proxmox-io: imported pbs-tools/src/sync/std_channel_writer.rs
...
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2021-11-25 11:21:31 +01:00
Dietmar Maurer
80df41a887
proxmox-sys: import pipe() function from pbs-toos/src/io.rs
...
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2021-11-25 10:34:33 +01:00
Dietmar Maurer
93625e4f87
update to proxmox-sys 0.2 crate
...
- imported pbs-api-types/src/common_regex.rs from old proxmox crate
- use hex crate to generate/parse hex digest
- remove all reference to proxmox crate (use proxmox-sys and
proxmox-serde instead)
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2021-11-24 10:32:27 +01:00
Dietmar Maurer
d357ce2070
remove proxmox crate (no longer used)
...
Most functionality is now in proxmox-sys. The common-regex.rs is
moved back into proxmox-backup-server, because it is only used there.
Serde code is now in new proxmox-serde crate.
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2021-11-24 10:00:38 +01:00
Dietmar Maurer
82245339b8
use new proxmox-sys 0.2.0 for all crates
...
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2021-11-24 10:00:38 +01:00
Dietmar Maurer
dace74a556
bump proxmox-sys version to 0.2.0
...
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2021-11-24 10:00:38 +01:00
Dietmar Maurer
194b028789
proxmox-serde: add new crate with code from proxmox/src/tools/serde.rs
2021-11-24 10:00:38 +01:00
Dietmar Maurer
b06807532e
proxmox-sys: add stortable-macro feature and remove it from proxmox
...
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2021-11-24 10:00:38 +01:00
Dietmar Maurer
ee4e56e372
proxmox-sys: moved nodename from proxmox crate
...
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2021-11-24 10:00:38 +01:00
Dietmar Maurer
ec3965fdad
proxmox-sys: fix regression tests
2021-11-24 10:00:38 +01:00
Dietmar Maurer
21686c99e6
proxmox-sys: fixup worker task log macros
2021-11-24 10:00:38 +01:00
Dietmar Maurer
6efbe4e6e8
proxmox-sys: imported proxmox/src/tools/systemd.rs
...
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2021-11-24 10:00:38 +01:00
Dietmar Maurer
ba1f59c098
proxmox-sys: imported proxmox/src/tools/email.rs
...
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2021-11-24 10:00:38 +01:00
Dietmar Maurer
0806020ebf
proxmox-sys: improve dev docs
...
And move WorkerTaskContext to top level.
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2021-11-24 10:00:38 +01:00
Dietmar Maurer
e011964f81
proxmox-sys: imported pbs-tools/src/command.rs
...
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2021-11-24 10:00:38 +01:00
Dietmar Maurer
4c7bd0ee50
proxmox-sys: imported pbs-tools/src/acl.rs
...
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2021-11-24 10:00:38 +01:00
Dietmar Maurer
66aea897b6
proxmox-sys: imported pbs-tool/src/xattr.rs
2021-11-24 10:00:38 +01:00
Dietmar Maurer
d98ed51fa8
proxmox-sys: move file_get_non_comment_lines to src/fs/file.rs
...
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2021-11-24 10:00:38 +01:00
Dietmar Maurer
92caf51634
proxmox-sys: split xattr code into extra file
...
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2021-11-24 10:00:38 +01:00
Dietmar Maurer
d0b7e1e299
proxmox-sys: imported pbs-tools/src/fs.rs to src/fs/read_dir.rs
...
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2021-11-24 10:00:38 +01:00
Dietmar Maurer
32b69176dd
proxmox-sys: imported proxmox tools/sys
...
And split some files into smaller parts.
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2021-11-24 10:00:38 +01:00
Wolfgang Bumiller
4b1cb9f9b3
bump proxmox-tfa to 1.3.2-1
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-11-22 13:30:51 +01:00