podman_rest_client/v5/models/
container_resource_config.rs

1use serde::{Deserialize, Serialize};
2#[derive(Default, Debug, Serialize, Deserialize)]
3/// ContainerResourceConfig contains information on container resource limits.
4pub struct ContainerResourceConfig {
5    #[serde(rename = "intelRdt")]
6    pub intel_rdt: Option<crate::v5::models::LinuxIntelRdt>,
7    /// OOMScoreAdj adjusts the score used by the OOM killer to determine
8    /// processes to kill for the container's process.
9    /// Optional.
10    pub oom_score_adj: Option<i64>,
11    /// Rlimits are POSIX rlimits to apply to the container.
12    /// Optional.
13    pub r_limits: Option<Vec<crate::v5::models::PosixRlimit>>,
14    pub resource_limits: Option<crate::v5::models::LinuxResources>,
15    /// IO read rate limit per cgroup per device, bytes per second
16    #[serde(rename = "throttleReadBpsDevice")]
17    pub throttle_read_bps_device:
18        Option<std::collections::HashMap<String, crate::v5::models::LinuxThrottleDevice>>,
19    /// IO read rate limit per cgroup per device, IO per second
20    #[serde(rename = "throttleReadIOPSDevice")]
21    pub throttle_read_iops_device:
22        Option<std::collections::HashMap<String, crate::v5::models::LinuxThrottleDevice>>,
23    /// IO write rate limit per cgroup per device, bytes per second
24    #[serde(rename = "throttleWriteBpsDevice")]
25    pub throttle_write_bps_device:
26        Option<std::collections::HashMap<String, crate::v5::models::LinuxThrottleDevice>>,
27    /// IO write rate limit per cgroup per device, IO per second
28    #[serde(rename = "throttleWriteIOPSDevice")]
29    pub throttle_write_iops_device:
30        Option<std::collections::HashMap<String, crate::v5::models::LinuxThrottleDevice>>,
31    /// CgroupConf are key-value options passed into the container runtime
32    /// that are used to configure cgroup v2.
33    /// Optional.
34    pub unified: Option<std::collections::HashMap<String, String>>,
35    /// Weight per cgroup per device, can override BlkioWeight
36    #[serde(rename = "weightDevice")]
37    pub weight_device:
38        Option<std::collections::HashMap<String, crate::v5::models::LinuxWeightDevice>>,
39}