#[non_exhaustive]pub struct VersionToPath {
pub path: String,
pub version: String,
pub mode: i32,
/* private fields */
}Expand description
VersionToPath maps a specific version of a secret to a relative file to mount to, relative to VolumeMount’s mount_path.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.path: StringRequired. The relative path of the secret in the container.
version: StringThe Cloud Secret Manager secret version. Can be ‘latest’ for the latest value, or an integer or a secret alias for a specific version.
mode: i32Integer octal mode bits to use on this file, must be a value between 01 and 0777 (octal). If 0 or not set, the Volume’s default mode will be used.
Notes
- Internally, a umask of 0222 will be applied to any non-zero value.
- This is an integer representation of the mode bits. So, the octal integer value should look exactly as the chmod numeric notation with a leading zero. Some examples: for chmod 640 (u=rw,g=r), set to 0640 (octal) or 416 (base-10). For chmod 755 (u=rwx,g=rx,o=rx), set to 0755 (octal) or 493 (base-10).
- This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
Implementations§
Trait Implementations§
Source§impl Clone for VersionToPath
impl Clone for VersionToPath
Source§fn clone(&self) -> VersionToPath
fn clone(&self) -> VersionToPath
Returns a duplicate 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 VersionToPath
impl Debug for VersionToPath
Source§impl Default for VersionToPath
impl Default for VersionToPath
Source§fn default() -> VersionToPath
fn default() -> VersionToPath
Returns the “default value” for a type. Read more
Source§impl Message for VersionToPath
impl Message for VersionToPath
Source§impl PartialEq for VersionToPath
impl PartialEq for VersionToPath
impl StructuralPartialEq for VersionToPath
Auto Trait Implementations§
impl Freeze for VersionToPath
impl RefUnwindSafe for VersionToPath
impl Send for VersionToPath
impl Sync for VersionToPath
impl Unpin for VersionToPath
impl UnwindSafe for VersionToPath
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