pub struct ServiceConfig {Show 22 fields
pub name: String,
pub runtime: RuntimeKind,
pub image: Option<String>,
pub module: Option<String>,
pub replicas: Replicas,
pub port: Option<u16>,
pub host_port: Option<u16>,
pub domain: Option<String>,
pub routes: Vec<String>,
pub health: Option<String>,
pub readiness: Option<ProbeConfig>,
pub liveness: Option<ProbeConfig>,
pub env: HashMap<String, String>,
pub resources: Option<ResourceLimits>,
pub volume: Option<VolumeSpec>,
pub deploy: Option<DeployStrategy>,
pub placement: Option<PlacementConstraint>,
pub network: Option<String>,
pub aliases: Vec<String>,
pub mounts: Vec<String>,
pub triggers: Vec<String>,
pub assets: Option<String>,
}Fields§
§name: String§runtime: RuntimeKind§image: Option<String>Container image (for container runtime).
module: Option<String>Wasm module path or OCI reference (for wasm runtime).
replicas: Replicas§port: Option<u16>Container port (internal).
host_port: Option<u16>Host port to bind (e.g., 443 for edge proxies). If omitted, ephemeral.
domain: Option<String>Domain for reverse proxy routing (orca proxy handles TLS).
routes: Vec<String>Path routes under the domain (e.g., [“/api/”, “/admin/”]). Default: [“/*”] (catch-all).
health: Option<String>Health check path (e.g., “/healthz”). Legacy shorthand for liveness probe.
readiness: Option<ProbeConfig>Readiness probe: container must pass before receiving traffic.
liveness: Option<ProbeConfig>Liveness probe: container is restarted if this fails.
env: HashMap<String, String>§resources: Option<ResourceLimits>§volume: Option<VolumeSpec>§deploy: Option<DeployStrategy>§placement: Option<PlacementConstraint>§network: Option<String>Docker network name. Services with the same network can reach each other. Auto-prefixed with “orca-”. If omitted, derived from service name prefix.
aliases: Vec<String>Network aliases (resolvable names within the Docker network).
mounts: Vec<String>Host bind mounts (e.g., [“/host/path:/container/path:ro”]).
triggers: Vec<String>Wasm triggers: “http:/path”, “cron:expr”, “queue:topic”, “event:pattern”
assets: Option<String>Static assets directory (for builtin:static-server Wasm module).
Trait Implementations§
Source§impl Clone for ServiceConfig
impl Clone for ServiceConfig
Source§fn clone(&self) -> ServiceConfig
fn clone(&self) -> ServiceConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more