manta_server/backend_dispatcher/get_images.rs
1//! [`GetImagesAndDetailsTrait`] impl for [`StaticBackendDispatcher`].
2//!
3//! Forwards to the CSM IMS image listing enriched with the CFS
4//! configuration and BOS-template references each image was produced
5//! by / is used in. Ochami uses the trait default and returns
6//! [`Error::Message`] ("not implemented for this backend").
7
8use super::*;
9
10impl GetImagesAndDetailsTrait for StaticBackendDispatcher {
11 /// Return up to `limit_number` images visible to
12 /// `group_group_name_vec`, optionally narrowed by `id_opt`. Each
13 /// tuple is `(image, cfs_configuration_name, bos_template_name,
14 /// is_bootable)`; the strings are empty when the corresponding
15 /// derivative is absent.
16 async fn get_images_and_details(
17 &self,
18 token: &str,
19 group_group_name_vec: &[String],
20 id_opt: Option<&str>,
21 limit_number: Option<&u8>,
22 ) -> Result<Vec<(Image, String, String, bool)>, Error> {
23 dispatch!(
24 self,
25 get_images_and_details,
26 token,
27 group_group_name_vec,
28 id_opt,
29 limit_number
30 )
31 }
32}