Struct k8s_openapi::v1_9::api::core::v1::GitRepoVolumeSource
source · pub struct GitRepoVolumeSource {
pub directory: Option<String>,
pub repository: String,
pub revision: Option<String>,
}
Expand description
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.
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§
source§impl Clone for GitRepoVolumeSource
impl Clone for GitRepoVolumeSource
source§fn clone(&self) -> GitRepoVolumeSource
fn clone(&self) -> GitRepoVolumeSource
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GitRepoVolumeSource
impl Debug for GitRepoVolumeSource
source§impl Default for GitRepoVolumeSource
impl Default for GitRepoVolumeSource
source§fn default() -> GitRepoVolumeSource
fn default() -> GitRepoVolumeSource
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for GitRepoVolumeSource
impl<'de> Deserialize<'de> for GitRepoVolumeSource
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>,
Deserialize this value from the given Serde deserializer. Read more