multipoint

package
v1.24.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "multipoint-communicating-plugin"

Name is the name of the plugin used in Registry and configurations.

Variables

This section is empty.

Functions

func New

New initializes a new plugin and returns it.

Types

type CommunicatingPlugin

type CommunicatingPlugin struct{}

CommunicatingPlugin is an example of a plugin that implements two extension points. It communicates through state with another function.

func (CommunicatingPlugin) Name

func (mc CommunicatingPlugin) Name() string

Name returns name of the plugin. It is used in logs, etc.

func (CommunicatingPlugin) PreBind added in v1.16.0

func (mc CommunicatingPlugin) PreBind(ctx context.Context, state *framework.CycleState, pod *v1.Pod, nodeName string) *framework.Status

PreBind is the function invoked by the framework at "prebind" extension point.

func (CommunicatingPlugin) Reserve

func (mc CommunicatingPlugin) Reserve(ctx context.Context, state *framework.CycleState, pod *v1.Pod, nodeName string) *framework.Status

Reserve is the function invoked by the framework at "reserve" extension point.

func (CommunicatingPlugin) Unreserve added in v1.19.0

func (mc CommunicatingPlugin) Unreserve(ctx context.Context, state *framework.CycleState, pod *v1.Pod, nodeName string)

Unreserve is the function invoked by the framework when any error happens during "reserve" extension point or later.

Jump to

Keyboard shortcuts

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