pub struct BootstrapConfig {
pub cidr: String,
pub node_ip: IpAddr,
pub interface: String,
pub port: u16,
pub private_key: String,
pub public_key: String,
pub is_leader: bool,
pub created_at: u64,
pub slice_cidr: Option<IpNet>,
}Expand description
Overlay network bootstrap configuration
Contains all configuration needed to initialize and manage an overlay network on a node.
Fields§
§cidr: StringNetwork CIDR (e.g., “10.200.0.0/16”)
node_ip: IpAddrThis node’s overlay IP address (IPv4 or IPv6)
interface: StringOverlay interface name
port: u16Overlay listen port
private_key: StringThis node’s overlay private key
public_key: StringThis node’s overlay public key
is_leader: boolWhether this node is the cluster leader
created_at: u64Creation timestamp (Unix epoch seconds)
slice_cidr: Option<IpNet>Per-node slice of the cluster CIDR that this node draws container
IPs from. None for pre-slice-aware configs (back-compat). When set,
this replaces node_ip/32 in allowed_ip().
Implementations§
Source§impl BootstrapConfig
impl BootstrapConfig
Sourcepub fn allowed_ip(&self) -> String
pub fn allowed_ip(&self) -> String
Get the overlay IP with host prefix for allowed IPs
When slice_cidr is set, returns the slice CIDR string unchanged so
the overlay accepts the full per-node slice of container IPs. Otherwise
falls back to the legacy /32 (IPv4) or /128 (IPv6) single-host
representation of node_ip for back-compat with pre-slice configs.
Trait Implementations§
Source§impl Clone for BootstrapConfig
impl Clone for BootstrapConfig
Source§fn clone(&self) -> BootstrapConfig
fn clone(&self) -> BootstrapConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more