manta_server/backend_dispatcher/
ims.rs1use super::*;
4
5impl ImsTrait for StaticBackendDispatcher {
6 async fn get_images(
7 &self,
8 token: &str,
9 image_id_opt: Option<&str>,
10 ) -> Result<Vec<Image>, Error> {
11 dispatch!(self, get_images, token, image_id_opt)
12 }
13
14 async fn get_all_images(&self, token: &str) -> Result<Vec<Image>, Error> {
15 dispatch!(self, get_all_images, token)
16 }
17
18 fn filter_images(&self, image_vec: &mut Vec<Image>) -> Result<(), Error> {
19 dispatch!(sync self, filter_images, image_vec)
20 }
21
22 async fn update_image(
23 &self,
24 token: &str,
25 image_id: &str,
26 image: &PatchImage,
27 ) -> Result<(), Error> {
28 dispatch!(self, update_image, token, image_id, image)
29 }
30
31 async fn delete_image(
32 &self,
33 token: &str,
34 image_id: &str,
35 ) -> Result<(), Error> {
36 dispatch!(self, delete_image, token, image_id)
37 }
38}