types

package
v0.0.0-...-f4dd720 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Network

type Network struct {
	ID     string   `yaml:"id" json:"id"`
	Subnet string   `yaml:"subnet" json:"subnet"`
	DNS    []string `yaml:"dns" json:"dns"`
}

Network represents a network for VMs

type Size

type Size struct {
	Name     string `yaml:"name" json:"name"`
	CPUModel string `yaml:"cpu-model" json:"cpu_model"`
	CPUs     uint   `yaml:"cpus" json:"cpus"`
	Cores    uint   `yaml:"cores" json:"cores"`
	Threads  uint   `yaml:"threads" json:"threads"`
	Sockets  uint   `yaml:"sockets" json:"sockets"`
	Memory   uint   `yaml:"memory" json:"memory"`
}

Size represents all hardware spec definitions for the VM

type VM

type VM struct {
	Name        string    `yaml:"name" json:"name"`
	Namespace   string    `yaml:"namespace" json:"namespace"`
	ParentImage string    `yaml:"image" json:"image"`
	Size        Size      `yaml:"size" json:"size"`
	SSHKey      string    `yaml:"sshkey" json:"sshkey"`
	UserData    string    `yaml:"user-data" json:"user_data"`
	Cloud       bool      `yaml:"cloud" json:"cloud"`
	Efi         bool      `yaml:"efi" json:"efi"`
	AutoRemove  bool      `yaml:"auto-remove" json:"auto_remove"`
	Network     VMNetOpts `yaml:"network" json:"network"`
	Shares      []string  `yaml:"shares" json:"shares"`
	EmulatorEnv []string  `yaml:"emulator-env" json:"emulator_env"`
}

VM represents a Virtual Machine guest

type VMNetOpts

type VMNetOpts struct {
	NetID string
	IP    net.IP
	MAC   net.HardwareAddr
}

VMNetOpts represents a VM's options for connecting to a network

Jump to

Keyboard shortcuts

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