path

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package path contains functions to find/calculate path used in the project.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Finch

type Finch string

Finch provides a set of methods that calculate paths relative to the Finch path.

func FindFinch

func FindFinch(deps FinchFinderDeps) (Finch, error)

FindFinch finds the installation path of Finch.

func (Finch) BaseYamlFilePath

func (w Finch) BaseYamlFilePath() string

BaseYamlFilePath returns the base yaml file path.

func (Finch) ConfigFilePath

func (Finch) ConfigFilePath(homeDir string) string

ConfigFilePath returns the path to Finch config file.

func (Finch) LimaConfigDirectoryPath

func (w Finch) LimaConfigDirectoryPath() string

LimaConfigDirectoryPath returns the lima config directory path.

func (Finch) LimaHomePath

func (w Finch) LimaHomePath() string

LimaHomePath returns the path that should be set to LIMA_HOME for Finch.

func (Finch) LimaInstancePath added in v0.3.0

func (w Finch) LimaInstancePath() string

LimaInstancePath returns the path to the Lima instance of the Finch VM.

func (Finch) LimaOverrideConfigPath

func (w Finch) LimaOverrideConfigPath() string

LimaOverrideConfigPath returns the lima override config file path.

func (Finch) LimaSSHPrivateKeyPath

func (w Finch) LimaSSHPrivateKeyPath() string

LimaSSHPrivateKeyPath returns the lima user key path.

func (Finch) LimactlPath

func (w Finch) LimactlPath() string

LimactlPath returns the limactl path.

func (Finch) QEMUBinDir

func (w Finch) QEMUBinDir() string

QEMUBinDir returns the path to the directory that contains all the binaries QEMU depends on. It's used to enable users to always use the pinned versions of the binaries.

func (Finch) UserDataDiskPath added in v0.2.0

func (w Finch) UserDataDiskPath(homeDir string) string

UserDataDiskPath returns the path to the permanent storage location of the Finch user data disk.

type FinchFinderDeps

FinchFinderDeps provides all the dependencies FindFinch needs to find Finch.

Jump to

Keyboard shortcuts

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