filter

package
v0.0.0-...-e29486c Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithFilterHandler

func WithFilterHandler(filterFunc func(*extenderv1.ExtenderArgs) (*extenderv1.ExtenderFilterResult, error)) http.Handler

Types

type Filter

type Filter interface {
	Filter(*extenderv1.ExtenderArgs) (*extenderv1.ExtenderFilterResult, error)
}

func New

func New(ctx context.Context, client client.Client) Filter

type FilterPlugin

type FilterPlugin interface {
	Name() string
	FilterNodes(context.Context, client.Client, *corev1.Pod, []corev1.Node, *policyv1alpha1.PropagationPolicy) ([]corev1.Node, error)
}

Jump to

Keyboard shortcuts

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