pub struct NamedVolume {
pub dest: Option<String>,
pub is_anonymous: Option<bool>,
pub name: Option<String>,
pub options: Option<Vec<String>>,
pub sub_path: Option<String>,
}
Expand description
NamedVolume : NamedVolume holds information about a named volume that will be mounted into the container.
Fields§
§dest: Option<String>
Destination to mount the named volume within the container. Must be an absolute path. Path will be created if it does not exist.
is_anonymous: Option<bool>
IsAnonymous sets the named volume as anonymous even if it has a name This is used for emptyDir volumes from a kube yaml
name: Option<String>
Name is the name of the named volume to be mounted. May be empty. If empty, a new named volume with a pseudorandomly generated name will be mounted at the given destination.
options: Option<Vec<String>>
Options are options that the named volume will be mounted with.
sub_path: Option<String>
SubPath stores the sub directory of the named volume to be mounted in the container
Implementations§
Source§impl NamedVolume
impl NamedVolume
Sourcepub fn new() -> NamedVolume
pub fn new() -> NamedVolume
NamedVolume holds information about a named volume that will be mounted into the container.
Trait Implementations§
Source§impl Clone for NamedVolume
impl Clone for NamedVolume
Source§fn clone(&self) -> NamedVolume
fn clone(&self) -> NamedVolume
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more