Wolfgang Bumiller
cfa77e0e88
sys: impl AsFd for PTY
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-10-19 14:36:45 +02:00
Wolfgang Bumiller
34688a6d74
sys: impl AsFd for PidFd
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-10-19 14:35:07 +02:00
Wolfgang Bumiller
34f47339d5
bump sys to 0.4.1
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-10-19 14:21:08 +02:00
Fabian Grünbichler
7b350d3e43
proxmox-http: fix last changelog entry
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-10-19 14:17:42 +02:00
Wolfgang Bumiller
ab17fdb4d9
sys: deprecate RawFdNum
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-10-19 13:55:47 +02:00
Wolfgang Bumiller
88677d8955
sys: add From<OwnedFd/Fd> for Fd/OwnedFd temporarily
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-10-19 13:50:17 +02:00
Wolfgang Bumiller
8bd961acdc
rest-server: update to OwnedFd
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-10-19 13:25:40 +02:00
Wolfgang Bumiller
8420c266af
sys: deprecate Fd, add its methods as module functions
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-10-19 13:25:40 +02:00
Wolfgang Bumiller
85c260f6b5
sys: deprecate BorrowedFd
...
std has this now, stable since 1.63
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-10-19 10:55:16 +02:00
Fabian Grünbichler
ab6c2c7493
packages file: add section field
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-10-19 07:51:35 +02:00
Wolfgang Bumiller
b039bf011b
bump edition in rustfmt.toml
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-10-13 15:00:28 +02:00
Fabian Grünbichler
008a771f3e
cargo fmt
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-10-12 10:42:50 +02:00
Fabian Grünbichler
661b8837f3
clippy fixes
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-10-12 10:42:24 +02:00
Thomas Lamprecht
7c7e2f886c
rest-server: add packaging and bump to 0.2.0
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-10-11 15:09:50 +02:00
Thomas Lamprecht
bd00e2f317
cargo: rest-server: set license property
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-10-11 15:09:44 +02:00
Thomas Lamprecht
a7122eb99e
Merge remote-tracking branch 'proxmox-rest-merge/master'
...
split out from proxmox-backup using `git filter-repo` including
history with the following --paths-from-file:
```
proxmox-rest-server
src/api/server.rs
src/server/command_socket.rs
src/server/config.rs
src/server/environment.rs
src/server/formatter.rs
src/server/h2service.rs
src/server/rest.rs
src/server/state.rs
src/tools/compression.rs
src/tools/daemon.rs
src/tools/file_logger.rs
src/worker_task.rs
```
2022-10-11 15:09:28 +02:00
Fabian Grünbichler
95f7232188
cargo fmt
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-10-11 09:48:11 +02:00
Fabian Grünbichler
28e30719e8
clippy fixes
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-10-11 09:48:04 +02:00
Thomas Lamprecht
5450421f03
d/control: update
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-09-16 14:19:07 +02:00
Thomas Lamprecht
6c0c48b97a
bump version to 0.9.2-1
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-09-16 14:17:34 +02:00
Fabian Grünbichler
7e8eab45dd
release: fix typo in 'Acquire-By-Hash'
...
to allow detection of repositories that support downloading indices via
their hash instead of their filename.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-16 14:09:29 +02:00
Fabian Grünbichler
f54534cc37
release: add 'architecture' helper
...
which returns if a file reference is architecture specific, and for
which architecture it is relevant.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-16 14:09:29 +02:00
Fabian Grünbichler
566981077c
release: add Commands file reference type
...
used by command-not-found to lookup which package ships which command.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-16 14:09:29 +02:00
Fabian Grünbichler
2ae95b5f4e
metrics: bump to 0.2.1
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-07 14:49:35 +02:00
Fabian Grünbichler
2502d691b6
subscription: bump to 0.3.0
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-07 14:49:35 +02:00
Fabian Grünbichler
916aa8a2db
update proxmox-router to 1.3.0
...
no real change for PBS usage - the ApiHandler enum is marked
non_exhaustive now because it has extra values if the new (enabled by
default) "server" feature is enabled.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-07 14:17:12 +02:00
Fabian Grünbichler
e8d199d51c
update to proxmox-http 0.7
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-07 14:17:00 +02:00
Fabian Grünbichler
a6e03dfe42
subscription: properly forward verification error
...
when verifying the server response used for offline mirror keys.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-07 13:06:02 +02:00
Fabian Grünbichler
d55816e9dd
subscription: use lowercase for Display-ing status
2022-09-07 13:05:42 +02:00
Fabian Grünbichler
31f1bbbf40
subscription: properly alias 'notfound'
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-07 13:05:42 +02:00
Fabian Grünbichler
f908f216ae
subscription: conditionalize checks
...
signed subscription info files should always be checked to catch
attempts of invalid signatures, but the age and serverid checks only
need to apply to "active" files, else the status might switch from a
more meaningful one to "invalid" by accident.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-07 13:05:42 +02:00
Fabian Grünbichler
4beac11b34
subscription: add Expired status
...
this can be returned by the shop when checking an online subscription.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-07 13:05:42 +02:00
Fabian Grünbichler
5b90667d05
http: bump to 0.7.0
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-07 09:35:51 +02:00
Fabian Grünbichler
08a6d56eae
http: client_trait: make request body generic
...
like the response body, instead of hard-coding Read.
2022-09-07 09:25:47 +02:00
Fabian Grünbichler
891dcfda2f
http: add extra_headers to post
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-07 09:17:45 +02:00
Fabian Grünbichler
ec77785578
http: sync: add HttpClient for Box<dyn Read>
...
for use cases where the full request body is not available from the
start, or the response doesn't need to be fully read in one go.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-07 09:17:45 +02:00
Fabian Grünbichler
00f5eca155
http: make post() take Read
, not &str
...
for more flexibility.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-07 09:17:45 +02:00
Fabian Grünbichler
7863eff2a5
http: fix typo
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-07 09:17:45 +02:00
Fabian Grünbichler
da49b98d15
http: rename SimpleHttp to Client
...
so we have proxmox_http::client::Client for the async, hyper-based
client and proxmox_http::client::sync::Client for the sync, ureq-based
one.
this is a breaking change.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-07 09:17:45 +02:00
Fabian Grünbichler
7ffb895062
http: add "raw" sync client
...
and switch String one over to use it.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-07 09:17:45 +02:00
Fabian Grünbichler
9c444d7a94
http: add ureq-based sync client
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-07 09:17:45 +02:00
Fabian Grünbichler
f429fcb592
http: extend HttpClient trait
...
to allow get requests with extra headers (such as `Authorization`) and a
generic `request` fn to increase flexibility even more.
this is a breaking change.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-07 09:17:45 +02:00
Fabian Grünbichler
ab5d5b39f6
http: move SimpleHttpOptions to http-helpers feature
...
and rename it to HttpOptions, since it's not specific to the "Simple"
client at all.
this is a breaking change.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-07 09:17:45 +02:00
Fabian Grünbichler
e8d02db689
router: bump to 1.3.0
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-07 09:17:45 +02:00
Fabian Grünbichler
66ace63618
router: make hyper/http optional
...
but enable it by default.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-07 09:17:45 +02:00
Fabian Grünbichler
0a9685ed4a
bump version to 0.9.1-1
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-06 10:36:55 +02:00
Aaron Lauterer
64d7956788
add ceph quincy repositories
...
Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
2022-09-06 09:37:46 +02:00
Fabian Grünbichler
0376c3b50b
build: more missing features
...
these would cause failures when building the sub-crates directly from
their sub-directory.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-05 12:55:33 +02:00
Thomas Lamprecht
f92c8f92cc
api-macro: track d/control
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-08-26 12:57:57 +02:00
Thomas Lamprecht
056a5eb581
git: ignore top level *-deb make target files
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-08-26 12:18:44 +02:00