]> git.proxmox.com Git - proxmox-backup.git/blame - src/lib.rs
api: datastore create: allow re-using existing dirs if empty & not a mountpoint
[proxmox-backup.git] / src / lib.rs
CommitLineData
254b1f22
SR
1//! See the different modules for documentation on their usage.
2//!
3//! The [backup](backup/index.html) module contains some detailed information
4//! on the inner workings of the backup server regarding data storage.
5
450105b0
WB
6use std::path::PathBuf;
7
8use pbs_buildcfg::configdir;
9use pbs_tools::cert::CertInfo;
10
8f973f81 11#[macro_use]
51b499db
DM
12pub mod tools;
13
7e21da6e 14#[macro_use]
882594c5 15pub mod server;
16b48b81 16
986bef16 17#[macro_use]
cbdd8c54 18pub mod backup;
35cf5daa 19
a8f268af 20pub mod config;
678d72df 21
576e3bf2 22pub mod api2;
e8edbbd4 23
6c30068e 24pub mod auth_helpers;
7d817b03 25
d97ff8ae 26pub(crate) mod auth;
6359dc89 27
8c15560b 28pub mod tape;
f2f526b6
WB
29
30pub mod acme;
01a08021
WB
31
32pub mod client_helpers;
450105b0 33
fae4f6c5
DM
34pub mod rrd_cache;
35
e705b305 36pub mod traffic_control_cache;
de21d4ef 37
450105b0
WB
38/// Get the server's certificate info (from `proxy.pem`).
39pub fn cert_info() -> Result<CertInfo, anyhow::Error> {
40 CertInfo::from_path(PathBuf::from(configdir!("/proxy.pem")))
41}