design

package
v0.0.0-...-c0b5b33 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CreateVM = Type("CreateVM", func() {
	Extend(VMBase)
	Attribute("storage", ArrayOf(Storage), "Storage references")
	Required("name", "cpus", "memory", "storage")
})

CreateVM is a standalone VM for creation purposes.

View Source
var Image = Type("Image", func() {
	Attribute("path", String, "Image path")
	Attribute("cdrom", Boolean, "Is this a cdrom image?")
	Attribute("volume", String, "Volume name")
	Required("path", "cdrom")
})

Image encapsulates an existing image on disk.

View Source
var Storage = Type("Storage", func() {
	Attribute("volume", String, "Volume name; required if image is not a cdrom")
	Attribute("image", String, "Image filename, no `/` characters")
	Attribute("image_size", UInt, "Image size (in gigabytes); required if image is not a cdrom")
	Attribute("cdrom", Boolean, "Is this image a cdrom?")
	Required("image", "cdrom")
})

Storage encapuslates the properties around VM storage

View Source
var UpdateVM = Type("UpdateVM", func() {
	Attribute("id", UInt64, "ID of VM to update")
	Attribute("vm", UpdatedVM, "VM to publish")
	Required("id", "vm")
})

UpdateVM is a type encapsulating a VM and an ID to update.

View Source
var UpdatedVM = Type("UpdatedVM", func() {
	Extend(VMBase)
	Attribute("images", ArrayOf(Image), "Image references")
	Required("name", "cpus", "memory", "images")
})

UpdatedVM is a standalone VM for purposes of updating.

View Source
var VMBase = Type("VMBase", func() {
	Attribute("name", String, "Name of VM; does not need to be unique")
	Attribute("cpus", UInt, "CPU count")
	Attribute("memory", UInt, "Memory (in megabytes)")
})

VMBase is attributes that live similarly between cycles in the VM's lifetime.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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