reservation

package
v0.0.0-...-ac6a2c4 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLabeledReservedResources

func GetLabeledReservedResources(
	offers []*mesos.Offer) map[string]*ReservedResources

GetLabeledReservedResources extracts reserved resources from given list of offers, returns map from reservationLabelID -> ReservedResources.

func GetLabeledReservedResourcesFromResources

func GetLabeledReservedResourcesFromResources(
	resources []*mesos.Resource) map[string]*ReservedResources

GetLabeledReservedResourcesFromResources extracts reserved resources from given list of mesos resources, returns map from reservationLabelID -> ReservedResources.

func HasLabeledReservedResources

func HasLabeledReservedResources(offer *mesos.Offer) bool

HasLabeledReservedResources returns if given offer has labeled reserved resources.

Types

type ReservedResources

type ReservedResources struct {
	Resources scalar.Resources
	// volumes has list of volume IDs.
	Volumes []string
}

ReservedResources has both reserved resources and volumes.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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