pub struct GuestCompose {
pub machines: Vec<Machine>,
pub networks: Vec<Network>,
pub slots: Vec<SecretSlot>,
pub params: Vec<Param>,
pub start: Vec<GuestCommand>,
pub ready: Vec<Condition>,
pub check_setup: Vec<GuestCommand>,
pub runners: Vec<GuestRunner>,
pub status: GuestCommand,
}Expand description
The lab’s containers in a VM, and the commands that run them there.
Fields§
§machines: Vec<Machine>The containers and Compose’s own services, as the docker target’s manifest has them,
each published port fixed at its publish number (the VM’s backend says where it
answers).
networks: Vec<Network>The lab’s networks, named as Compose makes them in the VM.
slots: Vec<SecretSlot>What the containers read at start (inputs, secrets), each delivered as an environment
variable to the start steps creating the containers that read it: the
VM’s way in forwards it (GuestCompose::forwarded).
params: Vec<Param>Non-secret values the commands read (whether derived checks run).
start: Vec<GuestCommand>Everything up and healthy, then each leaf job attached.
ready: Vec<Condition>When the containers count as ready: each start step succeeded.
check_setup: Vec<GuestCommand>Before the check runners (the access machine’s stand-in).
runners: Vec<GuestRunner>The check runners.
status: GuestCommandReads the containers: docker compose ps --all --format json, nothing before Docker is in.
Implementations§
Source§impl GuestCompose
impl GuestCompose
Sourcepub fn forwarded(&self) -> Vec<String>
pub fn forwarded(&self) -> Vec<String>
The variables the start steps read from their environment, which the VM’s way in must
forward into it (SSH’s SendEnv, accepted by the VM’s AcceptEnv): sorted, each once.
Sourcepub fn machines_at(&self, address: &Template) -> Vec<Machine>
pub fn machines_at(&self, address: &Template) -> Vec<Machine>
The machines, each published port answering at address (this computer’s loopback, the
VM’s address).
Trait Implementations§
Source§impl Clone for GuestCompose
impl Clone for GuestCompose
Source§impl Debug for GuestCompose
impl Debug for GuestCompose
impl Eq for GuestCompose
Source§impl PartialEq for GuestCompose
impl PartialEq for GuestCompose
impl StructuralPartialEq for GuestCompose
Auto Trait Implementations§
impl Freeze for GuestCompose
impl RefUnwindSafe for GuestCompose
impl Send for GuestCompose
impl Sync for GuestCompose
impl Unpin for GuestCompose
impl UnsafeUnpin for GuestCompose
impl UnwindSafe for GuestCompose
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.