manta_server/backend_dispatcher/
boot_parameters.rs

1//! `BootParametersTrait` impl for `StaticBackendDispatcher`.
2
3use super::*;
4
5impl BootParametersTrait for StaticBackendDispatcher {
6  async fn get_all_bootparameters(
7    &self,
8    auth_token: &str,
9  ) -> Result<Vec<BootParameters>, Error> {
10    dispatch!(self, get_all_bootparameters, auth_token)
11  }
12
13  async fn get_bootparameters(
14    &self,
15    auth_token: &str,
16    nodes: &[String],
17  ) -> Result<Vec<BootParameters>, Error> {
18    dispatch!(self, get_bootparameters, auth_token, nodes)
19  }
20
21  async fn add_bootparameters(
22    &self,
23    auth_token: &str,
24    boot_parameters: &BootParameters,
25  ) -> Result<(), Error> {
26    dispatch!(self, add_bootparameters, auth_token, boot_parameters)
27  }
28
29  async fn update_bootparameters(
30    &self,
31    auth_token: &str,
32    boot_parameters: &BootParameters,
33  ) -> Result<(), Error> {
34    dispatch!(self, update_bootparameters, auth_token, boot_parameters)
35  }
36
37  async fn delete_bootparameters(
38    &self,
39    auth_token: &str,
40    boot_parameters: &BootParameters,
41  ) -> Result<String, Error> {
42    dispatch!(self, delete_bootparameters, auth_token, boot_parameters)
43  }
44}