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

Function docker_driver_mounts

crates/openshell-driver-docker/src/lib.rs:1832–1838  ·  view source on GitHub ↗

Collect user-supplied non-bind mounts as structured `Mount` objects.

(config: &DockerSandboxDriverConfig)

Source from the content-addressed store, hash-verified

1830
1831/// Collect user-supplied non-bind mounts as structured `Mount` objects.
1832fn docker_driver_mounts(config: &DockerSandboxDriverConfig) -> Result<Vec<Mount>, Status> {
1833 config
1834 .mounts
1835 .iter()
1836 .filter_map(|m| docker_mount_from_config(m).transpose())
1837 .collect()
1838}
1839
1840fn docker_mount_from_config(config: &DockerDriverMountConfig) -> Result<Option<Mount>, Status> {
1841 match config {

Calls 1

docker_mount_from_configFunction · 0.85

Tested by

no test coverage detected