Niels de Vos 3bf5c0e478 cleanup: simplify rbdGetDeviceList()
The `rbdGetDeviceList()` function uses two very similar types for
converting krbd and NBD device information from JSON. There is no need
to use this distinction, and callers of `rbdGetDeviceList()` should not
need to care about it either.

By introducing a `deviceInfo` interface with Get-functions, the
`rbdGetDeviceList()` function becomes a little simpler, with a clearly
defined API for the returned list.

Signed-off-by: Niels de Vos <ndevos@ibm.com>
2024-01-11 18:00:41 +00:00
..
2023-06-05 04:49:46 +00:00
2022-03-14 15:21:25 +00:00
2023-11-23 00:55:17 +00:00
2023-08-30 09:07:46 +00:00
2023-06-05 04:49:46 +00:00