path

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: Apache-2.0 Imports: 5 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(rootDir string) string

ConfigFilePath returns the path to Finch config file.

func (Finch) FinchDir added in v1.1.0

func (Finch) FinchDir(rootDir string) string

FinchDir returns the path to the Finch config directory.

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

func (w Finch) LimaConfigDirectoryPath() string

LimaConfigDirectoryPath returns the lima config directory path.

func (Finch) LimaDefaultConfigPath added in v1.1.2

func (w Finch) LimaDefaultConfigPath() string

LimaDefaultConfigPath returns the lima override config file 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(rootDir 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