pub struct DeploymentSpec {
pub version: String,
pub deployment: String,
pub services: HashMap<String, ServiceSpec>,
pub externals: HashMap<String, ExternalSpec>,
pub tunnels: HashMap<String, TunnelDefinition>,
pub api: ApiSpec,
pub environment: Option<String>,
pub project: Option<String>,
}Expand description
Top-level deployment specification
Fields§
§version: StringSpec version (must be “v1”)
deployment: StringDeployment name (used for overlays, DNS)
services: HashMap<String, ServiceSpec>Service definitions
externals: HashMap<String, ExternalSpec>External service definitions (proxy backends without containers)
External services register static backend addresses with the proxy
for host/path-based routing without starting any containers.
Useful for proxying to services running outside of ZLayer
(e.g., on other machines reachable via VPN).
tunnels: HashMap<String, TunnelDefinition>Top-level tunnel definitions (not tied to service endpoints)
api: ApiSpecAPI server configuration (enabled by default)
environment: Option<String>Environment name whose secrets $S: references resolve against.
Resolved to a concrete scope and stamped onto each service at deploy time.
project: Option<String>Project name that scopes environment (matches how secrets were imported,
e.g. --env dev --project zatabase). None => global environment.
Trait Implementations§
Source§impl Clone for DeploymentSpec
impl Clone for DeploymentSpec
Source§fn clone(&self) -> DeploymentSpec
fn clone(&self) -> DeploymentSpec
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 DeploymentSpec
impl Debug for DeploymentSpec
Source§impl<'de> Deserialize<'de> for DeploymentSpec
impl<'de> Deserialize<'de> for DeploymentSpec
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DeploymentSpec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DeploymentSpec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for DeploymentSpec
impl PartialEq for DeploymentSpec
Source§fn eq(&self, other: &DeploymentSpec) -> bool
fn eq(&self, other: &DeploymentSpec) -> bool
self and other values to be equal, and is used by ==.