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, 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 // contains filtered or unexported fields }
func NewClient ¶
func NewClient( controlPort uint64, controlMode controlmode.ControlMode, controlTransport ControlTransport, log *logrus.Entry, ) *RpcClient
func (*RpcClient) FromDeviceState ¶
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). |
Click to show internal directories.
Click to hide internal directories.