Skip to main content

Module colima

Module colima 

Source
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§

ColimaListJson
Port of colima.colimaListJSON, the JSON shape of colima list --json.
Driver
Port of colima.Driver.

Enums§

ColimaError
Port of colima’s ErrInvalidSizeFormat et al.

Constants§

DRIVER_NAME

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.