]> git.proxmox.com Git - proxmox-backup.git/commit - pbs-datastore/src/datastore.rs
datastore: move list_backup_groups into Datastore impl
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 15 Apr 2022 07:03:13 +0000 (09:03 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 15 Apr 2022 10:38:16 +0000 (12:38 +0200)
commitc90dbb5c7be5b336185e1605dd33329c540ce6e3
tree1d03556b73b7cd21e2f7b6a58d5c0c14d2c592dd
parentbdfa637058ece0e70aef183486ca2b0060d1b421
datastore: move list_backup_groups into Datastore impl

Having that as static method in BackupInfo makes zero sense and just
complicates call sites, which need to extract the base_path from the
store manually upfront.

Mark old fn as deprecated so that we can do the move in a separate
step.

It's also planned to add an Iterator impl for this to allow more
efficient usage in the future.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
pbs-datastore/src/backup_info.rs
pbs-datastore/src/datastore.rs