Documentation ¶
Index ¶
- Constants
- func IsBadRequest(err error) bool
- func IsNotFound(err error) bool
- type CancelRunRequest
- type CancelRunResponse
- type Client
- type ErrorResp
- type GetRunLogRequest
- type GetRunLogResponse
- type ListRunsRequest
- type ListRunsResponse
- type Log
- type Options
- type RunRequest
- type RunState
- type RunStatus
- type RunWorkflowRequest
- type RunWorkflowResponse
- type Time
Constants ¶
View Source
const ( DefaultEndpoint = "" DefaultBasePath = "/api/ga4gh/wes/v1" DefaultTimeout = 10 DefaultRetry = 2 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CancelRunResponse ¶
type CancelRunResponse struct {
RunID string `json:"run_id"`
}
CancelRunResponse ...
type Client ¶
type Client interface { ListRuns(ctx context.Context, req *ListRunsRequest) (*ListRunsResponse, error) RunWorkflow(ctx context.Context, req *RunWorkflowRequest) (*RunWorkflowResponse, error) GetRunLog(ctx context.Context, req *GetRunLogRequest) (*GetRunLogResponse, error) CancelRun(ctx context.Context, req *CancelRunRequest) (*CancelRunResponse, error) }
Client ...
type GetRunLogResponse ¶
type GetRunLogResponse struct { RunID string `json:"run_id"` Request RunRequest `json:"request"` State RunState `json:"state"` RunLog Log `json:"run_log"` TaskLogs []Log `json:"task_logs"` Outputs map[string]interface{} `json:"outputs"` }
GetRunLogResponse ...
type ListRunsRequest ¶
ListRunsRequest ...
type ListRunsResponse ¶
type ListRunsResponse struct { Runs []RunStatus `json:"runs"` NextPageToken string `json:"next_page_token"` }
ListRunsResponse ...
type Log ¶
type Log struct { Name string `json:"name"` Cmd []string `json:"cmd"` StartTime *Time `json:"start_time"` EndTime *Time `json:"end_time"` Stdout string `json:"stdout"` Stderr string `json:"stderr"` Log string `json:"log"` ExitCode *int32 `json:"exit_code"` }
Log ...
type RunRequest ¶
type RunRequest struct { WorkflowParams map[string]interface{} `json:"workflow_params"` WorkflowType string `json:"workflow_type"` WorkflowTypeVersion string `json:"workflow_type_version"` Tags map[string]interface{} `json:"tags"` WorkflowEngineParameters map[string]interface{} `json:"workflow_engine_parameters"` }
RunRequest ...
type RunState ¶
type RunState string
RunState ...
const ( RunStateUnknown RunState = "UNKNOWN" RunStateQueued RunState = "QUEUED" RunStateInitializing RunState = "INITIALIZING" RunStateRunning RunState = "RUNNING" RunStatePaused RunState = "PAUSED" RunStateComplete RunState = "COMPLETE" RunStateExecutorError RunState = "EXECUTOR_ERROR" RunStateSystemError RunState = "SYSTEM_ERROR" RunStateCanceled RunState = "CANCELED" RunStateCanceling RunState = "CANCELING" )
run state enum
type RunWorkflowRequest ¶
type RunWorkflowRequest struct { RunRequest WorkflowAttachment map[string]string // the string is file path }
RunWorkflowRequest ...
type RunWorkflowResponse ¶
type RunWorkflowResponse struct {
RunID string `json:"run_id"`
}
RunWorkflowResponse ...
Click to show internal directories.
Click to hide internal directories.