Documentation ¶
Index ¶
Constants ¶
const ( // RunStatusInProgress is used for when a run is actively being executed. RunStatusInProgress = RunStatus("in progress") // RunStatusErrored is used for when a run has errored and will not complete. RunStatusErrored = RunStatus("errored") // RunStatusCompleted is used for when a run has successfully completed execution. RunStatusCompleted = RunStatus("completed") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSON ¶
JSON stores the json types string, number, bool, and null. Arrays and Objects are returned as their raw json types.
func ParseJSON ¶
ParseJSON attempts to coerce the input byte array into valid JSON and parse it into a JSON object.
func (JSON) MarshalJSON ¶
MarshalJSON returns the JSON data if it already exists, returns an empty JSON object as bytes if not.
func (*JSON) UnmarshalJSON ¶
UnmarshalJSON parses the JSON bytes and stores in the *JSON pointer.
type JobRun ¶
type JobRun struct { ID string `json:"id"` JobID string `json:"jobId"` Scheduler SchedulerSpec `json:"scheduler"` Result RunResult `json:"result"` Status RunStatus `json:"status"` TaskRuns []TaskRun `json:"taskRuns"` }
func (JobRun) ApplyResult ¶
type JobSpec ¶
type JobSpec struct { ID string `json:"id"` Scheduler SchedulerSpec `json:"scheduler"` Tasks []TaskSpec `json:"tasks"` Request []byte `json:"request"` }
type RunResult ¶
type RunStatus ¶
type RunStatus string
type SchedulerSpec ¶
type TaskRun ¶
type TaskRun struct { ID string `json:"id"` Result RunResult `json:"result"` Status RunStatus `json:"status"` Task TaskSpec `json:"task"` }
func (TaskRun) ApplyResult ¶
func (TaskRun) MarkCompleted ¶
type WebURL ¶
WebURL contains the URL of the endpoint.
func (*WebURL) MarshalJSON ¶
MarshalJSON returns the JSON-encoded string of the given data.
func (*WebURL) String ¶
String delegates to the wrapped URL struct or an empty string when it is nil
func (*WebURL) UnmarshalJSON ¶
UnmarshalJSON parses the raw URL stored in JSON-encoded data to a URL structure and sets it to the URL field.