Documentation
¶
Overview ¶
Package config handles parsing and applying options from finch's config file. These options can be applied to any aspect of the project, from the VMM to components running inside the VM.
Currently, VMM options are applied to one of Lima's configuration files and options within the VM are applied via running SSH commands and writing files via SFTP.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdditionalDirectory ¶ added in v0.2.0
type AdditionalDirectory struct {
Path *string `yaml:"path"`
}
AdditionalDirectory represents the additional directory used in Finch config.
type Finch ¶
type Finch struct { CPUs *int `yaml:"cpus"` Memory *string `yaml:"memory"` // AdditionalDirectories are the work directories that are not supported by default. In macOS, only home directory is supported by default. // For example, if you want to mount a directory into a container, and that directory is not under your home directory, // then you'll need to specify this field to add that directory or any ascendant of it as a work directory. AdditionalDirectories []AdditionalDirectory `yaml:"additional_directories,omitempty"` }
Finch represents the configuration file for Finch CLI.
type LimaConfigApplier ¶
type LimaConfigApplier interface {
Apply() error
}
LimaConfigApplier applies lima configuration changes.
func NewLimaApplier ¶
func NewLimaApplier(cfg *Finch, fs afero.Fs, limaConfigPath string) LimaConfigApplier
NewLimaApplier creates a new LimaConfigApplier that applies lima configuration changes by writing to the lima config file on the disk.
type LoadSystemDeps ¶
type LoadSystemDeps interface { system.RuntimeCPUGetter }
LoadSystemDeps contains the system dependencies for Load.
type Nerdctl ¶
type Nerdctl struct { Debug bool `toml:"debug,omitempty"` DebugFull bool `toml:"debug_full1,omitempty"` Address string `toml:"address,omitempty"` Namespace string `toml:"namespace,omitempty"` Snapshotter string `toml:"snapshotter,omitempty"` CNIPath string `toml:"cni_path,omitempty"` CNINetConfPath string `toml:"cni_netconfpath,omitempty"` DataRoot string `toml:"data_root,omitempty"` CgroupManager string `toml:"cgroup_manager,omitempty"` InsecureRegistry bool `toml:"insecure_registry,omitempty"` HostsDir []string `toml:"hosts_dir,omitempty"` }
Nerdctl is a copy from github.com/containerd/nerdctl/cmd/nerdctl/main.go TODO: make PR to nerdctl repo to move this config out of the main package so it can be imported on macOS.
type NerdctlConfigApplier ¶
NerdctlConfigApplier applies nerdctl configuration changes.
func NewNerdctlApplier ¶
NewNerdctlApplier creates a new NerdctlConfigApplier that applies nerdctl configuration changes by SSHing to the lima VM to update the nerdctl configuration file in it.