pub struct SecretMount {
pub source: String,
pub target: Option<String>,
pub uid: Option<u32>,
pub gid: Option<u32>,
pub mode: Option<Mode>,
}Expand description
A secret placed in a machine: which one, at what path, owned by whom, with what mode.
Fields§
§source: StringThe secret, from the top-level secrets.
target: Option<String>The file’s path in the machine: absolute, or a name under /run/secrets/. Default:
/run/secrets/<source>. On Windows, a drive path (C:\app\db-password) too; a path from
/ is on drive C: (/run/secrets/db is C:\run\secrets\db).
uid: Option<u32>The file’s owner, a user id (default 0, root). Not on Windows, where the file is readable by SYSTEM and Administrators only.
gid: Option<u32>The file’s group, a group id (default 0, root).
mode: Option<Mode>The file’s mode, in octal (0440, or "0440"). Default 0444 in a container (as
Compose and Kubernetes do), 0400 on a Linux VM, whose other users shouldn’t read it.
Not on Windows.
Trait Implementations§
Source§impl Clone for SecretMount
impl Clone for SecretMount
Source§impl Debug for SecretMount
impl Debug for SecretMount
Source§impl<'de> Deserialize<'de> for SecretMount
impl<'de> Deserialize<'de> for SecretMount
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
impl Eq for SecretMount
Source§impl JsonSchema for SecretMount
impl JsonSchema for SecretMount
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for SecretMount
impl PartialEq for SecretMount
Source§impl Serialize for SecretMount
impl Serialize for SecretMount
impl StructuralPartialEq for SecretMount
Auto Trait Implementations§
impl Freeze for SecretMount
impl RefUnwindSafe for SecretMount
impl Send for SecretMount
impl Sync for SecretMount
impl Unpin for SecretMount
impl UnsafeUnpin for SecretMount
impl UnwindSafe for SecretMount
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.