hypervctl

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

View Source
var ErrNotImplemented = errors.New("function not implemented")

Functions

This section is empty.

Types

type Machine

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

Machine represents the information needed to be a podman machine

func NewMachine

func NewMachine(name string) (*Machine, error)

func (*Machine) ChangeDiskSize

func (m *Machine) ChangeDiskSize(newSize uint64) error

ChangeDiskSize alters the size of machine's disk

func (*Machine) ChangeMemorySize

func (m *Machine) ChangeMemorySize(newsize uint64) error

ChangeMemorySize changes the amount of memory allocated to the machine

func (*Machine) ChangeProcesorCounter

func (m *Machine) ChangeProcesorCounter(processorCount uint) error

ChangeProcesorCounteranges the number of CPUs assigned to the machine

func (*Machine) Create

func (m *Machine) Create() (*hypervctl.VirtualMachine, error)

Create uses the builder to actually create the new virtual machine in hyperv

Jump to

Keyboard shortcuts

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