Documentation
¶
Overview ¶
Package lima handles generating Lima configuration files and managing VM lifecycle (create, start, stop, delete, status) on remote hosts.
Index ¶
- Constants
- type Manager
- func (m *Manager) Destroy(ctx context.Context) error
- func (m *Manager) GenerateConfig(socketPath string, dockerEnabled bool) string
- func (m *Manager) GetBridgedIP(ctx context.Context) (string, error)
- func (m *Manager) Provision(ctx context.Context, dockerEnabled bool) error
- func (m *Manager) Status(ctx context.Context) (VMStatus, error)
- type VMStatus
Constants ¶
const NodePackages = "curl open-iscsi nfs-common socat"
NodePackages are the apt packages installed on every Lima node during provisioning. socat is required for `kubectl port-forward` (and devx bridge) to carry traffic on Docker-runtime k3s nodes — without it the forward binds locally but connections fail with "socat not found". Keeping this list in one place lets both initial provisioning (GenerateConfig) and `devx cluster reconcile` install the exact same set on existing nodes.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager handles Lima VM operations on a remote host.
func NewManager ¶
func NewManager(runner *remote.Runner, node config.NodeConfig) *Manager
NewManager creates a new Lima manager for the given host and node config.
func (*Manager) GenerateConfig ¶
GenerateConfig returns the Lima YAML config for this node.
func (*Manager) GetBridgedIP ¶
GetBridgedIP returns the bridged LAN IP address of the VM.