pub struct KoiConfig {Show 23 fields
pub data_dir: Option<PathBuf>,
pub service_endpoint: String,
pub service_mode: ServiceMode,
pub http_enabled: bool,
pub mdns_enabled: bool,
pub dns_enabled: bool,
pub health_enabled: bool,
pub certmesh_enabled: bool,
pub proxy_enabled: bool,
pub udp_enabled: bool,
pub runtime_enabled: bool,
pub runtime_backend: RuntimeBackendKind,
pub orchestrator_enabled: bool,
pub certmesh_background_enabled: bool,
pub http_port: u16,
pub dashboard_enabled: bool,
pub api_docs_enabled: bool,
pub mdns_browser_enabled: bool,
pub announce_http: bool,
pub dns_config: DnsConfig,
pub dns_auto_start: bool,
pub health_auto_start: bool,
pub proxy_auto_start: bool,
}Fields§
§data_dir: Option<PathBuf>§service_endpoint: String§service_mode: ServiceMode§http_enabled: bool§mdns_enabled: bool§dns_enabled: bool§health_enabled: bool§certmesh_enabled: bool§proxy_enabled: bool§udp_enabled: bool§runtime_enabled: bool§runtime_backend: RuntimeBackendKind§orchestrator_enabled: boolTranslate runtime (container) lifecycle events into mDNS/DNS/health/proxy entries. Opt-in (default false): a leaf embedded host usually only wants the event stream.
certmesh_background_enabled: boolRun the certmesh role-driven background loops (renewal / roster sync / heartbeat / failover). Opt-in (default false): only a clustered embedded CA host needs them.
http_port: u16§dashboard_enabled: bool§api_docs_enabled: bool§mdns_browser_enabled: bool§announce_http: bool§dns_config: DnsConfig§dns_auto_start: bool§health_auto_start: bool§proxy_auto_start: boolImplementations§
Source§impl KoiConfig
impl KoiConfig
Sourcepub fn firewall_ports(&self) -> Vec<FirewallPort>
pub fn firewall_ports(&self) -> Vec<FirewallPort>
Collect firewall ports required by the currently-enabled capabilities.
This mirrors the logic in the standalone Koi daemon’s
firewall_ports_for_config, but derives from the embedded config.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KoiConfig
impl RefUnwindSafe for KoiConfig
impl Send for KoiConfig
impl Sync for KoiConfig
impl Unpin for KoiConfig
impl UnsafeUnpin for KoiConfig
impl UnwindSafe for KoiConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more