selector

package
v1.6.0-rc1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeSelector

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

func NewNodeSelector

func NewNodeSelector(
	discoverer nodes.Lookup,
	ranker orchestrator.NodeRanker,
	constraints orchestrator.NodeSelectionConstraints,
) *NodeSelector

func (NodeSelector) AllNodes

func (n NodeSelector) AllNodes(ctx context.Context) ([]models.NodeInfo, error)

func (NodeSelector) MatchingNodes added in v1.3.2

func (n NodeSelector) MatchingNodes(
	ctx context.Context,
	job *models.Job,
) (matchingNodes, rejectedNodes []orchestrator.NodeRank, err error)

Jump to

Keyboard shortcuts

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