pub struct NetworkIsolation {
pub scope: Option<String>,
pub fenced: bool,
pub allow_host: bool,
pub egress: EgressPolicy,
}Expand description
Resolved network-isolation policy for a workload, derived from its
OverlayMode + NetworkMode + optional explicit isolation-network label.
Each runtime translates this into its own enforcement (Seatbelt .sb ACL,
Linux iptables ISO chain, HCN network, …).
Fields§
§scope: Option<String>Isolation network name. None = flat cluster mesh (reach any overlay peer).
Some(_) = fenced to this named network’s members only.
fenced: boolWhen true, the workload must NOT be granted broad cluster-overlay reach (isolated/dedicated). When false, it may reach the whole overlay (normal).
allow_host: boolWhether the workload may reach the daemon/node overlay IP.
egress: EgressPolicyOutbound policy.
Trait Implementations§
Source§impl Clone for NetworkIsolation
impl Clone for NetworkIsolation
Source§fn clone(&self) -> NetworkIsolation
fn clone(&self) -> NetworkIsolation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NetworkIsolation
impl Debug for NetworkIsolation
impl Eq for NetworkIsolation
Source§impl PartialEq for NetworkIsolation
impl PartialEq for NetworkIsolation
Source§fn eq(&self, other: &NetworkIsolation) -> bool
fn eq(&self, other: &NetworkIsolation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NetworkIsolation
Auto Trait Implementations§
impl Freeze for NetworkIsolation
impl RefUnwindSafe for NetworkIsolation
impl Send for NetworkIsolation
impl Sync for NetworkIsolation
impl Unpin for NetworkIsolation
impl UnsafeUnpin for NetworkIsolation
impl UnwindSafe for NetworkIsolation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.