noop

package
v1.17.0-alpha.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const Name = "noop-filter"

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 Filter

type Filter struct{}

Filter is a plugin that implements the filter plugin and always returns Success. This is just to make sure that all code dependencies are properly addressed while working on legitimate plugins. Note: The struct cannot be named NoOpFilter, otherwise the golint check cannot pass

func (Filter) Filter

func (n Filter) Filter(pc *framework.PluginContext, pod *v1.Pod, nodeInfo *nodeinfo.NodeInfo) *framework.Status

Filter invoked at the filter extension point.

func (Filter) Name

func (n Filter) Name() string

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

Jump to

Keyboard shortcuts

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