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

Function docker_host_unix_socket_path

crates/openshell-core/src/config.rs:230–233  ·  view source on GitHub ↗
(host: &str)

Source from the content-addressed store, hash-verified

228}
229
230fn docker_host_unix_socket_path(host: &str) -> Option<PathBuf> {
231 let path = host.trim().strip_prefix("unix://")?;
232 (!path.is_empty()).then(|| PathBuf::from(path))
233}
234
235#[cfg(unix)]
236fn is_unix_socket(path: &Path) -> bool {

Callers 1

docker_socket_candidatesFunction · 0.85

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected