Documentation ¶
Index ¶
- Constants
- 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
- func (t *HookTask) Kill() error
- func (t *HookTask) Launch() error
- func (t *HookTask) Transition(cmd *executorcmd.ExecutorCommand_Transition) *controlcommands.MesosCommandResponse_Transition
- func (t *HookTask) Trigger() error
- func (t *HookTask) UnmarshalTransition(data []byte) (cmd *executorcmd.ExecutorCommand_Transition, err error)
- type SendDeviceEventFunc
- type SendMessageFunc
- type SendStatusFunc
- type Task
Constants ¶
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 HookTask ¶
type HookTask struct {
// contains filtered or unexported fields
}
func (*HookTask) Transition ¶ added in v0.16.0
func (t *HookTask) Transition(cmd *executorcmd.ExecutorCommand_Transition) *controlcommands.MesosCommandResponse_Transition
func (*HookTask) UnmarshalTransition ¶ added in v0.16.0
func (t *HookTask) UnmarshalTransition(data []byte) (cmd *executorcmd.ExecutorCommand_Transition, err error)
type SendDeviceEventFunc ¶
type SendDeviceEventFunc func(envId uid.ID, event event.DeviceEvent)
type SendMessageFunc ¶ added in v0.14.91
type SendMessageFunc func(message []byte)
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.