Documentation ¶
Index ¶
- type BasicTask
- func (t *BasicTask) Kill() error
- func (t *BasicTask) Launch() error
- func (t *BasicTask) Transition(cmd *executorcmd.ExecutorCommand_Transition) *controlcommands.MesosCommandResponse_Transition
- func (t *BasicTask) UnmarshalTransition(data []byte) (cmd *executorcmd.ExecutorCommand_Transition, err error)
- type ControllableTask
- func (t *ControllableTask) Kill() error
- func (t *ControllableTask) Launch() error
- func (t *ControllableTask) Transition(cmd *executorcmd.ExecutorCommand_Transition) *controlcommands.MesosCommandResponse_Transition
- func (t *ControllableTask) UnmarshalTransition(data []byte) (cmd *executorcmd.ExecutorCommand_Transition, err error)
- type HookTask
- type SendDeviceEventFunc
- type SendStatusFunc
- type Task
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicTask ¶
type BasicTask struct {
// contains filtered or unexported fields
}
func (*BasicTask) Transition ¶
func (t *BasicTask) Transition(cmd *executorcmd.ExecutorCommand_Transition) *controlcommands.MesosCommandResponse_Transition
func (*BasicTask) UnmarshalTransition ¶
func (t *BasicTask) UnmarshalTransition(data []byte) (cmd *executorcmd.ExecutorCommand_Transition, err error)
type ControllableTask ¶
type ControllableTask struct {
// contains filtered or unexported fields
}
func (*ControllableTask) Kill ¶
func (t *ControllableTask) Kill() error
func (*ControllableTask) Launch ¶
func (t *ControllableTask) Launch() error
func (*ControllableTask) Transition ¶
func (t *ControllableTask) Transition(cmd *executorcmd.ExecutorCommand_Transition) *controlcommands.MesosCommandResponse_Transition
func (*ControllableTask) UnmarshalTransition ¶
func (t *ControllableTask) UnmarshalTransition(data []byte) (cmd *executorcmd.ExecutorCommand_Transition, err error)
type SendDeviceEventFunc ¶
type SendDeviceEventFunc func(event event.DeviceEvent)
type SendStatusFunc ¶
type Task ¶
type Task interface { Launch() error Kill() error Transition(transition *executorcmd.ExecutorCommand_Transition) *controlcommands.MesosCommandResponse_Transition UnmarshalTransition([]byte) (*executorcmd.ExecutorCommand_Transition, error) }
func NewTask ¶
func NewTask(taskInfo mesos.TaskInfo, sendStatusFunc SendStatusFunc, sendDeviceEventFunc SendDeviceEventFunc) Task
Click to show internal directories.
Click to hide internal directories.