pub struct Security {
pub profile: String,
pub run_as_user: Option<i64>,
pub run_as_group: Option<i64>,
pub read_only_root_filesystem: Option<bool>,
pub writable_paths: Vec<String>,
}Expand description
Hardened execution settings.
Fields§
§profile: Stringrestricted, restrictedInternet, or unrestricted (the workload’s opt-out).
run_as_user: Option<i64>User id; absent means the image’s own non-root user.
run_as_group: Option<i64>Group id; absent means the image’s own group.
read_only_root_filesystem: Option<bool>Whether the root filesystem is read-only; absent means the profile’s default.
writable_paths: Vec<String>Absolute paths backed by a writable emptyDir.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Security
impl<'de> Deserialize<'de> for Security
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 Security
impl StructuralPartialEq for Security
Auto Trait Implementations§
impl Forget for Security
impl Freeze for Security
impl Move for Security
impl RefUnwindSafe for Security
impl Send for Security
impl Sync for Security
impl Unpin for Security
impl UnsafeUnpin for Security
impl UnwindSafe for Security
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