Documentation ¶
Index ¶
- Constants
- type AskForBidRequest
- type BaseRequest
- type BaseResponse
- type BidAcceptedRequest
- type BidRejectedRequest
- type BidResult
- type CancelExecutionRequest
- type ComputeError
- type ExecutionLogsRequest
- type ExecutionLogsResponse
- type Heartbeat
- type RegisterRequest
- type RegisterResponse
- type RunResult
- type UpdateInfoRequest
- type UpdateInfoResponse
- type UpdateResourcesRequest
- type UpdateResourcesResponse
Constants ¶
View Source
const ( AskForBidMessageType = "AskForBid" BidAcceptedMessageType = "BidAccepted" BidRejectedMessageType = "BidRejected" CancelExecutionMessageType = "CancelExecution" BidResultMessageType = "BidResult" RunResultMessageType = "RunResult" ComputeErrorMessageType = "ComputeError" )
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 Heartbeat ¶
Heartbeat represents a heartbeat message from a specific node. It contains the node ID and the sequence number of the heartbeat which is monotonically increasing (reboots aside). We do not use timestamps on the client, we rely solely on the server-side time to avoid clock drift issues.
type RegisterRequest ¶
type RegisterResponse ¶
type RunResult ¶
type RunResult struct { BaseResponse PublishResult *models.SpecConfig RunCommandResult *models.RunCommandResult }
type UpdateInfoRequest ¶
type UpdateInfoResponse ¶
type UpdateResourcesRequest ¶
type UpdateResourcesResponse ¶
type UpdateResourcesResponse struct{}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.