executable

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2021 License: GPL-3.0 Imports: 27 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	SIGTERM_TIMEOUT         = 1 * time.Second
	SIGINT_TIMEOUT          = 3 * time.Second
	KILL_TRANSITION_TIMEOUT = 1 * time.Second
	TRANSITION_TIMEOUT      = 10 * time.Second
)

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 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) 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) Kill added in v0.16.0

func (t *HookTask) Kill() error

func (*HookTask) Launch added in v0.16.0

func (t *HookTask) Launch() error

func (*HookTask) Transition added in v0.16.0

func (*HookTask) Trigger added in v0.16.0

func (t *HookTask) Trigger() error

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(event event.DeviceEvent)

type SendMessageFunc added in v0.14.91

type SendMessageFunc func(message []byte)

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, sendMessageFunc SendMessageFunc) Task

Jump to

Keyboard shortcuts

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