Documentation ¶
Index ¶
- type NodeSelector
- func (n NodeSelector) AllMatchingNodes(ctx context.Context, job *models.Job) ([]models.NodeInfo, error)
- func (n NodeSelector) AllNodes(ctx context.Context) ([]models.NodeInfo, error)
- func (n NodeSelector) TopMatchingNodes(ctx context.Context, job *models.Job, desiredCount int) ([]models.NodeInfo, error)
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 orchestrator.NodeDiscoverer, ranker orchestrator.NodeRanker, constraints orchestrator.NodeSelectionConstraints, ) *NodeSelector
func (NodeSelector) AllMatchingNodes ¶
Click to show internal directories.
Click to hide internal directories.