stateful

package
v0.0.0-...-cd5b632 Latest Latest
Warning

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

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

Documentation

Index

Constants

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

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

Variables

This section is empty.

Functions

func New

New initializes a new plugin and returns it.

Types

type MultipointExample

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

MultipointExample is an example plugin that is executed at multiple extension points. This plugin is stateful. It receives arguments at initialization (NewMultipointPlugin) and changes its state when it is executed.

func (*MultipointExample) Name

func (mp *MultipointExample) Name() string

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

func (*MultipointExample) Prebind

func (mp *MultipointExample) Prebind(pc *framework.PluginContext, pod *v1.Pod, nodeName string) *framework.Status

Prebind is the functions invoked by the framework at "prebind" extension point.

func (*MultipointExample) Reserve

func (mp *MultipointExample) Reserve(pc *framework.PluginContext, pod *v1.Pod, nodeName string) *framework.Status

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

Jump to

Keyboard shortcuts

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