proxmox-backup/src/lib.rs

42 lines
751 B
Rust
Raw Normal View History

//! See the different modules for documentation on their usage.
//!
//! The [backup](backup/index.html) module contains some detailed information
//! on the inner workings of the backup server regarding data storage.
use std::path::PathBuf;
use pbs_buildcfg::configdir;
use pbs_tools::cert::CertInfo;
#[macro_use]
2019-01-05 15:53:28 +00:00
pub mod tools;
#[macro_use]
2019-04-06 07:17:25 +00:00
pub mod server;
2018-11-15 09:14:08 +00:00
#[macro_use]
pub mod backup;
pub mod config;
2018-12-08 12:58:45 +00:00
pub mod api2;
pub mod auth_helpers;
2020-04-08 09:57:14 +00:00
pub mod auth;
2020-05-23 07:29:33 +00:00
2020-12-05 09:45:08 +00:00
pub mod tape;
pub mod acme;
pub mod client_helpers;
pub mod rrd_cache;
pub mod traffic_control_cache;
/// Get the server's certificate info (from `proxy.pem`).
pub fn cert_info() -> Result<CertInfo, anyhow::Error> {
CertInfo::from_path(PathBuf::from(configdir!("/proxy.pem")))
}