From: Alexander Mazuruk Date: Fri, 24 Nov 2017 15:35:29 +0000 (+0100) Subject: Add JSON identifies to JobManager structs for api package X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F79%2F161679%2F1;p=tools%2Fweles.git Add JSON identifies to JobManager structs for api package Change-Id: Iedc8a8f9b75062a9ce0d4c1bbbf388a8b6a09fa9 --- diff --git a/jobmanager.go b/jobmanager.go index 472c679..17fdd56 100644 --- a/jobmanager.go +++ b/jobmanager.go @@ -50,18 +50,18 @@ const ( // 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