common

package
v0.12.9 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewState

func NewState() ksf.CycleState

Types

type K8sPlugin

type K8sPlugin interface {
	Name() string
	IsRelevant(pod *v1.Pod) bool
	PreFilter(ctx context.Context, pod *v1.Pod, state ksf.CycleState) (error, bool)
	Filter(ctx context.Context, pod *v1.Pod, node *v1.Node, state ksf.CycleState) error
	Allocate(ctx context.Context, pod *v1.Pod, hostname string, state ksf.CycleState) error
	Bind(ctx context.Context, pod *v1.Pod, request *v1alpha2.BindRequest, state ksf.CycleState) error
	PostBind(ctx context.Context, pod *v1.Pod, hostname string, state ksf.CycleState)
	UnAllocate(ctx context.Context, pod *v1.Pod, hostname string, state ksf.CycleState)
}

Directories

Path Synopsis
Package mock_common_plugins is a generated GoMock package.
Package mock_common_plugins is a generated GoMock package.

Jump to

Keyboard shortcuts

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