manta-server 2.0.0-beta.62

Manta HTTP server — single API that proxies to CSM / Ochami backends.
//! [`ClusterSessionTrait`] (BOS session) impl for
//! [`StaticBackendDispatcher`].
//!
//! Forwards to `POST /apis/bos/v2/sessions`. Ochami uses the trait
//! default and returns [`Error::Message`] ("not implemented for this
//! backend").

use super::*;

impl ClusterSessionTrait for StaticBackendDispatcher {
  /// Submit a BOS session derived from an existing template. Returns
  /// the persisted [`BosSession`] (the backend assigns the id).
  async fn post_template_session(
    &self,
    token: &str,
    bos_session: types::bos::session::BosSession,
  ) -> Result<BosSession, Error> {
    dispatch!(self, post_template_session, token, bos_session)
  }
}