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

Method validate_runtime_limits

crates/openshell-driver-podman/src/config.rs:183–190  ·  view source on GitHub ↗

Validate runtime resource-limit configuration.

(&self)

Source from the content-addressed store, hash-verified

181
182 /// Validate runtime resource-limit configuration.
183 pub fn validate_runtime_limits(&self) -> Result<(), crate::client::PodmanApiError> {
184 if self.sandbox_pids_limit < 0 {
185 return Err(crate::client::PodmanApiError::InvalidInput(
186 "sandbox_pids_limit must be zero or greater".to_string(),
187 ));
188 }
189 Ok(())
190 }
191
192 /// Validate optional host gateway override.
193 pub fn validate_host_gateway_ip(&self) -> Result<(), crate::client::PodmanApiError> {

Callers 2

newMethod · 0.80

Calls

no outgoing calls