#[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
AppArmor
An exact lowercase apparmor=<profile> candidate with no whitespace alteration.
Seccomp
An exact lowercase seccomp=<profile> candidate with no whitespace alteration.
NoNewPrivileges
An exact lowercase whitespace-free no-new-privileges:<bool> candidate.
SecurityLabelDisable
An exact lowercase whitespace-free label:disable candidate.
SecurityLabelFileType
An exact lowercase whitespace-free label:filetype:<type> candidate.
SecurityLabelLevel
An exact lowercase whitespace-free label:level:<level> candidate.
SecurityLabelNested
An exact lowercase whitespace-free label:nested candidate.
SecurityLabelType
An exact lowercase whitespace-free label:type:<type> candidate.
Mask
An exact lowercase whitespace-free mask=<paths> candidate.
Unmask
An exact lowercase whitespace-free unmask=<paths> candidate.
Fields
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
impl Clone for SecurityOptionKind
Source§fn clone(&self) -> SecurityOptionKind
fn clone(&self) -> SecurityOptionKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more