From f85420e44dbc0f90e9b7ebfb3e9f7fcecba2b952 Mon Sep 17 00:00:00 2001 From: Alexander Mazuruk Date: Fri, 24 Nov 2017 16:35:29 +0100 Subject: [PATCH] Add JSON identifies to JobManager structs for api package Change-Id: Iedc8a8f9b75062a9ce0d4c1bbbf388a8b6a09fa9 --- jobmanager.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 -- 2.7.4