cidata

package
v0.18.0-beta.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2023 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteTemplate

func ExecuteTemplate(args TemplateArgs) ([]iso9660util.Entry, error)

func GenerateISO9660

func GenerateISO9660(instDir, name string, y *limayaml.LimaYAML, udpDNSLocalPort, tcpDNSLocalPort int, nerdctlArchive string, vsockPort int) error

func GuestAgentBinary

func GuestAgentBinary(ostype limayaml.OS, arch limayaml.Arch) (io.ReadCloser, error)

func ValidateTemplateArgs

func ValidateTemplateArgs(args TemplateArgs) error

Types

type BootCmds added in v0.13.0

type BootCmds struct {
	Lines []string
}

type CACerts added in v0.10.0

type CACerts struct {
	RemoveDefaults *bool
	Trusted        []Cert
}

type Cert added in v0.10.0

type Cert struct {
	Lines []string
}

type Containerd

type Containerd struct {
	System bool
	User   bool
}

type Disk added in v0.14.0

type Disk struct {
	Name   string
	Device string
	Format bool
	FSType string
	FSArgs []string
}

type Mount added in v0.10.0

type Mount struct {
	Tag        string
	MountPoint string // abs path, accessible by the User
	Type       string
	Options    string
}

type Network

type Network struct {
	MACAddress string
	Interface  string
}

type TemplateArgs

type TemplateArgs struct {
	Name                            string // instance name
	IID                             string // instance id
	User                            string // user name
	Home                            string // home directory
	UID                             int
	SSHPubKeys                      []string
	Mounts                          []Mount
	MountType                       string
	Disks                           []Disk
	GuestInstallPrefix              string
	Containerd                      Containerd
	Networks                        []Network
	SlirpNICName                    string
	SlirpGateway                    string
	SlirpDNS                        string
	SlirpIPAddress                  string
	UDPDNSLocalPort                 int
	TCPDNSLocalPort                 int
	Env                             map[string]string
	DNSAddresses                    []string
	CACerts                         CACerts
	HostHomeMountPoint              string
	BootCmds                        []BootCmds
	RosettaEnabled                  bool
	RosettaBinFmt                   bool
	SkipDefaultDependencyResolution bool
	VMType                          string
	VSockPort                       int
	Plain                           bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL