#[non_exhaustive]pub struct EmptyDirVolumeSource {
pub medium: Medium,
pub size_limit: String,
/* private fields */
}Expand description
In memory (tmpfs) ephemeral storage. It is ephemeral in the sense that when the sandbox is taken down, the data is destroyed with it (it does not persist across sandbox runs).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.medium: MediumThe medium on which the data is stored. Acceptable values today is only MEMORY or none. When none, the default will currently be backed by memory but could change over time. +optional
size_limit: StringLimit on the storage usable by this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers. The default is nil which means that the limit is undefined. More info: https://cloud.google.com/run/docs/configuring/in-memory-volumes#configure-volume. Info in Kubernetes: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir
Implementations§
Source§impl EmptyDirVolumeSource
impl EmptyDirVolumeSource
pub fn new() -> Self
Sourcepub fn set_medium<T: Into<Medium>>(self, v: T) -> Self
pub fn set_medium<T: Into<Medium>>(self, v: T) -> Self
Sourcepub fn set_size_limit<T: Into<String>>(self, v: T) -> Self
pub fn set_size_limit<T: Into<String>>(self, v: T) -> Self
Sets the value of size_limit.
§Example
let x = EmptyDirVolumeSource::new().set_size_limit("example");Trait Implementations§
Source§impl Clone for EmptyDirVolumeSource
impl Clone for EmptyDirVolumeSource
Source§fn clone(&self) -> EmptyDirVolumeSource
fn clone(&self) -> EmptyDirVolumeSource
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more