vm

package
v0.0.0-...-997eeb3 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2020 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package vm provides tools to build a set of PXE-booted VMs for Sidero testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Name       string
	Nodes      int
	BootSource net.IP
	CIDR       string

	TalosctlPath string

	MemMB  int64
	CPUs   int64
	DiskGB int64
}

Options configure new VM set.

type Set

type Set struct {
	// contains filtered or unexported fields
}

Set is a number of PXE-booted VMs.

func NewSet

func NewSet(ctx context.Context, options Options) (*Set, error)

NewSet creates new VM set.

func (*Set) BridgeIP

func (set *Set) BridgeIP() net.IP

BridgeIP returns the IP of the gateway (bridge).

func (*Set) Nodes

func (set *Set) Nodes() []provision.NodeInfo

Nodes return information about PXE VMs.

func (*Set) Setup

func (set *Set) Setup(ctx context.Context) error

Setup the VM set.

func (*Set) TearDown

func (set *Set) TearDown(ctx context.Context) error

TearDown the set of VMs.

Jump to

Keyboard shortcuts

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