offers

package
v0.0.0-...-a69e935 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	// Acquire fetches a batch of offers from the host manager.
	Acquire(ctx context.Context,
		fetchTasks bool,
		taskType resmgr.TaskType,
		needs plugins.PlacementNeeds,
	) (offers []models.Offer, reason string)

	// Release returns the acquired offers back to host manager.
	Release(ctx context.Context, offers []models.Offer)
}

Service will manage offers used by any placement strategy.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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