Validate runtime resource-limit configuration.
(&self)
| 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> { |
no outgoing calls