reserve

package
v0.0.0-...-b7b0d94 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

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