Documentation
¶
Overview ¶
Package colima wraps the `colima` CLI, which has no API. It exposes the VM status (resources, runtime, docker socket) and lifecycle controls.
Index ¶
Constants ¶
View Source
const Profile = "default"
Profile is the colima profile this GUI manages. v1 targets the default.
Variables ¶
This section is empty.
Functions ¶
func DockerSocketPath ¶
DockerSocketPath returns the filesystem path of the docker socket (without the unix:// scheme), or an error if the VM is not running.
Types ¶
type Status ¶
type Status struct {
Engine string `json:"engine"` // "colima" | "docker"
Running bool `json:"running"`
Profile string `json:"profile"`
Runtime string `json:"runtime"`
Arch string `json:"arch"`
CPU int `json:"cpu"`
Memory int64 `json:"memory"`
Disk int64 `json:"disk"`
Kubernetes bool `json:"kubernetes"`
DockerSocket string `json:"dockerSocket"`
MountType string `json:"mountType"`
Driver string `json:"driver"`
Version string `json:"version,omitempty"`
}
Status is the merged view from `colima list --json` (always available) and `colima status --json` (only when the VM is running, adds the socket).
Click to show internal directories.
Click to hide internal directories.