pub struct GitRepoVolumeSource {
pub directory: Option<String>,
pub repository: Option<String>,
pub revision: Option<String>,
}Expand description
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. +optional
repository: Option<String>Repository URL
revision: Option<String>Commit hash for the specified revision. +optional
Implementations§
Source§impl GitRepoVolumeSource
impl GitRepoVolumeSource
pub fn new() -> GitRepoVolumeSource
Trait Implementations§
Source§impl Clone for GitRepoVolumeSource
impl Clone for GitRepoVolumeSource
Source§fn clone(&self) -> GitRepoVolumeSource
fn clone(&self) -> GitRepoVolumeSource
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GitRepoVolumeSource
impl Debug for GitRepoVolumeSource
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>,
Source§impl FromStr for GitRepoVolumeSource
Converts Query Parameters representation (style=form, explode=false) to a GitRepoVolumeSource value
as specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde deserializer
impl FromStr for GitRepoVolumeSource
Converts Query Parameters representation (style=form, explode=false) to a GitRepoVolumeSource value as specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde deserializer
Source§impl PartialEq for GitRepoVolumeSource
impl PartialEq for GitRepoVolumeSource
Source§impl Serialize for GitRepoVolumeSource
impl Serialize for GitRepoVolumeSource
Source§impl ToString for GitRepoVolumeSource
Converts the GitRepoVolumeSource value to the Query Parameters representation (style=form, explode=false)
specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde serializer
impl ToString for GitRepoVolumeSource
Converts the GitRepoVolumeSource value to the Query Parameters representation (style=form, explode=false) specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde serializer