Documentation ¶
Index ¶
Constants ¶
View Source
const ( MaxDisks uint = 64 MaxIfaces uint = 64 MaxPortsPerIface uint = 16 MaxNTPServers uint = 8 )
Variables ¶
View Source
var ( ErrTooManyDisks error = fmt.Errorf("Too many disks requested, max = %u", MaxDisks) ErrTooManyIfaces error = fmt.Errorf("Too many network interface requested, max = %u", MaxIfaces) ErrTooManyPortsPerIface error = fmt.Errorf("Too many ports per network interface requested, max = %u", MaxPortsPerIface) )
Functions ¶
func NewDefaultVirtualMachine ¶
func NewDefaultVirtualMachine() *k6tv1.VirtualMachine
NewVirtualMachine returns a fully zero-value VirtualMachine with all optional fields
func NewDomainSpec ¶
func NewDomainSpec(numDisks, numIfaces, numPortsPerIface uint) (*k6tv1.DomainSpec, error)
NewDomainSpec returns a fully zero-value DomainSpec with all optional fields, or error if requested parameters exceeds limits TODO: build using instrospection (aka the reflect package)
func NewVirtualMachine ¶
func NewVirtualMachine(numDisks, numIfaces, numPortsPerIface uint) (*k6tv1.VirtualMachine, error)
NewVirtualMachine returns a fully zero-value VirtualMachine with all optional fields, or error if requested parameters exceeds limits
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.