#[non_exhaustive]pub struct RunnerConfig {
pub home: PathBuf,
pub processes: Arc<dyn ProcessRunner>,
pub ports: Arc<dyn HostPorts>,
pub host: HostOs,
pub path: Option<OsString>,
/* private fields */
}Expand description
How a runner is built: its home, and the ports it reaches the world through. Start from
RunnerConfig::new and set a field to change it (config.processes = Arc::new(fake)).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.home: PathBufThe runner’s home (runs/ under it). An app passes its data folder; the
isothrum command line uses ~/.isothrum.
processes: Arc<dyn ProcessRunner>Starts the tools.
ports: Arc<dyn HostPorts>The host’s ports.
host: HostOsThe host’s operating system (it picks per-host argv and filters steps).
path: Option<OsString>The PATH the runner hands on where it isn’t inherited: to an elevated Hyper-V session,
and to Vagrant on an ESXi host from macOS, whose relays look for the real ovftool in it
and put their wrapper first (default: the runner’s own). The tools the runner starts as
its children inherit its environment as it is.
Implementations§
Source§impl RunnerConfig
impl RunnerConfig
Sourcepub fn new(home: impl Into<PathBuf>) -> RunnerConfig
pub fn new(home: impl Into<PathBuf>) -> RunnerConfig
A runner at home on this host: real processes (told the Docker CLI’s config, see
SystemProcesses), the loopback, the system’s clock, and what it needs of this process’s
environment, read now (PATH, TF_PLUGIN_CACHE_DIR, the proxies, the CA bundles,
Terraform’s CLI configuration, Vagrant’s variables, USERPROFILE).