drivers

package
v0.0.0-...-288c4de Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const QEMUDefaultCPUCores = 1

QEMUDefaultCPUCores defines the default number of cores a VM will get if no limit specified.

View Source
const QEMUDefaultMemSize = "1GiB"

QEMUDefaultMemSize is the default memory size for VMs if no limit specified.

Variables

View Source
var ErrExecCommandNotExecutable = fmt.Errorf("Command not executable")

ErrExecCommandNotExecutable indicates the command is not executable.

View Source
var ErrExecCommandNotFound = fmt.Errorf("Command not found")

ErrExecCommandNotFound indicates the command is not found.

View Source
var ErrInstanceIsStopped error = fmt.Errorf("The instance is already stopped")

ErrInstanceIsStopped indicates that the instance is stopped.

Functions

func DriverStatuses

func DriverStatuses() map[instancetype.Type]*DriverStatus

DriverStatuses returns a map of DriverStatus structs for all instance type drivers. The first time this function is called each of the instance drivers will be probed for support and the result will be cached internally to make subsequent calls faster.

func PrepareEqualTest

func PrepareEqualTest(insts ...instance.Instance)

PrepareEqualTest modifies any unexported variables required for reflect.DeepEqual to complete safely. This is used for tests to avoid infinite recursion loops.

Types

type DriverStatus

type DriverStatus struct {
	Info      instance.Info
	Warning   *cluster.Warning
	Supported bool
}

DriverStatus definition.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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