From 137aa305d69aaa4ee5d451a03021745f96e384d2 Mon Sep 17 00:00:00 2001 From: wojciechkepka Date: Thu, 11 Mar 2021 19:08:20 +0100 Subject: Rename Config -> ContainerConfig Signed-off-by: Matthias Beyer --- src/container.rs | 2 +- src/image.rs | 6 +++--- src/lib.rs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/container.rs b/src/container.rs index dfd65d2..c59909b 100644 --- a/src/container.rs +++ b/src/container.rs @@ -19,7 +19,7 @@ use crate::{ docker::Docker, errors::{Error, Result}, exec::{Exec, ExecContainerOptions}, - image::Config, + image::ContainerConfig, network::NetworkSettings, transport::Payload, tty::{self, Multiplexer as TtyMultiPlexer}, diff --git a/src/image.rs b/src/image.rs index addf4ee..0a8c112 100644 --- a/src/image.rs +++ b/src/image.rs @@ -792,7 +792,7 @@ pub struct ImageDetails { pub architecture: String, pub author: String, pub comment: String, - pub config: Config, + pub config: ContainerConfig, #[cfg(feature = "chrono")] pub created: DateTime, #[cfg(not(feature = "chrono"))] @@ -809,7 +809,7 @@ pub struct ImageDetails { #[derive(Clone, Debug, Serialize, Deserialize)] #[serde(rename_all = "PascalCase")] -pub struct Config { +pub struct ContainerConfig { pub attach_stderr: bool, pub attach_stdin: bool, pub attach_stdout: bool, @@ -831,7 +831,7 @@ pub struct Config { pub working_dir: String, } -impl Config { +impl ContainerConfig { pub fn env(&self) -> HashMap { let mut map = HashMap::new(); if let Some(ref vars) = self.env { diff --git a/src/lib.rs b/src/lib.rs index 4d60523..0d9bac6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -119,7 +119,7 @@ reexport! { docker::{Version, Info, Event, Actor}; exec::{ExecDetails, ProcessConfig}; image::{ - SearchResult, ImageInfo as Image, ImageDetails, Config, History, Status, + SearchResult, ImageInfo as Image, ImageDetails, ContainerConfig, History, Status, }; network::{ NetworkSettings, NetworkEntry, Ipam, NetworkDetails, -- cgit v1.2.3