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 ¶
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.
Click to show internal directories.
Click to hide internal directories.