pub struct KoiConfig {Show 25 fields
pub data_dir: Option<PathBuf>,
pub service_endpoint: String,
pub service_token: Option<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 http_token: Option<String>,
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_token: Option<String>Daemon Access Token for a remote (client) handle’s authenticated calls.
None → the remote client adopts the local breadcrumb’s token when its
endpoint matches service_endpoint; set this explicitly when targeting a
remote daemon whose token is not in the local breadcrumb. Without a token,
DAT-gated reads (e.g. posture) and all mutations fail from a remote handle.
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 loop (trust-bundle pull — policy refresh + revocation detection — plus cert renewal). Opt-in (default false): only a clustered embedded CA host needs it.
http_port: u16§dashboard_enabled: bool§api_docs_enabled: bool§mdns_browser_enabled: bool§announce_http: bool§http_token: Option<String>Optional Daemon Access Token for the embedded HTTP adapter. Some requires the
x-koi-token header on every mutation (parity with the daemon); None leaves
mutations unauthenticated — safe only behind the loopback bind that is the default.
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
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>
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>
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