Struct google_binaryauthorization1_beta1::api::AdmissionRule[][src]

pub struct AdmissionRule {
    pub enforcement_mode: Option<String>,
    pub evaluation_mode: Option<String>,
    pub require_attestations_by: Option<Vec<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 allowlist 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.

evaluation_mode: Option<String>

Required. How this admission rule will be evaluated.

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.

Trait Implementations

impl Clone for AdmissionRule[src]

impl Debug for AdmissionRule[src]

impl Default for AdmissionRule[src]

impl<'de> Deserialize<'de> for AdmissionRule[src]

impl Part for AdmissionRule[src]

impl Serialize for AdmissionRule[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.