manta_server/backend_dispatcher/
cluster_session.rs

1//! [`ClusterSessionTrait`] (BOS session) impl for
2//! [`StaticBackendDispatcher`].
3//!
4//! Forwards to `POST /apis/bos/v2/sessions`. Ochami uses the trait
5//! default and returns [`Error::Message`] ("not implemented for this
6//! backend").
7
8use super::*;
9
10impl ClusterSessionTrait for StaticBackendDispatcher {
11  /// Submit a BOS session derived from an existing template. Returns
12  /// the persisted [`BosSession`] (the backend assigns the id).
13  async fn post_template_session(
14    &self,
15    token: &str,
16    bos_session: types::bos::session::BosSession,
17  ) -> Result<BosSession, Error> {
18    dispatch!(self, post_template_session, token, bos_session)
19  }
20}