drivers

package
v6.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 105 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrExecCommandNotExecutable = api.StatusErrorf(http.StatusBadRequest, "Command not executable")

ErrExecCommandNotExecutable indicates the command is not executable.

View Source
var ErrExecCommandNotFound = api.StatusErrorf(http.StatusBadRequest, "Command not found")

ErrExecCommandNotFound indicates the command is not found.

View Source
var ErrExecDisconnected = fmt.Errorf("Disconnected")

ErrExecDisconnected is returned when the guest disconnects the exec session.

View Source
var ErrInstanceIsStopped error = api.StatusErrorf(http.StatusBadRequest, "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 GetClusterCPUFlags added in v6.0.2

func GetClusterCPUFlags(ctx context.Context, s *state.State, servers []string, archName string) ([]string, error)

GetClusterCPUFlags returns the list of shared CPU flags across.

func ParseMemoryStr added in v6.6.0

func ParseMemoryStr(memory string) (valueInt int64, err error)

ParseMemoryStr parses a human representation of memory value as int64 type.

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