package multipoint

import "k8s.io/kubernetes/pkg/scheduler/framework/plugins/examples/multipoint"

Index

Constants

const Name = "multipoint-communicating-plugin"

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

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 pluginContext 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

func (mc CommunicatingPlugin) PreBind(pc *framework.PluginContext, pod *v1.Pod, nodeName string) *framework.Status

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

func (CommunicatingPlugin) Reserve

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

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

Source Files

multipoint.go

Version
v1.16.9
Published
Apr 16, 2020
Platform
linux/amd64
Imports
3 packages
Last checked
3 minutes ago

Tools for package owners.