prebind

package
v1.15.3-beta.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "stateless-prebind-plugin-example"

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 StatelessPrebindExample

type StatelessPrebindExample struct{}

StatelessPrebindExample is an example of a simple plugin that has no state and implements only one hook for prebind.

func (StatelessPrebindExample) Name

func (sr StatelessPrebindExample) Name() string

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

func (StatelessPrebindExample) Prebind

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

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

Jump to

Keyboard shortcuts

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