Expand description
Port of internal/cluster/colima/driver.go: a super::Driver
implementation using Colima as the backend.
This is the highest-churn driver file in the Go codebase (45 commits per
VCS hotspot analysis), so its tests are ported with extra care for edge
cases in tests/colima_driver.rs.
Executor injection. Following the pattern established by
external::Driver (see its module doc comment), this driver takes its
Arc<dyn CommandRunner + Send + Sync> at construction rather than
through an ambient context. Driver::new wires in the real
xianyun_executor::exec::Client so existing callers (driver::auto)
need no change; Driver::with_runner is the test-facing constructor
that takes an explicit runner (typically
xianyun_testutil::MockCommandRunner).
Structs§
- Colima
List Json - Port of
colima.colimaListJSON, the JSON shape ofcolima list --json. - Driver
- Port of
colima.Driver.
Enums§
- Colima
Error - Port of colima’s
ErrInvalidSizeFormatet al.
Constants§
Functions§
- build_
start_ args - Port of
(*colima.Driver).buildStartArgs. - check_
k3s_ ready - Port of
(*colima.Driver).checkK3sReady. - colima_
config_ dir - Port of
(*colima.Driver).colimaConfigDir. - colima_
env - Port of
colima.colimaEnv: sets HOME to the sudo user’s home when running under sudo, so colima finds its profiles under sudo. - colima_
home_ dir - Port of
colima.colimaHomeDir. - ensure_
colima_ containerd_ config - Port of
(*colima.Driver).ensureColimaContainerdConfig. - ensure_
containerd_ mirror - Port of
(*colima.Driver).ensureContainerdMirror. - is_
colima_ available - k3s_
server_ args - Port of
colima.k3sServerArgs. - parse_
disk_ gib - Port of
colima.parseDiskGiB. - parse_
size_ gib - Port of
colima.parseSizeGiB. - read_
colima_ stdout - Port of
(*colima.Driver).readColimaStdout. - registry_
mirror_ config_ active - Port of
(*colima.Driver).registryMirrorConfigActive. - render_
hosts_ toml - Port of
colima.renderHostsTOML. - symlink_
certs_ dir - Port of
(*colima.Driver).symlinkCertsDir. - upstream_
server_ url - Port of
colima.upstreamServerURL.