]> git.proxmox.com Git - proxmox.git/log
proxmox.git
2 years agohttp: websocket: avoid modulo for power of 2
Thomas Lamprecht [Fri, 4 Feb 2022 16:12:05 +0000 (17:12 +0100)]
http: websocket: avoid modulo for power of 2

even for the small cases this can matter

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agotfa: fix hyperlink in doc comment
Thomas Lamprecht [Fri, 4 Feb 2022 16:06:02 +0000 (17:06 +0100)]
tfa: fix hyperlink in doc comment

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agohttp: websocket: rustfmt and small cleanups
Thomas Lamprecht [Fri, 4 Feb 2022 16:05:45 +0000 (17:05 +0100)]
http: websocket: rustfmt and small cleanups

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agohttp: websocket: doc wording cleanups
Thomas Lamprecht [Fri, 4 Feb 2022 16:04:50 +0000 (17:04 +0100)]
http: websocket: doc wording cleanups

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoproxmox-http: websocket: fix comment about callback
Dominik Csapak [Fri, 4 Feb 2022 09:52:40 +0000 (10:52 +0100)]
proxmox-http: websocket: fix comment about callback

this was once a callback in an early version, but it changed to a
channel, but the comment was not updated

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agometrics: cleanup
Wolfgang Bumiller [Thu, 3 Feb 2022 12:39:56 +0000 (13:39 +0100)]
metrics: cleanup

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoproxmox-metrics: re-bump version for first upload
Thomas Lamprecht [Thu, 3 Feb 2022 12:11:38 +0000 (13:11 +0100)]
proxmox-metrics: re-bump version for first upload

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agometrics: use builder pattern for adding tags
Wolfgang Bumiller [Wed, 2 Feb 2022 14:20:29 +0000 (15:20 +0100)]
metrics: use builder pattern for adding tags

Rather than going from a list of `(&str, &str)` tuples to a
`HashMap<String, String>`, add a `.tag()` builder method
and use `Cow` behind the scenes to efficiently allow the
caller to choose between a static literal and a `String`
value.

Previously the methods forced `&str` slices and then
always-copied those into `String`s even if the caller could
just *move* it.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agometrics: more doc fixups
Wolfgang Bumiller [Wed, 2 Feb 2022 13:30:14 +0000 (14:30 +0100)]
metrics: more doc fixups

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agodoc fixups
Wolfgang Bumiller [Wed, 2 Feb 2022 13:14:09 +0000 (14:14 +0100)]
doc fixups

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agobump proxmox-async to 0.3.3
Wolfgang Bumiller [Wed, 2 Feb 2022 11:58:13 +0000 (12:58 +0100)]
bump proxmox-async to 0.3.3

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoproxmox-metrics: implement metrics server client code
Dominik Csapak [Wed, 2 Feb 2022 09:50:11 +0000 (10:50 +0100)]
proxmox-metrics: implement metrics server client code

influxdb (udp + http(s)) only for now

general architecture looks as follows:

the helper functions influxdb_http/udp start a tokio task and return
a Metrics struct, that can be used to send data and wait for the tokio
task. if the struct is dropped, the task is canceled.

so it would look like this:
  let metrics = influxdb_http(..params..)?;
  metrics.send_data(...).await?;
  metrics.send_data(...).await?;
  metrics.join?;

on join, the sending part of the channel will be dropped and thus
flushing the remaining data to the server

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
[renamed proxmox_async::io::udp -> proxmox_async::net::udp]
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoproxmox_async: rustfmt
Wolfgang Bumiller [Wed, 2 Feb 2022 11:55:01 +0000 (12:55 +0100)]
proxmox_async: rustfmt

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoproxmox_async: move io::udp to net::udp
Wolfgang Bumiller [Wed, 2 Feb 2022 11:47:06 +0000 (12:47 +0100)]
proxmox_async: move io::udp to net::udp

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoproxmox-async: add udp::connect() helper
Dominik Csapak [Wed, 2 Feb 2022 09:50:10 +0000 (10:50 +0100)]
proxmox-async: add udp::connect() helper

so that we do not have to always check the target ipaddr family manually

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoproxmox-sys: add FileSystemInformation struct and helper
Dominik Csapak [Mon, 17 Jan 2022 10:48:17 +0000 (11:48 +0100)]
proxmox-sys: add FileSystemInformation struct and helper

code mostly copied from proxmox-backups 'disk_usage'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoproxmox-sys: make some structs serializable
Dominik Csapak [Mon, 17 Jan 2022 10:48:16 +0000 (11:48 +0100)]
proxmox-sys: make some structs serializable

we already depend on serde anyway, and this makes gathering structs a
bit more comfortable

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agorustfmt
Wolfgang Bumiller [Thu, 20 Jan 2022 09:12:02 +0000 (10:12 +0100)]
rustfmt

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agobump proxmox-async to 0.3.2
Wolfgang Bumiller [Thu, 20 Jan 2022 09:09:11 +0000 (10:09 +0100)]
bump proxmox-async to 0.3.2

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agodrop RawWaker usage
Wolfgang Bumiller [Thu, 20 Jan 2022 09:05:07 +0000 (10:05 +0100)]
drop RawWaker usage

this was also leaking a refcount before, this is fixed now

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoproxmox-async: bump version to 0.3.1
Thomas Lamprecht [Wed, 12 Jan 2022 14:47:12 +0000 (15:47 +0100)]
proxmox-async: bump version to 0.3.1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agofix #3618: proxmox-async: zip: add conditional EFS flag to zip files
Dominik Csapak [Mon, 10 Jan 2022 11:23:41 +0000 (12:23 +0100)]
fix #3618: proxmox-async: zip: add conditional EFS flag to zip files

this flag marks the file names as 'UTF-8' encoded if they are valid UTF-8.

By default, encoding of file names in zips are defined as code page 437,
but we save the filenames as bytes (like in linux fs).

For linux systems this would not be a problem since most tools
simply use the filenames as bytes, but for the zip utility under
windows it's important since NTFS uses UTF-16 for file names.

For filenames that are valid UTF-8, they are decoded as UTF-8 everywhere
correctly (Linux as UTF-8 bytes, Windows as correct UTF-16 sequence) and
for other filenames with a high bit set, it depends on the OS/Software
what exactly happens. Some cases below:

* Windows + Built-in/7zip: decoded as CP437
* Debian + zip: Bytes taken as-is
* Debian + 7z: interpreted as Windows1252, decoded as UTF-8

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoasync: track d/control
Fabian Grünbichler [Thu, 30 Dec 2021 10:07:43 +0000 (11:07 +0100)]
async: track d/control

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoproxmox-serde: track d/control
Fabian Grünbichler [Thu, 30 Dec 2021 10:07:25 +0000 (11:07 +0100)]
proxmox-serde: track d/control

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoshared-memory: track d/control
Fabian Grünbichler [Thu, 30 Dec 2021 10:06:56 +0000 (11:06 +0100)]
shared-memory: track d/control

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agotfa: ignore uncompilable doctest
Fabian Grünbichler [Thu, 30 Dec 2021 10:04:39 +0000 (11:04 +0100)]
tfa: ignore uncompilable doctest

the doctest code uses non-public `fold`, up for re-evaluation if this
gets moved to proxmox-serde and made public..

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoshared-memory: make tests integration tests
Fabian Grünbichler [Thu, 30 Dec 2021 10:02:54 +0000 (11:02 +0100)]
shared-memory: make tests integration tests

same as with sys/xattr, these touch files, so should use a tmpdir
provided by cargo, which requires them being integration tests.

if the tmpdir doesn't support O_TMPFILE (like overlayfs), the test is
not run (unfortunately, there is no way to indicate this via the test
result like with other test frameworks).

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agosys: make xattr tests integration tests
Fabian Grünbichler [Thu, 30 Dec 2021 10:01:19 +0000 (11:01 +0100)]
sys: make xattr tests integration tests

these touch files, so should use the cargo-provided tmp dir, but that is
only available to benchmarks and integration tests, not unit tests.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoadd missing library dependencies
Fabian Grünbichler [Thu, 30 Dec 2021 10:00:13 +0000 (11:00 +0100)]
add missing library dependencies

without these, the generated d/control files are incomplete and builds
fail on clean systems.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoswitch to new schema verify methods
Fabian Grünbichler [Wed, 29 Dec 2021 09:53:25 +0000 (10:53 +0100)]
switch to new schema verify methods

the deprecated ones only forward to the new ones anyway..

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoschema: fix deprecation warnings in tests
Wolfgang Bumiller [Fri, 17 Dec 2021 07:07:02 +0000 (08:07 +0100)]
schema: fix deprecation warnings in tests

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agotime: fix tests
Wolfgang Bumiller [Fri, 17 Dec 2021 07:04:12 +0000 (08:04 +0100)]
time: fix tests

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoschema: bump regex dep to 1.5
Wolfgang Bumiller [Thu, 16 Dec 2021 10:16:00 +0000 (11:16 +0100)]
schema: bump regex dep to 1.5

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agobump proxmox-schema to 1.1.0-1
Wolfgang Bumiller [Thu, 16 Dec 2021 10:05:15 +0000 (11:05 +0100)]
bump proxmox-schema to 1.1.0-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoschema: deny unsafe_op_in_unsafe_fn
Wolfgang Bumiller [Thu, 16 Dec 2021 09:17:41 +0000 (10:17 +0100)]
schema: deny unsafe_op_in_unsafe_fn

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoschema: make verification functions methods
Wolfgang Bumiller [Thu, 16 Dec 2021 09:16:55 +0000 (10:16 +0100)]
schema: make verification functions methods

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoproxmox-router: fix glob-import of anyhow
Thomas Lamprecht [Mon, 13 Dec 2021 07:13:05 +0000 (08:13 +0100)]
proxmox-router: fix glob-import of anyhow

will break usage of the `Result::Ok()' with anyhow 1.0.49+ as that
added a new Ok helper, so a glob-import would make that shadow the
core one.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoproxmox-sys: fix glob-import of anyhow
Thomas Lamprecht [Mon, 13 Dec 2021 06:46:29 +0000 (07:46 +0100)]
proxmox-sys: fix glob-import of anyhow

will break usage of the `Result::Ok()' with anyhow 1.0.49+ as that
added a new Ok helper, so a glob-import would make that shadow the
core one.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoschema: formatting
Wolfgang Bumiller [Tue, 7 Dec 2021 10:53:18 +0000 (11:53 +0100)]
schema: formatting

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoshared-memory: formatting
Wolfgang Bumiller [Tue, 7 Dec 2021 10:52:58 +0000 (11:52 +0100)]
shared-memory: formatting

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoserde: formatting
Wolfgang Bumiller [Tue, 7 Dec 2021 10:52:39 +0000 (11:52 +0100)]
serde: formatting

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agotfa: formatting
Wolfgang Bumiller [Tue, 7 Dec 2021 10:51:22 +0000 (11:51 +0100)]
tfa: formatting

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoio: formatting
Wolfgang Bumiller [Tue, 7 Dec 2021 10:51:15 +0000 (11:51 +0100)]
io: formatting

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoapi-macro: formatting
Wolfgang Bumiller [Tue, 7 Dec 2021 10:51:09 +0000 (11:51 +0100)]
api-macro: formatting

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agouuid: clippy fixes
Wolfgang Bumiller [Tue, 7 Dec 2021 10:50:27 +0000 (11:50 +0100)]
uuid: clippy fixes

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoshared-memory: clippy fixes (docs)
Wolfgang Bumiller [Tue, 7 Dec 2021 10:49:23 +0000 (11:49 +0100)]
shared-memory: clippy fixes (docs)

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agohttp: clippy fixes
Wolfgang Bumiller [Tue, 7 Dec 2021 10:45:52 +0000 (11:45 +0100)]
http: clippy fixes

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agosys: another minor clippy fix
Wolfgang Bumiller [Tue, 7 Dec 2021 10:43:28 +0000 (11:43 +0100)]
sys: another minor clippy fix

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agosys: formatting
Wolfgang Bumiller [Tue, 7 Dec 2021 10:41:47 +0000 (11:41 +0100)]
sys: formatting

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agosys: clippy fixes
Wolfgang Bumiller [Tue, 7 Dec 2021 10:41:25 +0000 (11:41 +0100)]
sys: clippy fixes

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoproxmox-uuid: fix wasm32 build
Dietmar Maurer [Fri, 3 Dec 2021 08:33:02 +0000 (09:33 +0100)]
proxmox-uuid: fix wasm32 build

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agobump proxmox-uuid to version 1.0.1-1
Dietmar Maurer [Fri, 3 Dec 2021 08:19:50 +0000 (09:19 +0100)]
bump proxmox-uuid to version 1.0.1-1

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agoproxmox-uuid: implement uuid on target wasm
Dietmar Maurer [Thu, 2 Dec 2021 13:16:21 +0000 (14:16 +0100)]
proxmox-uuid: implement uuid on target wasm

2 years agoAllow to compile on wasm32 target
Dietmar Maurer [Wed, 1 Dec 2021 10:28:32 +0000 (11:28 +0100)]
Allow to compile on wasm32 target

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agoupdate proxmox-time to version 1.1.2-1
Dietmar Maurer [Thu, 2 Dec 2021 09:36:35 +0000 (10:36 +0100)]
update proxmox-time to version 1.1.2-1

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agoproxmox-time: calendar-events: parse 'UTC' timezone into calendarevent
Dominik Csapak [Wed, 1 Dec 2021 08:45:06 +0000 (09:45 +0100)]
proxmox-time: calendar-events: parse 'UTC' timezone into calendarevent

like we do in pve. this breaks the (newly added) compute_next_event
method of CalendarEvent, but we can keep compatibilty with the
deprecated function

adapt the tests so that they add a ' UTC' by default
(so they can run reliably on any machine)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agofixup changelog entry
Fabian Grünbichler [Thu, 2 Dec 2021 08:12:30 +0000 (09:12 +0100)]
fixup changelog entry

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agouse nix::unistd::fchown
Fabian Grünbichler [Thu, 2 Dec 2021 08:02:24 +0000 (09:02 +0100)]
use nix::unistd::fchown

instead of re-implementing it, now that we depend on >=0.19

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoclippy: allow manual_range_contains
Fabian Grünbichler [Thu, 2 Dec 2021 08:04:25 +0000 (09:04 +0100)]
clippy: allow manual_range_contains

we use it quite often in this module, and it's more readable when split.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoclippy: collapse match/if let/..
Fabian Grünbichler [Thu, 2 Dec 2021 08:01:52 +0000 (09:01 +0100)]
clippy: collapse match/if let/..

best viewed with `-w` ;)

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoclippy: misc fixes
Fabian Grünbichler [Thu, 2 Dec 2021 08:00:52 +0000 (09:00 +0100)]
clippy: misc fixes

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoclippy: use matches!
Fabian Grünbichler [Thu, 2 Dec 2021 07:59:27 +0000 (08:59 +0100)]
clippy: use matches!

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoclippy: remove unnecessary reference taking
Fabian Grünbichler [Thu, 2 Dec 2021 07:58:10 +0000 (08:58 +0100)]
clippy: remove unnecessary reference taking

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoproxmox-router: bump to 1.1.1
Fabian Grünbichler [Wed, 1 Dec 2021 12:22:26 +0000 (13:22 +0100)]
proxmox-router: bump to 1.1.1

for current anyhow compat

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agobump proxmox-time version to 1.1.1-1
Dietmar Maurer [Wed, 1 Dec 2021 06:17:01 +0000 (07:17 +0100)]
bump proxmox-time version to 1.1.1-1

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agoproxmox-time: time-span: implement FromStr
Dominik Csapak [Tue, 30 Nov 2021 12:12:08 +0000 (13:12 +0100)]
proxmox-time: time-span: implement FromStr

and deprecate 'parse_time_span'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoproxmox-time: calendar_events: implement FromStr
Dominik Csapak [Tue, 30 Nov 2021 12:12:07 +0000 (13:12 +0100)]
proxmox-time: calendar_events: implement FromStr

and deprecate 'parse_calendar_event'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoproxmox-time: calendar-events: make compute_next_event a method
Dominik Csapak [Tue, 30 Nov 2021 12:12:06 +0000 (13:12 +0100)]
proxmox-time: calendar-events: make compute_next_event a method

and deprecated the standalone function

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoproxmox-time: lib.rs: rustfmt
Dominik Csapak [Tue, 30 Nov 2021 12:12:05 +0000 (13:12 +0100)]
proxmox-time: lib.rs: rustfmt

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoproxmox-time: move tests from time.rs to test.rs
Dominik Csapak [Tue, 30 Nov 2021 12:12:04 +0000 (13:12 +0100)]
proxmox-time: move tests from time.rs to test.rs

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoproxmox-time: move TimeSpan into time_span.rs
Dominik Csapak [Tue, 30 Nov 2021 12:12:03 +0000 (13:12 +0100)]
proxmox-time: move TimeSpan into time_span.rs

and related parsing functions

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoproxmox-time: move CalendarEvent into calendar_events.rs
Dominik Csapak [Tue, 30 Nov 2021 12:12:02 +0000 (13:12 +0100)]
proxmox-time: move CalendarEvent into calendar_events.rs

and all relevant parsing functions as well

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoproxmox-time: daily_duration.rs: rustfmt
Dominik Csapak [Tue, 30 Nov 2021 12:12:01 +0000 (13:12 +0100)]
proxmox-time: daily_duration.rs: rustfmt

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoproxmox-time: move parse_daily_duration to daily_duration.rs
Dominik Csapak [Tue, 30 Nov 2021 12:12:00 +0000 (13:12 +0100)]
proxmox-time: move parse_daily_duration to daily_duration.rs

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoproxmox-time: split DateTimeValue into own file
Dominik Csapak [Tue, 30 Nov 2021 12:11:59 +0000 (13:11 +0100)]
proxmox-time: split DateTimeValue into own file

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoproxmox-time: move WeekDays into own file
Dominik Csapak [Tue, 30 Nov 2021 12:11:58 +0000 (13:11 +0100)]
proxmox-time: move WeekDays into own file

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoproxmox-time: move common parse functions to parse_helpers
Dominik Csapak [Tue, 30 Nov 2021 12:11:57 +0000 (13:11 +0100)]
proxmox-time: move common parse functions to parse_helpers

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoproxmox-time: calendar-events: make hour optional
Dominik Csapak [Tue, 30 Nov 2021 12:11:56 +0000 (13:11 +0100)]
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>
2 years agoproxmox-time: calendar-events: implement repeated ranges
Dominik Csapak [Tue, 30 Nov 2021 12:11:55 +0000 (13:11 +0100)]
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>
2 years agoapi-macro: add #[updater(type = "...")]
Wolfgang Bumiller [Tue, 30 Nov 2021 16:21:20 +0000 (17:21 +0100)]
api-macro: add #[updater(type = "...")]

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoapi-macro: clippy fixes
Wolfgang Bumiller [Tue, 30 Nov 2021 16:00:27 +0000 (17:00 +0100)]
api-macro: clippy fixes

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agotime: clippy fixes
Wolfgang Bumiller [Mon, 29 Nov 2021 13:55:22 +0000 (14:55 +0100)]
time: clippy fixes

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoio: clippy fixes
Wolfgang Bumiller [Mon, 29 Nov 2021 13:51:26 +0000 (14:51 +0100)]
io: clippy fixes

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agosys: add back d/control
Wolfgang Bumiller [Mon, 29 Nov 2021 10:35:39 +0000 (11:35 +0100)]
sys: add back d/control

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agobump proxmox-sys to 0.2.2
Wolfgang Bumiller [Mon, 29 Nov 2021 10:32:29 +0000 (11:32 +0100)]
bump proxmox-sys to 0.2.2

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agosys: deprecate the identity macro
Wolfgang Bumiller [Mon, 29 Nov 2021 10:31:38 +0000 (11:31 +0100)]
sys: deprecate the identity macro

to be removed with the next major version bump

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agosys: depend on sortable-macro 0.1.2
Wolfgang Bumiller [Mon, 29 Nov 2021 10:30:05 +0000 (11:30 +0100)]
sys: depend on sortable-macro 0.1.2

drops the requirement for the identity macro

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoproxmox-sys: fix a warning in io_bail_last macro
Wolfgang Bumiller [Mon, 29 Nov 2021 10:29:24 +0000 (11:29 +0100)]
proxmox-sys: fix a warning in io_bail_last macro

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agobump proxmox-tfa to 2.0.0-1
Wolfgang Bumiller [Fri, 26 Nov 2021 13:55:24 +0000 (14:55 +0100)]
bump proxmox-tfa to 2.0.0-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agotfa: clippy fixes
Wolfgang Bumiller [Fri, 26 Nov 2021 13:55:23 +0000 (14:55 +0100)]
tfa: clippy fixes

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agotfa: make configured webauthn origin optional
Wolfgang Bumiller [Fri, 26 Nov 2021 13:55:22 +0000 (14:55 +0100)]
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>
2 years agotfa: let OriginUrl deref to its inner Url, add FromStr impl
Wolfgang Bumiller [Fri, 26 Nov 2021 13:55:21 +0000 (14:55 +0100)]
tfa: let OriginUrl deref to its inner Url, add FromStr impl

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agotfa: add WebauthnConfig::digest method
Wolfgang Bumiller [Fri, 26 Nov 2021 13:55:20 +0000 (14:55 +0100)]
tfa: add WebauthnConfig::digest method

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agotfa: fix typo in docs
Wolfgang Bumiller [Fri, 26 Nov 2021 13:55:19 +0000 (14:55 +0100)]
tfa: fix typo in docs

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agocleanup: avoid use anyhow::*
Dietmar Maurer [Sun, 28 Nov 2021 11:50:21 +0000 (12:50 +0100)]
cleanup: avoid use anyhow::*

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agobump proxmox-sortable-macro to 0.1.2-1
Wolfgang Bumiller [Fri, 26 Nov 2021 13:10:55 +0000 (14:10 +0100)]
bump proxmox-sortable-macro to 0.1.2-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agosortable-macro: drop anyhow dependency
Wolfgang Bumiller [Wed, 24 Nov 2021 08:16:01 +0000 (09:16 +0100)]
sortable-macro: drop anyhow dependency

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agosortable-macro: remove need for 'identity' macro
Wolfgang Bumiller [Wed, 24 Nov 2021 08:14:38 +0000 (09:14 +0100)]
sortable-macro: remove need for 'identity' macro

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agobump proxmox-io version to 1.0.1-1
Dietmar Maurer [Thu, 25 Nov 2021 11:15:05 +0000 (12:15 +0100)]
bump proxmox-io version to 1.0.1-1

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agobump proxmox-sys version to 0.2.1
Dietmar Maurer [Thu, 25 Nov 2021 11:11:57 +0000 (12:11 +0100)]
bump proxmox-sys version to 0.2.1

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>