datastore: add snapshot iterator and provide example

will be more used in the future, when the upend-datastore master plan
comes in effect.

also a preparatory work for namespaces

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht
2022-04-15 12:24:56 +02:00
parent 249dde8b63
commit 33eb23d57e
3 changed files with 81 additions and 2 deletions

View File

@ -204,7 +204,7 @@ pub use manifest::BackupManifest;
pub use store_progress::StoreProgress;
mod datastore;
pub use datastore::{check_backup_owner, DataStore, ListGroups};
pub use datastore::{check_backup_owner, DataStore, ListGroups, ListSnapshots};
mod snapshot_reader;
pub use snapshot_reader::SnapshotReader;