pub struct LocalContainerSpec {
pub runtime: RuntimePref,
pub discovery: BTreeMap<String, PathBuf>,
pub custom_docker_host: Option<String>,
}Expand description
Probe spec lifted from a kind = "local-container" provider TOML.
Fields§
§runtime: RuntimePref§discovery: BTreeMap<String, PathBuf>Socket paths keyed by runtime name. Recognised keys: orbstack,
docker-desktop, colima, podman, docker. Values are raw paths
(no unix:// scheme); tilde expansion happens at probe time.
custom_docker_host: Option<String>Raw DOCKER_HOST value for runtime = "custom" (e.g.
"tcp://localhost:2375" or "unix:///path/to/custom.sock").
When runtime = "auto" this is tried as a last-resort fallback after
all socket candidates fail. Ignored for other pinned runtimes.
Implementations§
Source§impl LocalContainerSpec
impl LocalContainerSpec
Sourcepub fn build_cascade(&self) -> Vec<(DetectedRuntime, Box<dyn RuntimeProvider>)>
pub fn build_cascade(&self) -> Vec<(DetectedRuntime, Box<dyn RuntimeProvider>)>
Build the ordered RuntimeProvider cascade for this spec.
Returns every candidate that has a discovery entry (or a configured
custom host), in probe order. Unlike LocalRuntime::detect, this does
not stop at the first available provider — callers can iterate the list
themselves to render a “Detected / Not found” settings panel.
Trait Implementations§
Source§impl Clone for LocalContainerSpec
impl Clone for LocalContainerSpec
Source§fn clone(&self) -> LocalContainerSpec
fn clone(&self) -> LocalContainerSpec
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more