Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HostMismatch ¶
Is there a mismatch between the task's host requirement and the host corresponding to the offer.
func PowerClass ¶
Determine the power class of the host in the offer.
func UpdateEnvironment ¶
If the host in the offer is a new host, add the host to the set of Hosts and register the powerclass of this host.
Types ¶
type OffersSorter ¶
Implements the sort.Sort interface to sort Offers based on CPU. TODO: Have a generic sorter that sorts based on a defined requirement (CPU, RAM, DISK or Watts).
func (OffersSorter) Len ¶
func (offersSorter OffersSorter) Len() int
func (OffersSorter) Less ¶
func (offersSorter OffersSorter) Less(i, j int) bool
func (OffersSorter) Swap ¶
func (offersSorter OffersSorter) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.