lima

package
v0.42.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package lima handles generating Lima configuration files and managing VM lifecycle (create, start, stop, delete, status) on remote hosts.

Index

Constants

This section is empty.

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) Destroy

func (m *Manager) Destroy(ctx context.Context) error

Destroy stops and deletes the Lima VM.

func (*Manager) GenerateConfig

func (m *Manager) GenerateConfig(socketPath string) string

GenerateConfig returns the Lima YAML config for this node.

func (*Manager) GetBridgedIP

func (m *Manager) GetBridgedIP(ctx context.Context) (string, error)

GetBridgedIP returns the bridged LAN IP address of the VM.

func (*Manager) Provision

func (m *Manager) Provision(ctx context.Context) error

Provision creates and starts the Lima VM on the remote host.

func (*Manager) Status

func (m *Manager) Status(ctx context.Context) (VMStatus, error)

Status returns the current VM status on the remote host.

type VMStatus

type VMStatus string

VMStatus represents the state of a Lima VM.

const (
	VMStatusRunning    VMStatus = "Running"
	VMStatusStopped    VMStatus = "Stopped"
	VMStatusNotCreated VMStatus = "NotCreated"
	VMStatusUnknown    VMStatus = "Unknown"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL