@@ -7,31 +7,31 @@ import (
7
7
)
8
8
9
9
type LimaYAML struct {
10
- VMType * VMType `yaml:"vmType,omitempty" json:"vmType,omitempty"`
11
- OS * OS `yaml:"os,omitempty" json:"os,omitempty"`
12
- Arch * Arch `yaml:"arch,omitempty" json:"arch,omitempty"`
13
- Images []Image `yaml:"images" json:"images"` // REQUIRED
14
- CPUType map [ Arch ] string `yaml:"cpuType,omitempty" json:"cpuType,omitempty"`
15
- CPUs * int `yaml:"cpus,omitempty" json:"cpus,omitempty"`
16
- Memory * string `yaml:"memory,omitempty" json:"memory,omitempty"` // go-units.RAMInBytes
17
- Disk * string `yaml:"disk,omitempty" json:"disk,omitempty"` // go-units.RAMInBytes
18
- AdditionalDisks []Disk `yaml:"additionalDisks,omitempty" json:"additionalDisks,omitempty"`
19
- Mounts []Mount `yaml:"mounts,omitempty" json:"mounts,omitempty"`
20
- MountType * MountType `yaml:"mountType,omitempty" json:"mountType,omitempty"`
21
- MountInotify * bool `yaml:"mountInotify,omitempty" json:"mountInotify,omitempty"`
22
- SSH SSH `yaml:"ssh,omitempty" json:"ssh,omitempty"` // REQUIRED (FIXME)
23
- Firmware Firmware `yaml:"firmware,omitempty" json:"firmware,omitempty"`
24
- Audio Audio `yaml:"audio,omitempty" json:"audio,omitempty"`
25
- Video Video `yaml:"video,omitempty" json:"video,omitempty"`
26
- Provision []Provision `yaml:"provision,omitempty" json:"provision,omitempty"`
27
- UpgradePackages * bool `yaml:"upgradePackages,omitempty" json:"upgradePackages,omitempty"`
28
- Containerd Containerd `yaml:"containerd,omitempty" json:"containerd,omitempty"`
29
- GuestInstallPrefix * string `yaml:"guestInstallPrefix,omitempty" json:"guestInstallPrefix,omitempty"`
30
- Probes []Probe `yaml:"probes,omitempty" json:"probes,omitempty"`
31
- PortForwards []PortForward `yaml:"portForwards,omitempty" json:"portForwards,omitempty"`
32
- CopyToHost []CopyToHost `yaml:"copyToHost,omitempty" json:"copyToHost,omitempty"`
33
- Message string `yaml:"message,omitempty" json:"message,omitempty"`
34
- Networks []Network `yaml:"networks,omitempty" json:"networks,omitempty"`
10
+ VMType * VMType `yaml:"vmType,omitempty" json:"vmType,omitempty"`
11
+ OS * OS `yaml:"os,omitempty" json:"os,omitempty"`
12
+ Arch * Arch `yaml:"arch,omitempty" json:"arch,omitempty"`
13
+ Images []Image `yaml:"images" json:"images"` // REQUIRED
14
+ CPUType CPUType `yaml:"cpuType,omitempty" json:"cpuType,omitempty"`
15
+ CPUs * int `yaml:"cpus,omitempty" json:"cpus,omitempty"`
16
+ Memory * string `yaml:"memory,omitempty" json:"memory,omitempty"` // go-units.RAMInBytes
17
+ Disk * string `yaml:"disk,omitempty" json:"disk,omitempty"` // go-units.RAMInBytes
18
+ AdditionalDisks []Disk `yaml:"additionalDisks,omitempty" json:"additionalDisks,omitempty"`
19
+ Mounts []Mount `yaml:"mounts,omitempty" json:"mounts,omitempty"`
20
+ MountType * MountType `yaml:"mountType,omitempty" json:"mountType,omitempty"`
21
+ MountInotify * bool `yaml:"mountInotify,omitempty" json:"mountInotify,omitempty"`
22
+ SSH SSH `yaml:"ssh,omitempty" json:"ssh,omitempty"` // REQUIRED (FIXME)
23
+ Firmware Firmware `yaml:"firmware,omitempty" json:"firmware,omitempty"`
24
+ Audio Audio `yaml:"audio,omitempty" json:"audio,omitempty"`
25
+ Video Video `yaml:"video,omitempty" json:"video,omitempty"`
26
+ Provision []Provision `yaml:"provision,omitempty" json:"provision,omitempty"`
27
+ UpgradePackages * bool `yaml:"upgradePackages,omitempty" json:"upgradePackages,omitempty"`
28
+ Containerd Containerd `yaml:"containerd,omitempty" json:"containerd,omitempty"`
29
+ GuestInstallPrefix * string `yaml:"guestInstallPrefix,omitempty" json:"guestInstallPrefix,omitempty"`
30
+ Probes []Probe `yaml:"probes,omitempty" json:"probes,omitempty"`
31
+ PortForwards []PortForward `yaml:"portForwards,omitempty" json:"portForwards,omitempty"`
32
+ CopyToHost []CopyToHost `yaml:"copyToHost,omitempty" json:"copyToHost,omitempty"`
33
+ Message string `yaml:"message,omitempty" json:"message,omitempty"`
34
+ Networks []Network `yaml:"networks,omitempty" json:"networks,omitempty"`
35
35
// `network` was deprecated in Lima v0.7.0, removed in Lima v0.14.0. Use `networks` instead.
36
36
Env map [string ]string `yaml:"env,omitempty" json:"env,omitempty"`
37
37
DNS []net.IP `yaml:"dns,omitempty" json:"dns,omitempty"`
51
51
VMType = string
52
52
)
53
53
54
+ type CPUType = map [Arch ]string
55
+
54
56
const (
55
57
LINUX OS = "Linux"
56
58
0 commit comments