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

Function sandbox_token_host_path_by_id

crates/openshell-driver-docker/src/lib.rs:2075–2089  ·  view source on GitHub ↗
(
    sandbox_id: &str,
    config: &DockerDriverRuntimeConfig,
)

Source from the content-addressed store, hash-verified

2073}
2074
2075fn sandbox_token_host_path_by_id(
2076 sandbox_id: &str,
2077 config: &DockerDriverRuntimeConfig,
2078) -> Result<PathBuf, Status> {
2079 openshell_core::driver_utils::sandbox_token_path(
2080 "docker-sandbox-tokens",
2081 Some(&config.sandbox_namespace),
2082 sandbox_id,
2083 )
2084 .map_err(|err| {
2085 Status::internal(format!(
2086 "resolve sandbox token state directory failed: {err}"
2087 ))
2088 })
2089}
2090
2091async fn write_sandbox_token_file(
2092 sandbox: &DriverSandbox,

Callers 2

sandbox_token_host_pathFunction · 0.85

Calls 1

sandbox_token_pathFunction · 0.85

Tested by

no test coverage detected