plugins

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BinderPlugins

type BinderPlugins struct {
	// contains filtered or unexported fields
}

func New

func New() *BinderPlugins

func (*BinderPlugins) Mutate

func (bp *BinderPlugins) Mutate(pod *v1.Pod) error

func (*BinderPlugins) PostBind

func (bp *BinderPlugins) PostBind(ctx context.Context, pod *v1.Pod, host *v1.Node, bindRequest *v1alpha2.BindRequest,
	state *state.BindingState)

func (*BinderPlugins) PreBind

func (bp *BinderPlugins) PreBind(ctx context.Context, pod *v1.Pod, host *v1.Node, bindRequest *v1alpha2.BindRequest,
	state *state.BindingState) error

func (*BinderPlugins) RegisterPlugin

func (bp *BinderPlugins) RegisterPlugin(plugin Plugin)

func (*BinderPlugins) Validate

func (bp *BinderPlugins) Validate(pod *v1.Pod) error

type Plugin

type Plugin interface {
	Name() string
	Validate(*v1.Pod) error
	Mutate(*v1.Pod) error
	PreBind(ctx context.Context, pod *v1.Pod, node *v1.Node, bindRequest *v1alpha2.BindRequest,
		state *state.BindingState) error
	PostBind(ctx context.Context, pod *v1.Pod, node *v1.Node, bindRequest *v1alpha2.BindRequest,
		state *state.BindingState)
}

Directories

Path Synopsis
common/mock
Package mock_common_plugins is a generated GoMock package.
Package mock_common_plugins is a generated GoMock package.
Package mock_plugins is a generated GoMock package.
Package mock_plugins is a generated GoMock package.

Jump to

Keyboard shortcuts

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