idrange

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name         = names.Range
	VMIDRangeKey = "vmid.qemu-scheduler/range"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Range

type Range struct{}

func (*Range) Name

func (pl *Range) Name() string

func (*Range) PluginKey

func (pl *Range) PluginKey() framework.CtxKey

func (*Range) Select

func (pl *Range) Select(ctx context.Context, state *framework.CycleState, _ api.VirtualMachineCreateOptions, nextid int, usedID map[int]bool) (int, error)

select minimum id being not used in specified range range is specified in ctx value (key=vmid.qemu-scheduler/range)

Jump to

Keyboard shortcuts

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