pub struct LinuxContainerSecurityContext {Show 16 fields
pub capabilities: SingularPtrField<Capability>,
pub privileged: bool,
pub namespace_options: SingularPtrField<NamespaceOption>,
pub selinux_options: SingularPtrField<SELinuxOption>,
pub run_as_user: SingularPtrField<Int64Value>,
pub run_as_group: SingularPtrField<Int64Value>,
pub run_as_username: String,
pub readonly_rootfs: bool,
pub supplemental_groups: Vec<i64>,
pub apparmor_profile: String,
pub seccomp_profile_path: String,
pub no_new_privs: bool,
pub masked_paths: RepeatedField<String>,
pub readonly_paths: RepeatedField<String>,
pub unknown_fields: UnknownFields,
pub cached_size: CachedSize,
}Fields§
§capabilities: SingularPtrField<Capability>§privileged: bool§namespace_options: SingularPtrField<NamespaceOption>§selinux_options: SingularPtrField<SELinuxOption>§run_as_user: SingularPtrField<Int64Value>§run_as_group: SingularPtrField<Int64Value>§run_as_username: String§readonly_rootfs: bool§supplemental_groups: Vec<i64>§apparmor_profile: String§seccomp_profile_path: String§no_new_privs: bool§masked_paths: RepeatedField<String>§readonly_paths: RepeatedField<String>§unknown_fields: UnknownFields§cached_size: CachedSizeImplementations§
Source§impl LinuxContainerSecurityContext
impl LinuxContainerSecurityContext
pub fn new() -> LinuxContainerSecurityContext
pub fn get_capabilities(&self) -> &Capability
pub fn clear_capabilities(&mut self)
pub fn has_capabilities(&self) -> bool
pub fn set_capabilities(&mut self, v: Capability)
pub fn mut_capabilities(&mut self) -> &mut Capability
pub fn take_capabilities(&mut self) -> Capability
pub fn get_privileged(&self) -> bool
pub fn clear_privileged(&mut self)
pub fn set_privileged(&mut self, v: bool)
pub fn get_namespace_options(&self) -> &NamespaceOption
pub fn clear_namespace_options(&mut self)
pub fn has_namespace_options(&self) -> bool
pub fn set_namespace_options(&mut self, v: NamespaceOption)
pub fn mut_namespace_options(&mut self) -> &mut NamespaceOption
pub fn take_namespace_options(&mut self) -> NamespaceOption
pub fn get_selinux_options(&self) -> &SELinuxOption
pub fn clear_selinux_options(&mut self)
pub fn has_selinux_options(&self) -> bool
pub fn set_selinux_options(&mut self, v: SELinuxOption)
pub fn mut_selinux_options(&mut self) -> &mut SELinuxOption
pub fn take_selinux_options(&mut self) -> SELinuxOption
pub fn get_run_as_user(&self) -> &Int64Value
pub fn clear_run_as_user(&mut self)
pub fn has_run_as_user(&self) -> bool
pub fn set_run_as_user(&mut self, v: Int64Value)
pub fn mut_run_as_user(&mut self) -> &mut Int64Value
pub fn take_run_as_user(&mut self) -> Int64Value
pub fn get_run_as_group(&self) -> &Int64Value
pub fn clear_run_as_group(&mut self)
pub fn has_run_as_group(&self) -> bool
pub fn set_run_as_group(&mut self, v: Int64Value)
pub fn mut_run_as_group(&mut self) -> &mut Int64Value
pub fn take_run_as_group(&mut self) -> Int64Value
pub fn get_run_as_username(&self) -> &str
pub fn clear_run_as_username(&mut self)
pub fn set_run_as_username(&mut self, v: String)
pub fn mut_run_as_username(&mut self) -> &mut String
pub fn take_run_as_username(&mut self) -> String
pub fn get_readonly_rootfs(&self) -> bool
pub fn clear_readonly_rootfs(&mut self)
pub fn set_readonly_rootfs(&mut self, v: bool)
pub fn get_supplemental_groups(&self) -> &[i64]
pub fn clear_supplemental_groups(&mut self)
pub fn set_supplemental_groups(&mut self, v: Vec<i64>)
pub fn mut_supplemental_groups(&mut self) -> &mut Vec<i64>
pub fn take_supplemental_groups(&mut self) -> Vec<i64>
pub fn get_apparmor_profile(&self) -> &str
pub fn clear_apparmor_profile(&mut self)
pub fn set_apparmor_profile(&mut self, v: String)
pub fn mut_apparmor_profile(&mut self) -> &mut String
pub fn take_apparmor_profile(&mut self) -> String
pub fn get_seccomp_profile_path(&self) -> &str
pub fn clear_seccomp_profile_path(&mut self)
pub fn set_seccomp_profile_path(&mut self, v: String)
pub fn mut_seccomp_profile_path(&mut self) -> &mut String
pub fn take_seccomp_profile_path(&mut self) -> String
pub fn get_no_new_privs(&self) -> bool
pub fn clear_no_new_privs(&mut self)
pub fn set_no_new_privs(&mut self, v: bool)
pub fn get_masked_paths(&self) -> &[String]
pub fn clear_masked_paths(&mut self)
pub fn set_masked_paths(&mut self, v: RepeatedField<String>)
pub fn mut_masked_paths(&mut self) -> &mut RepeatedField<String>
pub fn take_masked_paths(&mut self) -> RepeatedField<String>
pub fn get_readonly_paths(&self) -> &[String]
pub fn clear_readonly_paths(&mut self)
pub fn set_readonly_paths(&mut self, v: RepeatedField<String>)
pub fn mut_readonly_paths(&mut self) -> &mut RepeatedField<String>
pub fn take_readonly_paths(&mut self) -> RepeatedField<String>
Trait Implementations§
Source§impl Clone for LinuxContainerSecurityContext
impl Clone for LinuxContainerSecurityContext
Source§fn clone(&self) -> LinuxContainerSecurityContext
fn clone(&self) -> LinuxContainerSecurityContext
Returns a copy 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<'a> Default for &'a LinuxContainerSecurityContext
impl<'a> Default for &'a LinuxContainerSecurityContext
Source§fn default() -> &'a LinuxContainerSecurityContext
fn default() -> &'a LinuxContainerSecurityContext
Returns the “default value” for a type. Read more
Source§impl Default for LinuxContainerSecurityContext
impl Default for LinuxContainerSecurityContext
Source§fn default() -> LinuxContainerSecurityContext
fn default() -> LinuxContainerSecurityContext
Returns the “default value” for a type. Read more
Source§impl Message for LinuxContainerSecurityContext
impl Message for LinuxContainerSecurityContext
Source§fn is_initialized(&self) -> bool
fn is_initialized(&self) -> bool
True iff all required fields are initialized.
Always returns
true for protobuf 3.Source§fn merge_from(&mut self, is: &mut CodedInputStream<'_>) -> ProtobufResult<()>
fn merge_from(&mut self, is: &mut CodedInputStream<'_>) -> ProtobufResult<()>
Update this message object with fields read from given stream.
Source§fn compute_size(&self) -> u32
fn compute_size(&self) -> u32
Compute and cache size of this message and all nested messages
Source§fn write_to_with_cached_sizes(
&self,
os: &mut CodedOutputStream<'_>,
) -> ProtobufResult<()>
fn write_to_with_cached_sizes( &self, os: &mut CodedOutputStream<'_>, ) -> ProtobufResult<()>
Write message to the stream. Read more
Source§fn get_cached_size(&self) -> u32
fn get_cached_size(&self) -> u32
Get size previously computed by
compute_size.Source§fn get_unknown_fields(&self) -> &UnknownFields
fn get_unknown_fields(&self) -> &UnknownFields
Get a reference to unknown fields.
Source§fn mut_unknown_fields(&mut self) -> &mut UnknownFields
fn mut_unknown_fields(&mut self) -> &mut UnknownFields
Get a mutable reference to unknown fields.
Source§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
View self as mutable
Any.Source§fn descriptor(&self) -> &'static MessageDescriptor
fn descriptor(&self) -> &'static MessageDescriptor
Message descriptor for this message, used for reflection.
Source§fn new() -> LinuxContainerSecurityContext
fn new() -> LinuxContainerSecurityContext
Create an empty message object. Read more
Source§fn descriptor_static() -> &'static MessageDescriptor
fn descriptor_static() -> &'static MessageDescriptor
Get message descriptor for message type. Read more
Source§fn default_instance() -> &'static LinuxContainerSecurityContext
fn default_instance() -> &'static LinuxContainerSecurityContext
Return a pointer to default immutable message with static lifetime. Read more
Source§fn parse_from(is: &mut CodedInputStream<'_>) -> Result<Self, ProtobufError>where
Self: Sized,
fn parse_from(is: &mut CodedInputStream<'_>) -> Result<Self, ProtobufError>where
Self: Sized,
Parse message from stream.
Source§fn write_to(&self, os: &mut CodedOutputStream<'_>) -> Result<(), ProtobufError>
fn write_to(&self, os: &mut CodedOutputStream<'_>) -> Result<(), ProtobufError>
Write the message to the stream. Read more
Source§fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream<'_>,
) -> Result<(), ProtobufError>
fn write_length_delimited_to( &self, os: &mut CodedOutputStream<'_>, ) -> Result<(), ProtobufError>
Write the message to the stream prepending the message with message length
encoded as varint.
Source§fn write_length_delimited_to_vec(
&self,
vec: &mut Vec<u8>,
) -> Result<(), ProtobufError>
fn write_length_delimited_to_vec( &self, vec: &mut Vec<u8>, ) -> Result<(), ProtobufError>
Write the message to the vec, prepend the message with message length
encoded as varint.
Source§fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), ProtobufError>
fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), ProtobufError>
Update this message object with fields read from given stream.
Source§fn parse_from_reader(reader: &mut dyn Read) -> Result<Self, ProtobufError>where
Self: Sized,
fn parse_from_reader(reader: &mut dyn Read) -> Result<Self, ProtobufError>where
Self: Sized,
Parse message from reader.
Parse stops on EOF or when error encountered.
Source§fn parse_from_bytes(bytes: &[u8]) -> Result<Self, ProtobufError>where
Self: Sized,
fn parse_from_bytes(bytes: &[u8]) -> Result<Self, ProtobufError>where
Self: Sized,
Parse message from byte array.
Source§fn check_initialized(&self) -> Result<(), ProtobufError>
fn check_initialized(&self) -> Result<(), ProtobufError>
Check if all required fields of this object are initialized.
Source§fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), ProtobufError>
fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), ProtobufError>
Write the message to the writer.
Source§fn write_to_vec(&self, v: &mut Vec<u8>) -> Result<(), ProtobufError>
fn write_to_vec(&self, v: &mut Vec<u8>) -> Result<(), ProtobufError>
Write the message to bytes vec.
Source§fn write_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>
fn write_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>
Write the message to bytes vec.
Source§fn write_length_delimited_to_writer(
&self,
w: &mut dyn Write,
) -> Result<(), ProtobufError>
fn write_length_delimited_to_writer( &self, w: &mut dyn Write, ) -> Result<(), ProtobufError>
Write the message to the writer, prepend the message with message length
encoded as varint.
Source§fn write_length_delimited_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>
fn write_length_delimited_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>
Write the message to the bytes vec, prepend the message with message length
encoded as varint.
Source§impl PartialEq for LinuxContainerSecurityContext
impl PartialEq for LinuxContainerSecurityContext
Source§fn eq(&self, other: &LinuxContainerSecurityContext) -> bool
fn eq(&self, other: &LinuxContainerSecurityContext) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl ProtobufValue for LinuxContainerSecurityContext
impl ProtobufValue for LinuxContainerSecurityContext
Source§fn as_ref(&self) -> ReflectValueRef<'_>
fn as_ref(&self) -> ReflectValueRef<'_>
As ref
Source§fn is_non_zero(&self) -> bool
fn is_non_zero(&self) -> bool
Is value non-zero?
Source§fn as_ref_copy(&self) -> ReflectValueRef<'static>
fn as_ref_copy(&self) -> ReflectValueRef<'static>
impl StructuralPartialEq for LinuxContainerSecurityContext
Auto Trait Implementations§
impl !Freeze for LinuxContainerSecurityContext
impl RefUnwindSafe for LinuxContainerSecurityContext
impl Send for LinuxContainerSecurityContext
impl Sync for LinuxContainerSecurityContext
impl Unpin for LinuxContainerSecurityContext
impl UnwindSafe for LinuxContainerSecurityContext
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