Documentation ¶
Overview ¶
Package reserve exports an api.ReservePlugin to the host.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetPlugin ¶
func SetPlugin(reservePlugin api.ReservePlugin)
SetPlugin should be called in `main` to assign an api.ReservePlugin instance.
For example:
func main() { plugin := reservePlugin{} reserve.SetPlugin(plugin) } type reservePlugin struct{} func (reservePlugin) Reserve(state api.CycleState, pod proto.Pod, nodeName string) (status *api.Status) { // Write state you need on Reserve } func (reservePlugin) Unreserve(state api.CycleState, pod proto.Pod, nodeName string) { // Write state you need on Unreserve }
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.