manta_server/backend_dispatcher/
console.rs1use manta_backend_dispatcher::interfaces::console::{
4 ConsoleAttachment, TermSize,
5};
6
7use super::*;
8
9impl ConsoleTrait for StaticBackendDispatcher {
10 async fn attach_to_node_console(
11 &self,
12 token: &str,
13 site_name: &str,
14 xname: &str,
15 initial_size: TermSize,
16 k8s: &K8sDetails,
17 ) -> Result<ConsoleAttachment, Error> {
18 dispatch!(
19 self,
20 attach_to_node_console,
21 token,
22 site_name,
23 xname,
24 initial_size,
25 k8s
26 )
27 }
28
29 async fn attach_to_session_console(
30 &self,
31 token: &str,
32 site_name: &str,
33 session_name: &str,
34 initial_size: TermSize,
35 k8s: &K8sDetails,
36 ) -> Result<ConsoleAttachment, Error> {
37 dispatch!(
38 self,
39 attach_to_session_console,
40 token,
41 site_name,
42 session_name,
43 initial_size,
44 k8s
45 )
46 }
47}