podman_rest_client/v5/models/
inspect_container_config.rs

1use serde::{Deserialize, Serialize};
2#[derive(Default, Debug, Serialize, Deserialize)]
3/// InspectContainerConfig holds further data about how a container was initially
4/// configured.
5pub struct InspectContainerConfig {
6    /// Container annotations
7    #[serde(rename = "Annotations")]
8    pub annotations: Option<std::collections::HashMap<String, String>>,
9    /// Unused, at present
10    #[serde(rename = "AttachStderr")]
11    pub attach_stderr: Option<bool>,
12    /// Unused, at present
13    #[serde(rename = "AttachStdin")]
14    pub attach_stdin: Option<bool>,
15    /// Unused, at present
16    #[serde(rename = "AttachStdout")]
17    pub attach_stdout: Option<bool>,
18    /// ChrootDirs is an additional set of directories that need to be
19    /// treated as root directories. Standard bind mounts will be mounted
20    /// into paths relative to these directories.
21    #[serde(rename = "ChrootDirs")]
22    pub chroot_dirs: Option<Vec<String>>,
23    /// Container command
24    #[serde(rename = "Cmd")]
25    pub cmd: Option<Vec<String>>,
26    /// CreateCommand is the full command plus arguments of the process the
27    /// container has been created with.
28    #[serde(rename = "CreateCommand")]
29    pub create_command: Option<Vec<String>>,
30    /// Container domain name - unused at present
31    #[serde(rename = "Domainname")]
32    pub domainname: Option<String>,
33    /// Container entrypoint
34    #[serde(rename = "Entrypoint")]
35    pub entrypoint: Option<Vec<String>>,
36    /// Container environment variables
37    #[serde(rename = "Env")]
38    pub env: Option<Vec<String>>,
39    #[serde(rename = "Healthcheck")]
40    pub healthcheck: Option<crate::v5::models::Schema2HealthConfig>,
41    /// HealthcheckOnFailureAction defines an action to take once the container turns unhealthy.
42    #[serde(rename = "HealthcheckOnFailureAction")]
43    pub healthcheck_on_failure_action: Option<String>,
44    /// Container hostname
45    #[serde(rename = "Hostname")]
46    pub hostname: Option<String>,
47    /// Container image
48    #[serde(rename = "Image")]
49    pub image: Option<String>,
50    /// Container labels
51    #[serde(rename = "Labels")]
52    pub labels: Option<std::collections::HashMap<String, String>>,
53    /// On-build arguments - presently unused. More of Buildah's domain.
54    #[serde(rename = "OnBuild")]
55    pub on_build: Option<String>,
56    /// Whether the container leaves STDIN open
57    #[serde(rename = "OpenStdin")]
58    pub open_stdin: Option<bool>,
59    /// Passwd determines whether or not podman can add entries to /etc/passwd and /etc/group
60    #[serde(rename = "Passwd")]
61    pub passwd: Option<bool>,
62    /// Secrets are the secrets mounted in the container
63    #[serde(rename = "Secrets")]
64    pub secrets: Option<Vec<crate::v5::models::InspectSecret>>,
65    /// Whether STDIN is only left open once.
66    /// Presently not supported by Podman, unused.
67    #[serde(rename = "StdinOnce")]
68    pub stdin_once: Option<bool>,
69    /// Container stop signal
70    #[serde(rename = "StopSignal")]
71    pub stop_signal: Option<String>,
72    /// StopTimeout is time before container is stopped when calling stop
73    #[serde(rename = "StopTimeout")]
74    pub stop_timeout: Option<u64>,
75    /// SystemdMode is whether the container is running in systemd mode. In
76    /// systemd mode, the container configuration is customized to optimize
77    /// running systemd in the container.
78    #[serde(rename = "SystemdMode")]
79    pub systemd_mode: Option<bool>,
80    /// Timeout is time before container is killed by conmon
81    #[serde(rename = "Timeout")]
82    pub timeout: Option<u64>,
83    /// Timezone is the timezone inside the container.
84    /// Local means it has the same timezone as the host machine
85    #[serde(rename = "Timezone")]
86    pub timezone: Option<String>,
87    /// Whether the container creates a TTY
88    #[serde(rename = "Tty")]
89    pub tty: Option<bool>,
90    /// Umask is the umask inside the container.
91    #[serde(rename = "Umask")]
92    pub umask: Option<String>,
93    /// User the container was launched with
94    #[serde(rename = "User")]
95    pub user: Option<String>,
96    /// Unused, at present. I've never seen this field populated.
97    #[serde(rename = "Volumes")]
98    pub volumes: Option<std::collections::HashMap<String, serde_json::Value>>,
99    /// Container working directory
100    #[serde(rename = "WorkingDir")]
101    pub working_dir: Option<String>,
102    /// SdNotifyMode is the sd-notify mode of the container.
103    #[serde(rename = "sdNotifyMode")]
104    pub sd_notify_mode: Option<String>,
105    /// SdNotifySocket is the NOTIFY_SOCKET in use by/configured for the container.
106    #[serde(rename = "sdNotifySocket")]
107    pub sd_notify_socket: Option<String>,
108}