type MultipointExample … var _ … var _ … const Name … // Name returns name of the plugin. It is used in logs, etc. func (mp *MultipointExample) Name() string { … } // Reserve is the function invoked by the framework at "reserve" extension // point. In this trivial example, the Reserve method allocates an array of // strings. func (mp *MultipointExample) Reserve(ctx context.Context, state *framework.CycleState, pod *v1.Pod, nodeName string) *framework.Status { … } // Unreserve is the function invoked by the framework when any error happens // during "reserve" extension point or later. In this example, the Unreserve // method loses its reference to the string slice, allowing it to be garbage // collected, and thereby "unallocating" the reserved resources. func (mp *MultipointExample) Unreserve(ctx context.Context, state *framework.CycleState, pod *v1.Pod, nodeName string) { … } // PreBind is the function invoked by the framework at "prebind" extension // point. func (mp *MultipointExample) PreBind(ctx context.Context, state *framework.CycleState, pod *v1.Pod, nodeName string) *framework.Status { … } // New initializes a new plugin and returns it. func New(ctx context.Context, config *runtime.Unknown, _ framework.Handle) (framework.Plugin, error) { … }