tape: expose basic tape/changer functionality at api2/tape/

This commit is contained in:
Dietmar Maurer
2020-12-08 15:42:50 +01:00
parent 5ba83ed099
commit 5d90860688
9 changed files with 359 additions and 53 deletions

15
src/api2/tape/mod.rs Normal file
View File

@ -0,0 +1,15 @@
use proxmox::api::router::SubdirMap;
use proxmox::api::Router;
use proxmox::list_subdirs_api_method;
pub mod drive;
pub mod changer;
pub const SUBDIRS: SubdirMap = &[
("changer", &changer::ROUTER),
("drive", &drive::ROUTER),
];
pub const ROUTER: Router = Router::new()
.get(&list_subdirs_api_method!(SUBDIRS))
.subdirs(SUBDIRS);