executorcmd

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Overview

Package executorcmd contains the gRPC client, as well as facilities for processing and committing incoming transition events.

Index

Constants

View Source
const (
	ProtobufTransport = ControlTransport(0)
	JsonTransport     = ControlTransport(1)
)
View Source
const GRPC_DIAL_TIMEOUT = 30 * time.Second

Variables

This section is empty.

Functions

This section is empty.

Types

type ControlTransport added in v0.13.90

type ControlTransport uint32

type ExecutorCommand_Transition

type ExecutorCommand_Transition struct {
	controlcommands.MesosCommand_Transition

	Transitioner transitioner.Transitioner
}

func NewLocalExecutorCommand_Transition added in v0.9.0

func NewLocalExecutorCommand_Transition(transitioner transitioner.Transitioner, envId uid.ID, receivers []controlcommands.MesosCommandTarget, source string, event string, destination string, arguments controlcommands.PropertyMapsMap) *ExecutorCommand_Transition

func (*ExecutorCommand_Transition) Commit

func (e *ExecutorCommand_Transition) Commit() (finalState string, err error)

func (*ExecutorCommand_Transition) PrepareResponse

func (e *ExecutorCommand_Transition) PrepareResponse(err error, currentState string, taskId string) *controlcommands.MesosCommandResponse_Transition

type RpcClient

type RpcClient struct {
	pb.OccClient

	Transitioner transitioner.Transitioner
	TaskCmd      *exec.Cmd
	Log          *logrus.Entry
	// contains filtered or unexported fields
}

func NewClient

func NewClient(
	controlPort uint64,
	controlMode controlmode.ControlMode,
	controlTransport ControlTransport,
	log *logrus.Entry,
) *RpcClient

func (*RpcClient) Close

func (r *RpcClient) Close() error

func (*RpcClient) FromDeviceState

func (r *RpcClient) FromDeviceState(state string) string

Directories

Path Synopsis
Package transitioner defines the Transitioner interface, as well as its implementations in order to translate between internal O² state machine states and events, and the states and events of some other process state machine (such as the FairMQ Device state machine).
Package transitioner defines the Transitioner interface, as well as its implementations in order to translate between internal O² state machine states and events, and the states and events of some other process state machine (such as the FairMQ Device state machine).

Jump to

Keyboard shortcuts

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