predicate

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BindPredicate

type BindPredicate interface {
	// Name returns the name of this predictor.
	Name() string
	// Bind Finally bind the pod to a specific node.
	Bind(ctx context.Context, args extenderv1.ExtenderBindingArgs) *extenderv1.ExtenderBindingResult
}

type FilterPredicate

type FilterPredicate interface {
	// Name returns the name of this predictor.
	Name() string
	// Filter returns the filter result of predictor, this will tell the suitable nodes to running pod.
	Filter(ctx context.Context, args extenderv1.ExtenderArgs) *extenderv1.ExtenderFilterResult
}

Jump to

Keyboard shortcuts

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