Skip to content

Commit

Permalink
rust,runtime: rename GidMapping,UidMapping to Linux{Uid/Gid}Mapping
Browse files Browse the repository at this point in the history
Signed-off-by: Aditya R <arajan@redhat.com>
  • Loading branch information
flouthoc committed Aug 26, 2022
1 parent 3254687 commit e9c21c1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/runtime/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ pub struct Linux {
pub devices: Option<Vec<LinuxDevice>>,

#[serde(rename = "gidMappings")]
pub gid_mappings: Option<Vec<GidMapping>>,
pub gid_mappings: Option<Vec<LinuxGidMapping>>,

#[serde(rename = "intelRdt")]
pub intel_rdt: Option<IntelRdt>,
Expand Down Expand Up @@ -216,7 +216,7 @@ pub struct Linux {
pub sysctl: Option<HashMap<String, Option<serde_json::Value>>>,

#[serde(rename = "uidMappings")]
pub uid_mappings: Option<Vec<UidMapping>>,
pub uid_mappings: Option<Vec<LinuxUidMapping>>,
}

#[derive(Serialize, Deserialize)]
Expand Down Expand Up @@ -248,7 +248,7 @@ pub struct LinuxDevice {
}

#[derive(Serialize, Deserialize)]
pub struct GidMapping {
pub struct LinuxGidMapping {
#[serde(rename = "containerID")]
pub container_id: i64,

Expand Down Expand Up @@ -590,7 +590,7 @@ pub struct Arg {
}

#[derive(Serialize, Deserialize)]
pub struct UidMapping {
pub struct LinuxUidMapping {
#[serde(rename = "containerID")]
pub container_id: i64,

Expand Down

0 comments on commit e9c21c1

Please sign in to comment.