Struct k8s_openapi::api::policy::v1beta1::AllowedHostPath
source · [−]Expand description
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
sourceimpl Clone for AllowedHostPath
impl Clone for AllowedHostPath
sourcefn clone(&self) -> AllowedHostPath
fn clone(&self) -> AllowedHostPath
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AllowedHostPath
impl Debug for AllowedHostPath
sourceimpl Default for AllowedHostPath
impl Default for AllowedHostPath
sourcefn default() -> AllowedHostPath
fn default() -> AllowedHostPath
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for AllowedHostPath
impl<'de> Deserialize<'de> for AllowedHostPath
sourcefn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<AllowedHostPath> for AllowedHostPath
impl PartialEq<AllowedHostPath> for AllowedHostPath
sourcefn eq(&self, other: &AllowedHostPath) -> bool
fn eq(&self, other: &AllowedHostPath) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AllowedHostPath) -> bool
fn ne(&self, other: &AllowedHostPath) -> bool
This method tests for !=
.
sourceimpl Serialize for AllowedHostPath
impl Serialize for AllowedHostPath
impl StructuralPartialEq for AllowedHostPath
Auto Trait Implementations
impl RefUnwindSafe for AllowedHostPath
impl Send for AllowedHostPath
impl Sync for AllowedHostPath
impl Unpin for AllowedHostPath
impl UnwindSafe for AllowedHostPath
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more