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

Function docker_network_name

crates/openshell-driver-docker/src/lib.rs:2434–2440  ·  view source on GitHub ↗
(config: &DockerComputeConfig)

Source from the content-addressed store, hash-verified

2432}
2433
2434fn docker_network_name(config: &DockerComputeConfig) -> String {
2435 let name = config.network_name.trim();
2436 if name.is_empty() {
2437 return DEFAULT_DOCKER_NETWORK_NAME.to_string();
2438 }
2439 name.to_string()
2440}
2441
2442fn parse_optional_host_gateway_ip(value: &str) -> CoreResult<Option<IpAddr>> {
2443 let trimmed = value.trim();

Callers 1

newMethod · 0.85

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected