dirnames

package
v2.0.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DotLima = ".lima"

DotLima is a directory that appears under the home directory.

Variables

This section is empty.

Functions

func InstanceDir

func InstanceDir(name string) (string, error)

InstanceDir returns the instance dir. InstanceDir does not check whether the instance exists.

func LimaConfigDir

func LimaConfigDir() (string, error)

LimaConfigDir returns the path of the config directory, $LIMA_HOME/_config.

func LimaDir

func LimaDir() (string, error)

LimaDir returns the absolute path of `~/.lima` (or $LIMA_HOME, if set).

NOTE: We do not use `~/Library/Application Support/Lima` on macOS. We use `~/.lima` so that we can have enough space for the length of the socket path, which can be only 104 characters on macOS.

func LimaDisksDir

func LimaDisksDir() (string, error)

LimaDisksDir returns the path of the disks directory, $LIMA_HOME/_disks.

func LimaNetworksDir

func LimaNetworksDir() (string, error)

LimaNetworksDir returns the path of the networks log directory, $LIMA_HOME/_networks.

func LimaTemplatesDir

func LimaTemplatesDir() (string, error)

LimaTemplatesDir returns the path of the templates directory, $LIMA_HOME/_templates.

func ValidateInstName

func ValidateInstName(name string) error

ValidateInstName checks if the name is a valid instance name. For this it needs to be a valid identifier, and not end in .yml or .yaml (case insensitively).

Types

This section is empty.

Jump to

Keyboard shortcuts

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