pub struct ServerStartSpec {
pub address: String,
pub auth: ServerAuthMode,
pub ui: bool,
}Expand description
A typed description of how to run kopia server start (the web UI).
§Why this is its own non-returning path (not run_ok)
server start is a long-running process that never exits on success, so the
run_ok/run_json “spawn, read to EOF, wait for exit code” pattern would hang
forever. KopiaClient::server_start instead execs the binary so kopia takes
over this PID and receives SIGTERM directly from the kubelet on pod shutdown.
§TLS and auth
The server always runs with --insecure (no in-pod TLS): TLS is terminated by
the user’s ingress and the Service speaks plain HTTP. --insecure is kopia’s
no-TLS switch — it is required in every mode, and is not the no-auth knob
(that is --without-password, selected by ServerAuthMode::None).
Fields§
§address: StringListen address — must be non-loopback (e.g. 0.0.0.0:51515) to be reachable
through a Service.
auth: ServerAuthModeUI authentication mode.
ui: boolServe the embedded HTML UI (--ui). Defaults to enabled.
Trait Implementations§
Source§impl Clone for ServerStartSpec
impl Clone for ServerStartSpec
Source§fn clone(&self) -> ServerStartSpec
fn clone(&self) -> ServerStartSpec
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ServerStartSpec
impl Debug for ServerStartSpec
Source§impl Default for ServerStartSpec
impl Default for ServerStartSpec
impl Eq for ServerStartSpec
Source§impl PartialEq for ServerStartSpec
impl PartialEq for ServerStartSpec
Source§fn eq(&self, other: &ServerStartSpec) -> bool
fn eq(&self, other: &ServerStartSpec) -> bool
self and other values to be equal, and is used by ==.