executable

package
v0.12.91 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2020 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

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) Kill

func (t *BasicTask) Kill() error

func (*BasicTask) Launch

func (t *BasicTask) Launch() error

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) UnmarshalTransition

func (t *ControllableTask) UnmarshalTransition(data []byte) (cmd *executorcmd.ExecutorCommand_Transition, err error)

type HookTask

type HookTask struct {
	// contains filtered or unexported fields
}

type SendDeviceEventFunc

type SendDeviceEventFunc func(event event.DeviceEvent)

type SendStatusFunc

type SendStatusFunc func(state mesos.TaskState, message string)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL