lima

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package lima provides common methods related to Lima.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VMStatus

type VMStatus int64

VMStatus for Lima. Relevant status defined in Lima upstream: https://github.com/lima-vm/lima/blob/fc783ec455a91d70639f9a1d7f22e9890fe6b1cd/pkg/store/instance.go#L23.

const (
	Running VMStatus = iota
	Stopped
	Nonexistent
	Unknown
)

Finch CLI assumes there are only 4 VM status below. Adding more statuses will need to make changes in the caller side.

func GetVMStatus

func GetVMStatus(creator command.LimaCmdCreator, logger flog.Logger, instanceName string) (VMStatus, error)

GetVMStatus returns the Lima VM status.

Jump to

Keyboard shortcuts

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