proxmox-backup/src/api2/config.rs

33 lines
837 B
Rust
Raw Normal View History

//! Backup Server Configuration
use proxmox::api::router::{Router, SubdirMap};
use proxmox::list_subdirs_api_method;
2018-12-08 13:44:55 +00:00
pub mod access;
pub mod datastore;
pub mod remote;
2020-05-21 08:29:25 +00:00
pub mod sync;
pub mod verify;
2020-12-07 12:04:32 +00:00
pub mod drive;
2020-12-08 08:04:56 +00:00
pub mod changer;
2020-12-10 09:52:27 +00:00
pub mod media_pool;
pub mod tape_encryption_keys;
pub mod tape_backup_job;
2018-12-08 13:44:55 +00:00
2019-11-21 08:36:41 +00:00
const SUBDIRS: SubdirMap = &[
("access", &access::ROUTER),
2020-12-08 08:04:56 +00:00
("changer", &changer::ROUTER),
("datastore", &datastore::ROUTER),
2020-12-07 12:04:32 +00:00
("drive", &drive::ROUTER),
2020-12-10 09:52:27 +00:00
("media-pool", &media_pool::ROUTER),
("remote", &remote::ROUTER),
2020-05-21 08:29:25 +00:00
("sync", &sync::ROUTER),
("tape-backup-job", &tape_backup_job::ROUTER),
2021-02-15 05:35:45 +00:00
("tape-encryption-keys", &tape_encryption_keys::ROUTER),
("verify", &verify::ROUTER),
2019-11-21 08:36:41 +00:00
];
pub const ROUTER: Router = Router::new()
.get(&list_subdirs_api_method!(SUBDIRS))
.subdirs(SUBDIRS);