regex

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NodeRegexName = names.NodeRegex
	NodeRegexKey  = "node.qemu-scheduler/regex"
)
View Source
const (
	Name         = names.Regex
	VMIDRegexKey = "vmid.qemu-scheduler/regex"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeRegex

type NodeRegex struct{}

func (*NodeRegex) Filter

regex is specified in ctx value (key=node.qemu-scheduler/regex)

func (*NodeRegex) Name

func (pl *NodeRegex) Name() string

type Regex

type Regex struct{}

func (*Regex) Name

func (pl *Regex) Name() string

func (*Regex) PluginKey

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

func (*Regex) Select

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

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

Jump to

Keyboard shortcuts

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