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

Function docker_driver_config

crates/openshell-driver-docker/src/lib.rs:1758–1766  ·  view source on GitHub ↗
(
    template: &DriverSandboxTemplate,
    enable_bind_mounts: bool,
)

Source from the content-addressed store, hash-verified

1756
1757#[cfg(test)]
1758fn docker_driver_config(
1759 template: &DriverSandboxTemplate,
1760 enable_bind_mounts: bool,
1761) -> Result<DockerSandboxDriverConfig, Status> {
1762 let config =
1763 DockerSandboxDriverConfig::from_template(template).map_err(Status::invalid_argument)?;
1764 validate_docker_driver_mounts(&config.mounts, enable_bind_mounts)?;
1765 Ok(config)
1766}
1767
1768/// Collect user-supplied bind mounts as string-format binds.
1769///

Callers 1

Calls 1

Tested by

no test coverage detected