Documentation
¶
Index ¶
- func ExecuteTemplateCIDataISO(args *TemplateArgs) ([]iso9660util.Entry, error)
- func ExecuteTemplateCloudConfig(args *TemplateArgs) ([]byte, error)
- func GenerateCloudConfig(ctx context.Context, instDir, name string, instConfig *limatype.LimaYAML) error
- func GenerateISO9660(ctx context.Context, drv driver.Driver, instDir, name string, ...) (string, error)
- func ValidateTemplateArgs(args *TemplateArgs) error
- type BootCmds
- type CACerts
- type Cert
- type Containerd
- type DataFile
- type Disk
- type Mount
- type Network
- type TemplateArgs
- type YQProvision
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteTemplateCIDataISO ¶
func ExecuteTemplateCIDataISO(args *TemplateArgs) ([]iso9660util.Entry, error)
func ExecuteTemplateCloudConfig ¶
func ExecuteTemplateCloudConfig(args *TemplateArgs) ([]byte, error)
func GenerateCloudConfig ¶
func GenerateISO9660 ¶
func GenerateISO9660(ctx context.Context, drv driver.Driver, instDir, name string, instConfig *limatype.LimaYAML, udpDNSLocalPort, tcpDNSLocalPort int, guestAgentBinary, nerdctlArchive string, vsockPort int, virtioPort string, noCloudInit, rosettaEnabled, rosettaBinFmt bool) (string, error)
GenerateISO9660 generates the cidata ISO9660 image (or directory, for noCloudInit) in instDir. It returns the instance ID, which changes on every boot.
func ValidateTemplateArgs ¶
func ValidateTemplateArgs(args *TemplateArgs) error
Types ¶
type Containerd ¶
type TemplateArgs ¶
type TemplateArgs struct {
Debug bool
OS limatype.OS
Name string // instance name
Hostname string // instance hostname
IID string // instance id
User string // user name
Comment string // user information
Home string // home directory
Shell string // login shell
UID uint32
SSHPubKeys []string
Mounts []Mount
MountType string
Disks []Disk
GuestInstallPrefix string
UpgradePackages bool
Containerd Containerd
Networks []Network
SlirpNICName string
SlirpGateway string
SlirpDNS string
SlirpIPAddress string
UDPDNSLocalPort int
TCPDNSLocalPort int
Env map[string]string
Param map[string]string
BootScripts bool
DataFiles []DataFile
YQProvisions []YQProvision
DNSAddresses []string
CACerts CACerts
HostHomeMountPoint string
BootCmds []BootCmds
RosettaEnabled bool
RosettaBinFmt bool
SkipDefaultDependencyResolution bool
VMType string
VSockPort int
VirtioPort string
Plain bool
TimeZone string
NoCloudInit bool
}
Click to show internal directories.
Click to hide internal directories.