(
sandbox_id: &str,
config: &DockerDriverRuntimeConfig,
)
| 2073 | } |
| 2074 | |
| 2075 | fn 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 | |
| 2091 | async fn write_sandbox_token_file( |
| 2092 | sandbox: &DriverSandbox, |
no test coverage detected