Documentation ¶
Index ¶
Constants ¶
View Source
const AppName = "colima"
View Source
const SubprocessProfileEnvVar = "COLIMA_PROFILE"
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.
func TemplatesDir ¶ added in v0.4.0
func TemplatesDir() string
TemplatesDir returns the templates' directory.
func WrapperDir ¶ added in v0.4.0
func WrapperDir() string
WrapperDir returns the qemu wrapper directory.
Types ¶
type Config ¶
type Config struct { CPU int `yaml:"cpu,omitempty"` Disk int `yaml:"disk,omitempty"` Memory int `yaml:"memory,omitempty"` Arch string `yaml:"arch,omitempty"` CPUType string `yaml:"cpuType,omitempty"` ForwardAgent bool `yaml:"forwardAgent,omitempty"` Network Network `yaml:"network,omitempty"` Env map[string]string `yaml:"env,omitempty"` // environment variables // volume mounts Mounts []Mount `yaml:"mounts,omitempty"` MountType string `yaml:"mountType,omitempty"` // Runtime is one of docker, containerd. Runtime string `yaml:"runtime,omitempty"` // Kubernetes configuration Kubernetes Kubernetes `yaml:"kubernetes,omitempty"` // Docker configuration Docker map[string]any `yaml:"docker,omitempty"` // layer Layer bool `yaml:"layer,omitempty"` }
Config is the application config.
func (Config) MountsOrDefault ¶ added in v0.4.3
type Kubernetes ¶
type Kubernetes struct { Enabled bool `yaml:"enabled"` Version string `yaml:"version"` Ingress bool `yaml:"ingress"` }
Kubernetes is kubernetes configuration
type ProfileInfo ¶ added in v0.3.0
ProfileInfo is information about the colima profile.
func CurrentProfile ¶ added in v0.4.2
func CurrentProfile() ProfileInfo
CurrentProfile returns the current application profile.
type VersionInfo ¶
VersionInfo is the application version info.
func AppVersion ¶
func AppVersion() VersionInfo
Click to show internal directories.
Click to hide internal directories.