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.
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>
directory is the 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 is the URL
revision: Option<String>
revision is the 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 DeepMerge for GitRepoVolumeSource
impl DeepMerge for GitRepoVolumeSource
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.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
Source§impl PartialEq for GitRepoVolumeSource
impl PartialEq for GitRepoVolumeSource
Source§impl Serialize for GitRepoVolumeSource
impl Serialize for GitRepoVolumeSource
impl StructuralPartialEq for GitRepoVolumeSource
Auto Trait Implementations§
impl Freeze for GitRepoVolumeSource
impl RefUnwindSafe for GitRepoVolumeSource
impl Send for GitRepoVolumeSource
impl Sync for GitRepoVolumeSource
impl Unpin for GitRepoVolumeSource
impl UnwindSafe for GitRepoVolumeSource
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
Mutably borrows from an owned value. Read more