#[non_exhaustive]pub struct AdmissionWhitelistPattern {
pub name_pattern: String,
/* private fields */
}
Expand description
An admission allowlist pattern exempts images from checks by admission rules.
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.name_pattern: String
An image name pattern to allowlist, in the form registry/path/to/image
.
This supports a trailing *
wildcard, but this is allowed only in
text after the registry/
part. This also supports a trailing **
wildcard which matches subdirectories of a given entry.
Implementations§
Source§impl AdmissionWhitelistPattern
impl AdmissionWhitelistPattern
pub fn new() -> Self
Sourcepub fn set_name_pattern<T: Into<String>>(self, v: T) -> Self
pub fn set_name_pattern<T: Into<String>>(self, v: T) -> Self
Sets the value of name_pattern.
Trait Implementations§
Source§impl Clone for AdmissionWhitelistPattern
impl Clone for AdmissionWhitelistPattern
Source§fn clone(&self) -> AdmissionWhitelistPattern
fn clone(&self) -> AdmissionWhitelistPattern
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 AdmissionWhitelistPattern
impl Debug for AdmissionWhitelistPattern
Source§impl Default for AdmissionWhitelistPattern
impl Default for AdmissionWhitelistPattern
Source§fn default() -> AdmissionWhitelistPattern
fn default() -> AdmissionWhitelistPattern
Returns the “default value” for a type. Read more
Source§impl Message for AdmissionWhitelistPattern
impl Message for AdmissionWhitelistPattern
impl StructuralPartialEq for AdmissionWhitelistPattern
Auto Trait Implementations§
impl Freeze for AdmissionWhitelistPattern
impl RefUnwindSafe for AdmissionWhitelistPattern
impl Send for AdmissionWhitelistPattern
impl Sync for AdmissionWhitelistPattern
impl Unpin for AdmissionWhitelistPattern
impl UnwindSafe for AdmissionWhitelistPattern
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