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 CommitResponse
- 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 SendMessageFunc
- 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 CommitResponse ¶ added in v0.14.3
type CommitResponse struct {
// contains filtered or unexported fields
}
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 SendMessageFunc ¶ added in v0.14.91
type SendMessageFunc func(message []byte)
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, sendMessageFunc SendMessageFunc) Task
Click to show internal directories.
Click to hide internal directories.