pub struct Shared {Show 15 fields
pub arch: Option<Arch>,
pub privileged: Option<bool>,
pub read_only: Option<bool>,
pub tmpfs: Option<Vec<Tmpfs>>,
pub shm_size: Option<String>,
pub dns: Option<Dns>,
pub environment: Option<IndexMap<String, Value>>,
pub sysctls: Option<IndexMap<String, Value>>,
pub ulimits: Option<IndexMap<String, Ulimit>>,
pub inputs: Option<Vec<String>>,
pub resources: Option<Resources>,
pub depends_on: Option<Vec<String>>,
pub volumes: Option<IndexMap<String, Mount>>,
pub docker: Option<SharedDocker>,
pub vm: Option<SharedVm>,
}Expand description
Fields several machines share, through common: or a group: everything about how a machine
is built, nothing about what it is (its networks, ports and access stay its own).
Fields§
§arch: Option<Arch>The machine’s CPU architecture, as arch on a machine.
privileged: Option<bool>Kernel-level access, as privileged on a machine.
read_only: Option<bool>A read-only root filesystem, as read_only on a machine.
tmpfs: Option<Vec<Tmpfs>>Memory-backed mount paths, as tmpfs on a machine.
shm_size: Option<String>The size of /dev/shm, as shm_size on a machine.
dns: Option<Dns>Name resolution, as dns on a machine.
environment: Option<IndexMap<String, Value>>Environment variables, as environment on a machine (merged key by key).
sysctls: Option<IndexMap<String, Value>>Kernel parameters, as sysctls on a machine (merged key by key).
ulimits: Option<IndexMap<String, Ulimit>>Process limits, as ulimits on a machine (merged key by key).
inputs: Option<Vec<String>>The spec inputs the machines receive, as inputs on a machine.
resources: Option<Resources>CPUs, memory and disk, as resources on a machine.
depends_on: Option<Vec<String>>Machines that must be ready first, as depends_on on a machine.
volumes: Option<IndexMap<String, Mount>>Data that survives restarts, as volumes on a machine (merged key by key).
docker: Option<SharedDocker>Completes the docker: of machines that have one (image, build, init, idle).
vm: Option<SharedVm>Completes the vm: of machines that have one (os, provision, image).
Trait Implementations§
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more