Documentation ¶
Index ¶
- Constants
- type AskForBidRequest
- type BaseRequest
- type BaseResponse
- type BidAcceptedRequest
- type BidRejectedRequest
- type BidResult
- type CancelExecutionRequest
- type ComputeError
- type ExecutionLogsRequest
- type ExecutionLogsResponse
- type HandshakeRequest
- type HandshakeResponse
- type HeartbeatRequest
- type HeartbeatResponse
- type RunResult
- type UpdateNodeInfoRequest
- type UpdateNodeInfoResponse
Constants ¶
View Source
const ( AskForBidMessageType = "AskForBid" BidAcceptedMessageType = "BidAccepted" BidRejectedMessageType = "BidRejected" CancelExecutionMessageType = "CancelExecution" BidResultMessageType = "BidResult" RunResultMessageType = "RunResult" ComputeErrorMessageType = "ComputeError" HandshakeRequestMessageType = "transport.HandshakeRequest" HeartbeatRequestMessageType = "transport.HeartbeatRequest" NodeInfoUpdateRequestMessageType = "transport.UpdateNodeInfoRequest" HandshakeResponseType = "transport.HandshakeResponse" HeartbeatResponseType = "transport.HeartbeatResponse" NodeInfoUpdateResponseType = "transport.UpdateNodeInfoResponse" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AskForBidRequest ¶
type AskForBidRequest struct { BaseRequest // Execution specifies the job to be executed. Execution *models.Execution }
type BaseRequest ¶
BaseRequest is the base request model for all requests.
func (BaseRequest) Message ¶
func (r BaseRequest) Message() string
Message returns a request message if available.
type BaseResponse ¶
BaseResponse is the base response model for all responses.
func NewBaseResponse ¶
func NewBaseResponse(execution *models.Execution) BaseResponse
func (BaseResponse) Message ¶
func (r BaseResponse) Message() string
Message returns a response message if available.
type BidAcceptedRequest ¶
type BidAcceptedRequest struct { BaseRequest ExecutionID string Accepted bool }
type BidRejectedRequest ¶
type BidRejectedRequest struct { BaseRequest ExecutionID string }
type BidResult ¶
type BidResult struct { BaseResponse Accepted bool }
BidResult is the result of the compute node bidding on a job that is returned to the caller through a Callback.
type CancelExecutionRequest ¶
type CancelExecutionRequest struct { BaseRequest ExecutionID string }
type ComputeError ¶
type ComputeError struct {
BaseResponse
}
func (ComputeError) Error ¶
func (e ComputeError) Error() string
type ExecutionLogsRequest ¶
type ExecutionLogsResponse ¶
type HandshakeRequest ¶ added in v1.6.0
type HandshakeRequest struct { NodeInfo models.NodeInfo `json:"NodeInfo"` StartTime time.Time `json:"StartTime"` LastOrchestratorSeqNum uint64 `json:"LastOrchestratorSeqNum"` // Last seq received from orchestrator }
HandshakeRequest is exchanged during initial connection
type HandshakeResponse ¶ added in v1.6.0
type HandshakeResponse struct { Accepted bool `json:"accepted"` Reason string `json:"reason,omitempty"` LastComputeSeqNum uint64 `json:"LastComputeSeqNum"` // Last seq received from compute node }
HandshakeResponse is sent in response to handshake requests
type HeartbeatRequest ¶ added in v1.6.0
type HeartbeatResponse ¶ added in v1.6.0
type HeartbeatResponse struct {
LastComputeSeqNum uint64 `json:"LastComputeSeqNum"` // Last seq received from compute node
}
type RunResult ¶
type RunResult struct { BaseResponse PublishResult *models.SpecConfig RunCommandResult *models.RunCommandResult }
type UpdateNodeInfoRequest ¶ added in v1.6.0
UpdateNodeInfoRequest is used to update the node info
type UpdateNodeInfoResponse ¶ added in v1.6.0
Source Files ¶
Click to show internal directories.
Click to hide internal directories.