selector

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 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(params NodeSelectorParams) *NodeSelector

func (NodeSelector) AllMatchingNodes

func (n NodeSelector) AllMatchingNodes(ctx context.Context, job *models.Job) ([]models.NodeInfo, error)

func (NodeSelector) AllNodes

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

func (NodeSelector) TopMatchingNodes

func (n NodeSelector) TopMatchingNodes(ctx context.Context, job *models.Job, desiredCount int) ([]models.NodeInfo, error)

type NodeSelectorParams

type NodeSelectorParams struct {
	NodeDiscoverer orchestrator.NodeDiscoverer
	NodeRanker     orchestrator.NodeRanker
}

Jump to

Keyboard shortcuts

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