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

Function ssh_session_record

crates/openshell-server/src/compute/mod.rs:2396–2410  ·  view source on GitHub ↗
(id: &str, sandbox_id: &str)

Source from the content-addressed store, hash-verified

2394 }
2395
2396 fn ssh_session_record(id: &str, sandbox_id: &str) -> SshSession {
2397 SshSession {
2398 metadata: Some(openshell_core::proto::datamodel::v1::ObjectMeta {
2399 id: id.to_string(),
2400 name: format!("session-{id}"),
2401 created_at_ms: 1_000_000,
2402 labels: HashMap::new(),
2403 resource_version: 0,
2404 }),
2405 sandbox_id: sandbox_id.to_string(),
2406 token: format!("token-{id}"),
2407 revoked: false,
2408 expires_at_ms: 0,
2409 }
2410 }
2411
2412 fn make_driver_condition(reason: &str, message: &str) -> DriverCondition {
2413 DriverCondition {

Calls

no outgoing calls

Tested by

no test coverage detected