pub struct Ec2InstanceNetwork {
pub instance_id: String,
pub vpc_id: Option<String>,
pub subnet_id: Option<String>,
pub private_ip: String,
pub backing_network: Option<String>,
pub isolation_backend: String,
pub security_group_enforcement: String,
pub enforcement_active: bool,
}Expand description
The real backing network of one EC2 instance — a debugging aid for “why can’t X reach Y” (issue #1745). Exposes which daemon network / NetworkPolicy backs the instance, its container IP, and whether security-group enforcement is active or degraded to metadata-only.
Fields§
§instance_id: String§vpc_id: Option<String>§subnet_id: Option<String>§private_ip: StringThe instance’s address on its backing network.
backing_network: Option<String>The Docker/Podman network (fakecloud-subnet-<id>) or k8s NetworkPolicy
(fakecloud-ec2-<id>) backing the instance. None when metadata-only
(no container runtime) or not yet running.
isolation_backend: Stringdocker | podman | kubernetes | none.
security_group_enforcement: StringSecurity-group enforcement mechanism: nftables | networkpolicy |
disabled.
enforcement_active: boolWhether security-group rules are actually enforced (vs tracked-only).
Trait Implementations§
Source§impl Clone for Ec2InstanceNetwork
impl Clone for Ec2InstanceNetwork
Source§fn clone(&self) -> Ec2InstanceNetwork
fn clone(&self) -> Ec2InstanceNetwork
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 Ec2InstanceNetwork
impl Debug for Ec2InstanceNetwork
Source§impl<'de> Deserialize<'de> for Ec2InstanceNetwork
impl<'de> Deserialize<'de> for Ec2InstanceNetwork
Source§fn 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
Auto Trait Implementations§
impl Freeze for Ec2InstanceNetwork
impl RefUnwindSafe for Ec2InstanceNetwork
impl Send for Ec2InstanceNetwork
impl Sync for Ec2InstanceNetwork
impl Unpin for Ec2InstanceNetwork
impl UnsafeUnpin for Ec2InstanceNetwork
impl UnwindSafe for Ec2InstanceNetwork
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