pub struct PodStorageConfig {
pub image_volumes: Option<Vec<ImageVolume>>,
pub mounts: Option<Vec<Mount>>,
pub overlay_volumes: Option<Vec<OverlayVolume>>,
pub shm_size: Option<i64>,
pub shm_size_systemd: Option<i64>,
pub volumes: Option<Vec<NamedVolume>>,
pub volumes_from: Option<Vec<String>>,
}
Fields§
§image_volumes: Option<Vec<ImageVolume>>
Image volumes bind-mount a container-image mount into the pod’s infra container. Optional.
mounts: Option<Vec<Mount>>
Mounts are mounts that will be added to the pod. These will supersede Image Volumes and VolumesFrom volumes where there are conflicts. Optional.
overlay_volumes: Option<Vec<OverlayVolume>>
Overlay volumes are named volumes that will be added to the pod. Optional.
shm_size: Option<i64>
ShmSize is the size of the tmpfs to mount in at /dev/shm, in bytes. Conflicts with ShmSize if IpcNS is not private. Optional.
shm_size_systemd: Option<i64>
ShmSizeSystemd is the size of systemd-specific tmpfs mounts specifically /run, /run/lock, /var/log/journal and /tmp. Optional
volumes: Option<Vec<NamedVolume>>
Volumes are named volumes that will be added to the pod. These will supersede Image Volumes and VolumesFrom volumes where there are conflicts. Optional.
volumes_from: Option<Vec<String>>
VolumesFrom is a set of containers whose volumes will be added to this pod. The name or ID of the container must be provided, and may optionally be followed by a : and then one or more comma-separated options. Valid options are ‘ro’, ‘rw’, and ‘z’. Options will be used for all volumes sourced from the container.
Implementations§
source§impl PodStorageConfig
impl PodStorageConfig
pub fn new() -> PodStorageConfig
Trait Implementations§
source§impl Clone for PodStorageConfig
impl Clone for PodStorageConfig
source§fn clone(&self) -> PodStorageConfig
fn clone(&self) -> PodStorageConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PodStorageConfig
impl Debug for PodStorageConfig
source§impl Default for PodStorageConfig
impl Default for PodStorageConfig
source§fn default() -> PodStorageConfig
fn default() -> PodStorageConfig
source§impl<'de> Deserialize<'de> for PodStorageConfig
impl<'de> Deserialize<'de> for PodStorageConfig
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl PartialEq for PodStorageConfig
impl PartialEq for PodStorageConfig
source§fn eq(&self, other: &PodStorageConfig) -> bool
fn eq(&self, other: &PodStorageConfig) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PodStorageConfig
impl Serialize for PodStorageConfig
impl StructuralPartialEq for PodStorageConfig
Auto Trait Implementations§
impl Freeze for PodStorageConfig
impl RefUnwindSafe for PodStorageConfig
impl Send for PodStorageConfig
impl Sync for PodStorageConfig
impl Unpin for PodStorageConfig
impl UnwindSafe for PodStorageConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)