podman_rest_client/v5/models/pod_storage_config.rs
1use serde::{Deserialize, Serialize};
2#[derive(Default, Debug, Serialize, Deserialize)]
3/// PodStorageConfig contains all of the storage related options for the pod and its infra container.
4pub struct PodStorageConfig {
5 /// Image volumes bind-mount a container-image mount into the pod's infra container.
6 /// Optional.
7 pub image_volumes: Option<Vec<crate::v5::models::ImageVolume>>,
8 /// Mounts are mounts that will be added to the pod.
9 /// These will supersede Image Volumes and VolumesFrom volumes where
10 /// there are conflicts.
11 /// Optional.
12 pub mounts: Option<Vec<crate::v5::models::Mount>>,
13 /// Overlay volumes are named volumes that will be added to the pod.
14 /// Optional.
15 pub overlay_volumes: Option<Vec<crate::v5::models::OverlayVolume>>,
16 /// ShmSize is the size of the tmpfs to mount in at /dev/shm, in bytes.
17 /// Conflicts with ShmSize if IpcNS is not private.
18 /// Optional.
19 pub shm_size: Option<i64>,
20 /// ShmSizeSystemd is the size of systemd-specific tmpfs mounts
21 /// specifically /run, /run/lock, /var/log/journal and /tmp.
22 /// Optional
23 pub shm_size_systemd: Option<i64>,
24 /// Volumes are named volumes that will be added to the pod.
25 /// These will supersede Image Volumes and VolumesFrom volumes where
26 /// there are conflicts.
27 /// Optional.
28 pub volumes: Option<Vec<crate::v5::models::NamedVolume>>,
29 /// VolumesFrom is a set of containers whose volumes will be added to
30 /// this pod. The name or ID of the container must be provided, and
31 /// may optionally be followed by a : and then one or more
32 /// comma-separated options. Valid options are 'ro', 'rw', and 'z'.
33 /// Options will be used for all volumes sourced from the container.
34 pub volumes_from: Option<Vec<String>>,
35}