// JobInfo contains Job information available for public API.
type JobInfo struct {
// JobID is a unique Job identifier.
- JobID JobID
+ JobID JobID `json:"jobid"`
// Name is the Job name acquired from yaml file during Job creation.
- Name string
+ Name string `json:"name"`
// Created is the Job creation time in UTC.
- Created time.Time
+ Created time.Time `json:"created"`
// Updated is the time of latest Job status modification.
- Updated time.Time
+ Updated time.Time `json:"updated"`
// Status specifies current state of the Job.
- Status JobStatus
+ Status JobStatus `json:"status"`
// Info provides additional information about current state,
// e.g. cause of failure.
- Info string
+ Info string `json:"info"`
}
// JobManager interface defines API for actions that can be called on Weles Jobs