cidata

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2025 License: Apache-2.0 Imports: 31 Imported by: 2 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteTemplateCIDataISO added in v1.0.0

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

func ExecuteTemplateCloudConfig added in v1.0.0

func ExecuteTemplateCloudConfig(args *TemplateArgs) ([]byte, error)

func GenerateCloudConfig added in v1.0.0

func GenerateCloudConfig(instDir, name string, instConfig *limayaml.LimaYAML) error

func GenerateISO9660

func GenerateISO9660(instDir, name string, instConfig *limayaml.LimaYAML, udpDNSLocalPort, tcpDNSLocalPort int, guestAgentBinary, nerdctlArchive string, vsockPort int, virtioPort string) 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
	Archive string
}

type DataFile added in v1.1.0

type DataFile struct {
	FileName    string
	Overwrite   string
	Owner       string
	Path        string
	Permissions string
}

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
	Metric     uint32
}

type TemplateArgs

type TemplateArgs struct {
	Debug                           bool
	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
	DNSAddresses                    []string
	CACerts                         CACerts
	HostHomeMountPoint              string
	BootCmds                        []BootCmds
	RosettaEnabled                  bool
	RosettaBinFmt                   bool
	SkipDefaultDependencyResolution bool
	VMType                          string
	VSockPort                       int
	VirtioPort                      string
	Plain                           bool
	TimeZone                        string
}

Jump to

Keyboard shortcuts

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