pub struct Machine {Show 25 fields
pub os: Option<OsRef>,
pub kind: Kind,
pub networks: IndexMap<String, Octets>,
pub aliases: Vec<String>,
pub access: bool,
pub ports: IndexMap<PortName, Port>,
pub command: Option<Command>,
pub setup: Vec<String>,
pub healthcheck: Option<Healthcheck>,
pub depends_on: Vec<String>,
pub environment: IndexMap<String, EnvValue>,
pub files: Vec<File>,
pub volumes: IndexMap<String, Mount>,
pub disks: IndexMap<String, Disk>,
pub tmpfs: Vec<Tmpfs>,
pub resources: Option<Resources>,
pub hardware: Hardware,
pub dns: Option<Dns>,
pub privileged: bool,
pub seal: Seal,
pub read_only: bool,
pub shm_size: Option<String>,
pub sysctls: IndexMap<String, String>,
pub ulimits: IndexMap<String, Ulimit>,
pub rate_limit: Option<String>,
}Expand description
A machine of the environment.
Fields§
§os: Option<OsRef>Its OS (None: a container-only app, or an access machine the runner supplies).
kind: KindWhat it is.
networks: IndexMap<String, Octets>Network name → its address on it.
aliases: Vec<String>More DNS names it answers to.
access: boolThe machine the user lands on.
ports: IndexMap<PortName, Port>Its ports, by name.
command: Option<Command>Its own command.
setup: Vec<String>Project scripts run once it is up.
healthcheck: Option<Healthcheck>When it counts as healthy beyond its ports.
depends_on: Vec<String>Machines that must be ready first.
environment: IndexMap<String, EnvValue>Its environment variables.
files: Vec<File>Files placed on it.
volumes: IndexMap<String, Mount>Its volumes: name → where it mounts it.
disks: IndexMap<String, Disk>Its data disks.
tmpfs: Vec<Tmpfs>Its memory-backed mounts.
resources: Option<Resources>Its CPUs, memory and disk.
hardware: HardwareThe hardware it asks for.
dns: Option<Dns>How it resolves names.
privileged: boolKernel-level access.
seal: SealHow strongly its internet: false seal holds.
read_only: boolA read-only root filesystem.
shm_size: Option<String>The size of /dev/shm.
sysctls: IndexMap<String, String>Kernel parameters.
ulimits: IndexMap<String, Ulimit>Process limits.
rate_limit: Option<String>A bandwidth cap on each of its links.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Machine
impl<'de> Deserialize<'de> for Machine
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for Machine
impl JsonSchema for Machine
Source§fn json_schema(g: &mut SchemaGenerator) -> Schema
fn json_schema(g: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for Machine
Auto Trait Implementations§
impl Freeze for Machine
impl RefUnwindSafe for Machine
impl Send for Machine
impl Sync for Machine
impl Unpin for Machine
impl UnsafeUnpin for Machine
impl UnwindSafe for Machine
Blanket Implementations§
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
Mutably borrows from an owned value. Read more