MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / create_forward_session_token

Function create_forward_session_token

crates/openshell-cli/src/run.rs:2935–2946  ·  view source on GitHub ↗
(
    client: &mut crate::tls::GrpcClient,
    sandbox_id: &str,
)

Source from the content-addressed store, hash-verified

2933}
2934
2935async fn create_forward_session_token(
2936 client: &mut crate::tls::GrpcClient,
2937 sandbox_id: &str,
2938) -> std::result::Result<String, ForwardTcpConnectionError> {
2939 let response = client
2940 .create_ssh_session(CreateSshSessionRequest {
2941 sandbox_id: sandbox_id.to_string(),
2942 })
2943 .await
2944 .map_err(ForwardTcpConnectionError::from_status)?;
2945 Ok(response.into_inner().token)
2946}
2947
2948async fn fetch_ready_sandbox_for_forward(
2949 client: &mut crate::tls::GrpcClient,

Callers

nothing calls this directly

Calls 1

create_ssh_sessionMethod · 0.45

Tested by

no test coverage detected