pub struct SecretFile {
pub name: String,
pub source: ValueSource,
pub path: String,
pub uid: Option<u32>,
pub gid: Option<u32>,
pub mode: Option<u32>,
}Expand description
One secret file of a machine.
Fields§
§name: StringThe secret, as the top-level secrets names it (an input’s file is the secret
input-<name> lowering makes of it).
source: ValueSourceWhere the value comes from.
path: StringThe file’s absolute path in the machine.
uid: Option<u32>Its owner’s user id, when the spec sets one (root otherwise).
gid: Option<u32>Its group id, when the spec sets one (root otherwise).
mode: Option<u32>Its mode, when the spec sets one (DEFAULT_MODE in a container, VM_DEFAULT_MODE on
a Linux VM otherwise).
Implementations§
Source§impl SecretFile
impl SecretFile
Sourcepub fn of(spec: &Spec, s: &MachineSecret) -> SecretFile
pub fn of(spec: &Spec, s: &MachineSecret) -> SecretFile
The file a machine’s secrets entry places.
Trait Implementations§
Source§impl Clone for SecretFile
impl Clone for SecretFile
Source§impl Debug for SecretFile
impl Debug for SecretFile
impl Eq for SecretFile
Source§impl PartialEq for SecretFile
impl PartialEq for SecretFile
impl StructuralPartialEq for SecretFile
Auto Trait Implementations§
impl Freeze for SecretFile
impl RefUnwindSafe for SecretFile
impl Send for SecretFile
impl Sync for SecretFile
impl Unpin for SecretFile
impl UnsafeUnpin for SecretFile
impl UnwindSafe for SecretFile
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.