plugins

package
v0.0.0-...-34b9888 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: MulanPSL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "sample-plugin"

插件名称

Variables

This section is empty.

Functions

func New

func New(configuration *runtime.Unknown, f framework.FrameworkHandle) (framework.Plugin, error)

type PluginFactory = func(configuration *runtime.Unknown, f FrameworkHandle) (Plugin, error)

Types

type Args

type Args struct {
	FavoriteColor  string `json:"favorite_color,omitempty"`
	FavoriteNumber int    `json:"favorite_number,omitempty"`
	ThanksTo       string `json:"thanks_to,omitempty"`
}

type Sample

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

func (*Sample) Filter

func (s *Sample) Filter(pc *framework.PluginContext, pod *v1.Pod, nodeName string) *framework.Status

func (*Sample) Name

func (s *Sample) Name() string

func (*Sample) PreBind

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

func (*Sample) PreFilter

func (s *Sample) PreFilter(pc *framework.PluginContext, pod *v1.Pod) *framework.Status

Jump to

Keyboard shortcuts

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