Documentation ¶
Index ¶
- type Task
- func (t *Task) Build(slaveID string, offers map[string]*mesosproto.Offer)
- func (t *Task) GetConfig() *cluster.ContainerConfig
- func (t *Task) GetContainer() chan *cluster.Container
- func (t *Task) GetStatus() *mesosproto.TaskStatus
- func (t *Task) ID() string
- func (t *Task) Monitor() (bool, []byte, error)
- func (t *Task) SendStatus(status *mesosproto.TaskStatus)
- func (t *Task) SetContainer(container *cluster.Container)
- func (t *Task) Stop()
- func (t *Task) Stopped() bool
- type Tasks
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Task ¶
type Task struct { mesosproto.TaskInfo Error chan error // contains filtered or unexported fields }
Task struct inherits from TaskInfo and represents a mesos task
func (*Task) Build ¶
func (t *Task) Build(slaveID string, offers map[string]*mesosproto.Offer)
Build method builds the task
func (*Task) GetConfig ¶
func (t *Task) GetConfig() *cluster.ContainerConfig
GetConfig returns the container configuration of the task
func (*Task) GetContainer ¶
GetContainer returns the container channel from the task where the Swarm API sends the created container
func (*Task) GetStatus ¶
func (t *Task) GetStatus() *mesosproto.TaskStatus
GetStatus method reads the task status on the updates channel
func (*Task) SendStatus ¶
func (t *Task) SendStatus(status *mesosproto.TaskStatus)
SendStatus method writes the task status in the updates channel
func (*Task) SetContainer ¶
SetContainer writes on the container channel from the task
Click to show internal directories.
Click to hide internal directories.