Documentation ¶
Index ¶
Constants ¶
View Source
const AppName = "colima"
Variables ¶
This section is empty.
Functions ¶
func SetProfile ¶
func SetProfile(profileName string)
SetProfile sets the profile name for the application. This is an avenue to test Colima without breaking an existing stable setup. Not perfect, but good enough for testing.
Types ¶
type Config ¶
type Config struct { // Virtual Machine VM VM `yaml:"vm"` // Runtime is one of docker, containerd. Runtime string `yaml:"runtime"` // Kubernetes sets if kubernetes should be enabled. Kubernetes Kubernetes `yaml:"kubernetes"` // Network address to forward VM ports to. PortInterface net.IP `yaml:"port_interface"` }
Config is the application config.
type Kubernetes ¶
Kubernetes is kubernetes configuration
type ProfileInfo ¶ added in v0.3.0
ProfileInfo is information about the colima profile.
type VM ¶
type VM struct { CPU int `yaml:"cpu"` Disk int `yaml:"disk"` Memory int `yaml:"memory"` Arch string `yaml:"arch"` // auto generated SSHPort int `yaml:"-"` ForwardAgent bool `yaml:"forward_agent"` // volume mounts Mounts []string `yaml:"mounts"` // do not persist. i.e. discarded on VM shutdown DNS []net.IP `yaml:"-"` // DNS nameservers Env map[string]string `yaml:"-"` // environment variables }
VM is virtual machine configuration.
type VersionInfo ¶
VersionInfo is the application version info.
func AppVersion ¶
func AppVersion() VersionInfo
Click to show internal directories.
Click to hide internal directories.