Documentation ¶
Overview ¶
Package path contains functions to find/calculate path used in the project.
Index ¶
- type Finch
- func (w Finch) BaseYamlFilePath() string
- func (Finch) ConfigFilePath(rootDir string) string
- func (Finch) FinchDir(rootDir string) string
- func (Finch) FinchRootDir(ffd FinchFinderDeps) (string, error)
- func (w Finch) LimaConfigDirectoryPath() string
- func (w Finch) LimaDefaultConfigPath() string
- func (w Finch) LimaHomePath() string
- func (w Finch) LimaInstancePath() string
- func (w Finch) LimaOverrideConfigPath() string
- func (w Finch) LimaSSHPrivateKeyPath() string
- func (w Finch) LimactlPath() string
- func (w Finch) QEMUBinDir() string
- func (w Finch) UserDataDiskPath(rootDir string) string
- type FinchFinderDeps
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 ¶
BaseYamlFilePath returns the base yaml file path.
func (Finch) ConfigFilePath ¶
ConfigFilePath returns the path to Finch config file.
func (Finch) FinchRootDir ¶ added in v1.1.0
func (Finch) FinchRootDir(ffd FinchFinderDeps) (string, error)
FinchRootDir returns the path to the Finch root directory, which is $HOME on UNIX.
func (Finch) LimaConfigDirectoryPath ¶
LimaConfigDirectoryPath returns the lima config directory path.
func (Finch) LimaDefaultConfigPath ¶ added in v1.1.2
LimaDefaultConfigPath returns the lima override config file path.
func (Finch) LimaHomePath ¶
LimaHomePath returns the path that should be set to LIMA_HOME for Finch.
func (Finch) LimaInstancePath ¶ added in v0.3.0
LimaInstancePath returns the path to the Lima instance of the Finch VM.
func (Finch) LimaOverrideConfigPath ¶
LimaOverrideConfigPath returns the lima override config file path.
func (Finch) LimaSSHPrivateKeyPath ¶
LimaSSHPrivateKeyPath returns the lima user key path.
func (Finch) LimactlPath ¶
LimactlPath returns the limactl path.
func (Finch) QEMUBinDir ¶
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
UserDataDiskPath returns the path to the permanent storage location of the Finch user data disk.
type FinchFinderDeps ¶
type FinchFinderDeps interface { system.SymlinksEvaluator system.ExecutableFinder system.FilePathJoiner system.EnvGetter system.UserHomeDir }
FinchFinderDeps provides all the dependencies FindFinch needs to find Finch.