Documentation ¶
Index ¶
- func GetResourcesFromOffers(offers map[string]*mesos.Offer) scalar.Resources
- func HasExclusiveAttribute(attributes []*mesos.Attribute) bool
- func IsSlackResourceType(resourceType string, slackResourceTypes []string) bool
- func LabelKeyToEnvVarName(labelKey string) string
- func MatchSchedulingConstraint(hostname string, additionalLV constraints.LabelValues, ...) hostsvc.HostFilterResult
- func MesosOffersToHostOffer(hostOfferID string, mesosOffers []*mesos.Offer) *hostsvc.HostOffer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetResourcesFromOffers ¶
GetResourcesFromOffers returns the combined number of scalar.resources passed as a map of offerid->mesos.offer map.
func HasExclusiveAttribute ¶
HasExclusiveAttribute returns true if the provided attributes contains the "peloton/exclusive" attribute.
func IsSlackResourceType ¶
IsSlackResourceType validates is given resource type is supported slack resource.
func LabelKeyToEnvVarName ¶
LabelKeyToEnvVarName converts a task label key to an env var name Example: label key 'peloton.job_id' converted to env var name 'PELOTON_JOB_ID'
func MatchSchedulingConstraint ¶
func MatchSchedulingConstraint( hostname string, additionalLV constraints.LabelValues, attributes []*mesos.Attribute, constraint *task.Constraint, evaluator constraints.Evaluator, ) hostsvc.HostFilterResult
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.