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

Function validate_sandbox_pids_limit

crates/openshell-driver-docker/src/lib.rs:2662–2669  ·  view source on GitHub ↗
(value: i64)

Source from the content-addressed store, hash-verified

2660}
2661
2662fn validate_sandbox_pids_limit(value: i64) -> CoreResult<()> {
2663 if value < 0 {
2664 return Err(Error::config(
2665 "docker sandbox_pids_limit must be zero or greater",
2666 ));
2667 }
2668 Ok(())
2669}
2670
2671fn docker_pids_limit(value: i64) -> Result<Option<i64>, Status> {
2672 if value < 0 {

Callers 1

newMethod · 0.85

Calls 1

configFunction · 0.85

Tested by

no test coverage detected