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 ¶
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.
Click to show internal directories.
Click to hide internal directories.