Documentation ¶
Index ¶
Constants ¶
View Source
const ( // PelotonJobIDLabelKey is the task label key for job ID PelotonJobIDLabelKey = "peloton.job_id" // PelotonInstanceIDLabelKey is the task label key for task instance ID PelotonInstanceIDLabelKey = "peloton.instance_id" // PelotonTaskIDLabelKey is the task label key for task ID PelotonTaskIDLabelKey = "peloton.task_id" )
Variables ¶
View Source
var ( // ErrPortMismatch represents port not matching. ErrPortMismatch = errors.New("port in launch not in offer") // ErrNotEnoughResource means resource is not enough to match given task. ErrNotEnoughResource = errors.New("not enough resources left to run task") // ErrNotEnoughRevocableResource means revocable resources is not enough to match given task ErrNotEnoughRevocableResource = errors.New("not enough revocable resources left to run task") )
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder helps to build launchable Mesos TaskInfo from offers and peloton task configs.
func NewBuilder ¶
NewBuilder creates a new instance of Builder, which caller can use to build Mesos tasks from the cached resources.
Click to show internal directories.
Click to hide internal directories.