[][src]Struct k8s_openapi::api::policy::v1beta1::AllowedHostPath

pub struct AllowedHostPath {
    pub path_prefix: Option<String>,
    pub read_only: Option<bool>,
}

AllowedHostPath defines the host volume conditions that will be enabled by a policy for pods to use. It requires the path prefix to be defined.

Fields

path_prefix: Option<String>

pathPrefix is the path prefix that the host volume must match. It does not support *. Trailing slashes are trimmed when validating the path prefix with a host path.

Examples: /foo would allow /foo, /foo/ and /foo/bar /foo would not allow /food or /etc/foo

read_only: Option<bool>

when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.

Trait Implementations

impl Clone for AllowedHostPath[src]

impl Debug for AllowedHostPath[src]

impl Default for AllowedHostPath[src]

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

impl PartialEq<AllowedHostPath> for AllowedHostPath[src]

impl Serialize for AllowedHostPath[src]

impl StructuralPartialEq for AllowedHostPath[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, 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.