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

Function docker_volume_is_bind_backed

crates/openshell-driver-docker/src/lib.rs:2026–2034  ·  view source on GitHub ↗
(volume: &bollard::models::Volume)

Source from the content-addressed store, hash-verified

2024}
2025
2026fn docker_volume_is_bind_backed(volume: &bollard::models::Volume) -> bool {
2027 volume.driver == "local"
2028 && volume.options.get("o").is_some_and(|options| {
2029 options.split(',').any(|option| {
2030 let option = option.trim();
2031 option.eq_ignore_ascii_case("bind") || option.eq_ignore_ascii_case("rbind")
2032 })
2033 })
2034}
2035
2036fn build_binds(
2037 sandbox: &DriverSandbox,

Calls 1

getMethod · 0.45

Tested by

no test coverage detected