Skip to main content

SecurityOptionKind

Enum SecurityOptionKind 

Source
#[non_exhaustive]
pub enum SecurityOptionKind {
Show 23 variants AppArmor { profile: String, }, Seccomp { profile: String, }, NoNewPrivileges { enabled: bool, }, SecurityLabelDisable { enabled: bool, }, SecurityLabelFileType { file_type: String, }, SecurityLabelLevel { level: String, }, SecurityLabelNested { enabled: bool, }, SecurityLabelType { label_type: String, }, Mask { paths: String, }, Unmask { paths: String, }, Expression, Empty, AppArmorNearMiss, SeccompNearMiss, NoNewPrivilegesNearMiss, SecurityLabelDisableNearMiss, SecurityLabelFileTypeNearMiss, SecurityLabelLevelNearMiss, SecurityLabelNestedNearMiss, SecurityLabelTypeNearMiss, MaskNearMiss, UnmaskNearMiss, Other,
}
Expand description

The narrow native classification of one service security_opt string.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

AppArmor

An exact lowercase apparmor=<profile> candidate with no whitespace alteration.

Fields

§profile: String

The exact non-empty profile spelling after apparmor=.

§

Seccomp

An exact lowercase seccomp=<profile> candidate with no whitespace alteration.

Fields

§profile: String

The exact non-empty profile spelling after seccomp=.

§

NoNewPrivileges

An exact lowercase whitespace-free no-new-privileges:<bool> candidate.

Fields

§enabled: bool

Whether no-new-privileges is explicitly enabled or disabled.

§

SecurityLabelDisable

An exact lowercase whitespace-free label:disable candidate.

Fields

§enabled: bool

Whether SELinux label separation is explicitly disabled.

§

SecurityLabelFileType

An exact lowercase whitespace-free label:filetype:<type> candidate.

Fields

§file_type: String

The exact non-empty file-type spelling after label:filetype:.

§

SecurityLabelLevel

An exact lowercase whitespace-free label:level:<level> candidate.

Fields

§level: String

The exact non-empty level spelling after label:level:.

§

SecurityLabelNested

An exact lowercase whitespace-free label:nested candidate.

Fields

§enabled: bool

Whether nested SELinux labeling is explicitly requested.

§

SecurityLabelType

An exact lowercase whitespace-free label:type:<type> candidate.

Fields

§label_type: String

The exact non-empty type spelling after label:type:.

§

Mask

An exact lowercase whitespace-free mask=<paths> candidate.

Fields

§paths: String

The exact non-empty path payload after mask=, including colon separators.

§

Unmask

An exact lowercase whitespace-free unmask=<paths> candidate.

Fields

§paths: String

The exact payload after unmask=, either ALL or colon-separated absolute-looking paths.

§

Expression

A value whose effective spelling depends on Compose interpolation.

§

Empty

An explicitly authored empty string.

§

AppArmorNearMiss

An AppArmor-shaped spelling that is not the exact narrow candidate form.

§

SeccompNearMiss

A seccomp-shaped spelling that is not the exact narrow candidate form.

§

NoNewPrivilegesNearMiss

A no-new-privileges-shaped spelling that is not an exact narrow candidate.

§

SecurityLabelDisableNearMiss

A label-disable-shaped spelling that is not the exact narrow candidate.

§

SecurityLabelFileTypeNearMiss

A label-filetype-shaped spelling that is not the exact narrow candidate.

§

SecurityLabelLevelNearMiss

A label-level-shaped spelling that is not the exact narrow candidate.

§

SecurityLabelNestedNearMiss

A label-nested-shaped spelling that is not the exact narrow candidate.

§

SecurityLabelTypeNearMiss

A label-type-shaped spelling that is not the exact narrow candidate.

§

MaskNearMiss

A mask-shaped spelling that is not the exact narrow candidate.

§

UnmaskNearMiss

An unmask-shaped spelling that is not the exact narrow candidate.

§

Other

Another raw provider option whose grammar is deliberately uninterpreted.

Trait Implementations§

Source§

impl Clone for SecurityOptionKind

Source§

fn clone(&self) -> SecurityOptionKind

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SecurityOptionKind

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for SecurityOptionKind

Source§

impl PartialEq for SecurityOptionKind

Source§

fn eq(&self, other: &SecurityOptionKind) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for SecurityOptionKind

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.