Documentation ¶
Index ¶
- Variables
- func FillDefault(y *LimaYAML, filePath string)
- func FillPortForwardDefaults(rule *PortForward)
- func MACAddress(uniqueID string) string
- func Validate(y LimaYAML) error
- type Arch
- type Containerd
- type File
- type Firmware
- type LimaYAML
- type Mount
- type Network
- type PortForward
- type Probe
- type ProbeMode
- type Proto
- type Provision
- type ProvisionMode
- type SSH
- type VDE
- type Video
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultTemplate []byte
Functions ¶
func FillDefault ¶
func FillPortForwardDefaults ¶
func FillPortForwardDefaults(rule *PortForward)
func MACAddress ¶
Types ¶
type Containerd ¶
type Firmware ¶
type Firmware struct { // LegacyBIOS disables UEFI if set. // LegacyBIOS is ignored for aarch64. LegacyBIOS bool `yaml:"legacyBIOS,omitempty"` }
type LimaYAML ¶
type LimaYAML struct { Arch Arch `yaml:"arch,omitempty"` Images []File `yaml:"images"` // REQUIRED CPUs int `yaml:"cpus,omitempty"` Memory string `yaml:"memory,omitempty"` // go-units.RAMInBytes Disk string `yaml:"disk,omitempty"` // go-units.RAMInBytes Mounts []Mount `yaml:"mounts,omitempty"` SSH SSH `yaml:"ssh,omitempty"` // REQUIRED (FIXME) Firmware Firmware `yaml:"firmware,omitempty"` Video Video `yaml:"video,omitempty"` Provision []Provision `yaml:"provision,omitempty"` Containerd Containerd `yaml:"containerd,omitempty"` Probes []Probe `yaml:"probes,omitempty"` PortForwards []PortForward `yaml:"portForwards,omitempty"` Network Network `yaml:"network,omitempty"` Env map[string]*string `yaml:"env,omitempty"` // EXPERIMENAL, see default.yaml }
type PortForward ¶
type PortForward struct { GuestIP net.IP `yaml:"guestIP,omitempty"` GuestPort int `yaml:"guestPort,omitempty"` GuestPortRange [2]int `yaml:"guestPortRange,omitempty"` HostIP net.IP `yaml:"hostIP,omitempty"` HostPort int `yaml:"hostPort,omitempty"` HostPortRange [2]int `yaml:"hostPortRange,omitempty"` Proto Proto `yaml:"proto,omitempty"` Ignore bool `yaml:"ignore,omitempty"` }
type Provision ¶
type Provision struct { Mode ProvisionMode `yaml:"mode"` // default: "system" Script string `yaml:"script"` }
type ProvisionMode ¶
type ProvisionMode = string
const ( ProvisionModeSystem ProvisionMode = "system" ProvisionModeUser ProvisionMode = "user" )
type VDE ¶
type VDE struct { // VNL is a Virtual Network Locator (https://github.com/rd235/vdeplug4/commit/089984200f447abb0e825eb45548b781ba1ebccd). // On macOS, only VDE2-compatible form (optionally with vde:// prefix) is supported. VNL string `yaml:"vnl,omitempty"` SwitchPort uint16 `yaml:"switchPort,omitempty"` // VDE Switch port, not TCP/UDP port MACAddress string `yaml:"macAddress,omitempty"` Name string `yaml:"name,omitempty"` }
Click to show internal directories.
Click to hide internal directories.