config

package
v2.36.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertGiBToBytes

func ConvertGiBToBytes(gib int) uint64

func InitVMDriverFromMachineConfig

func InitVMDriverFromMachineConfig(machineConfig MachineConfig, driver *drivers.VMDriver)

Types

type MachineConfig

type MachineConfig struct {
	// CRC system bundle
	BundleName string

	// Virtual machine configuration
	Name              string
	Memory            int
	CPUs              int
	DiskSize          int
	ImageSourcePath   string
	ImageFormat       string
	SSHKeyPath        string
	KubeConfig        string
	SharedDirs        []string
	SharedDirPassword string
	SharedDirUsername string

	// macOS specific configuration
	KernelCmdLine string
	Initramfs     string
	Kernel        string

	// Experimental features
	NetworkMode network.Mode
}

Jump to

Keyboard shortcuts

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