Struct google_binaryauthorization1_beta1::AdmissionRule [−][src]
pub struct AdmissionRule { pub enforcement_mode: Option<String>, pub require_attestations_by: Option<Vec<String>>, pub evaluation_mode: Option<String>, }
An admission rule specifies either that all container images used in a pod creation request must be attested to by one or more attestors, that all pod creations will be allowed, or that all pod creations will be denied.
Images matching an admission whitelist pattern are exempted from admission rules and will never block a pod creation.
This type is not used in any activity, and only used as part of another schema.
Fields
enforcement_mode: Option<String>
Required. The action when a pod creation is denied by the admission rule.
require_attestations_by: Option<Vec<String>>
Optional. The resource names of the attestors that must attest to
a container image, in the format projects/*/attestors/*
. Each
attestor must exist before a policy can reference it. To add an attestor
to a policy the principal issuing the policy change request must be able
to read the attestor resource.
Note: this field must be non-empty when the evaluation_mode field specifies REQUIRE_ATTESTATION, otherwise it must be empty.
evaluation_mode: Option<String>
Required. How this admission rule will be evaluated.
Trait Implementations
impl Default for AdmissionRule
[src]
impl Default for AdmissionRule
fn default() -> AdmissionRule
[src]
fn default() -> AdmissionRule
Returns the "default value" for a type. Read more
impl Clone for AdmissionRule
[src]
impl Clone for AdmissionRule
fn clone(&self) -> AdmissionRule
[src]
fn clone(&self) -> AdmissionRule
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for AdmissionRule
[src]
impl Debug for AdmissionRule
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Part for AdmissionRule
[src]
impl Part for AdmissionRule
Auto Trait Implementations
impl Send for AdmissionRule
impl Send for AdmissionRule
impl Sync for AdmissionRule
impl Sync for AdmissionRule