proxmox-backup/src/lib.rs
Lukas Wagner 045fc7750c metric collection: move rrd_cache to new metric_collection module
No functional changes intended.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
2024-10-15 14:09:41 +02:00

40 lines
738 B
Rust

//! 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]
pub mod tools;
#[macro_use]
pub mod server;
#[macro_use]
pub mod backup;
pub mod config;
pub mod api2;
pub mod auth_helpers;
pub(crate) mod auth;
pub mod tape;
pub mod acme;
pub mod client_helpers;
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")))
}