pub struct ResolvedPolicy {
pub network: String,
pub writable: bool,
pub ports: Vec<String>,
pub no_new_privileges: bool,
pub read_only_rootfs: bool,
pub reuse_container: bool,
pub reusable_session_name: Option<String>,
pub cap_drop: Vec<String>,
pub cap_add: Vec<String>,
pub pull_policy: Option<String>,
pub network_allow: Vec<(String, String)>,
pub network_allow_patterns: Vec<String>,
}Fields§
§network: String§writable: bool§ports: Vec<String>§no_new_privileges: bool§read_only_rootfs: bool§reuse_container: bool§reusable_session_name: Option<String>§cap_drop: Vec<String>§cap_add: Vec<String>§pull_policy: Option<String>§network_allow: Vec<(String, String)>Resolved allow-list: (hostname, ip) pairs injected as --add-host entries.
Empty means no restriction (full network or network off).
network_allow_patterns: Vec<String>Original glob/regex patterns from network_allow that were expanded at resolve time.
Stored for plan display. Enforcement is via the resolved base-domain IPs in network_allow.
Trait Implementations§
Source§impl Clone for ResolvedPolicy
impl Clone for ResolvedPolicy
Source§fn clone(&self) -> ResolvedPolicy
fn clone(&self) -> ResolvedPolicy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ResolvedPolicy
impl RefUnwindSafe for ResolvedPolicy
impl Send for ResolvedPolicy
impl Sync for ResolvedPolicy
impl Unpin for ResolvedPolicy
impl UnsafeUnpin for ResolvedPolicy
impl UnwindSafe for ResolvedPolicy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more