mirror of
https://git.mirrors.martin98.com/https://github.com/ceph/ceph-csi.git
synced 2025-10-16 04:41:28 +08:00

By introducing a SyncInfo interface, the `getLastSyncInfo` function can be removed from the csi-addons/rbd package. Getting details from an RBD mirror status, should be part of the main internal/rbd package, the CSI-Addons components should only use the internal API, and not add any parsing logic. This makes it easier to enhance the SyncInfo interface in the future. Signed-off-by: Niels de Vos <ndevos@ibm.com>