kubevirtobjs

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

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