Struct k8s_openapi::v1_11::api::core::v1::GitRepoVolumeSource [−][src]
pub struct GitRepoVolumeSource { pub directory: Option<String>, pub repository: String, pub revision: Option<String>, }
Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling.
DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.
Fields
directory: Option<String>
Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name.
repository: String
Repository URL
revision: Option<String>
Commit hash for the specified revision.
Trait Implementations
impl Clone for GitRepoVolumeSource
[src]
impl Clone for GitRepoVolumeSource
fn clone(&self) -> GitRepoVolumeSource
[src]
fn clone(&self) -> GitRepoVolumeSource
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for GitRepoVolumeSource
[src]
impl Debug for GitRepoVolumeSource
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for GitRepoVolumeSource
[src]
impl Default for GitRepoVolumeSource
fn default() -> GitRepoVolumeSource
[src]
fn default() -> GitRepoVolumeSource
Returns the "default value" for a type. Read more
impl PartialEq for GitRepoVolumeSource
[src]
impl PartialEq for GitRepoVolumeSource
fn eq(&self, other: &GitRepoVolumeSource) -> bool
[src]
fn eq(&self, other: &GitRepoVolumeSource) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &GitRepoVolumeSource) -> bool
[src]
fn ne(&self, other: &GitRepoVolumeSource) -> bool
This method tests for !=
.
impl<'de> Deserialize<'de> for GitRepoVolumeSource
[src]
impl<'de> Deserialize<'de> for GitRepoVolumeSource
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Serialize for GitRepoVolumeSource
[src]
impl Serialize for GitRepoVolumeSource
Auto Trait Implementations
impl Send for GitRepoVolumeSource
impl Send for GitRepoVolumeSource
impl Sync for GitRepoVolumeSource
impl Sync for GitRepoVolumeSource