Skip to content

Commit 5885247

Browse files
committed
Use an interface for param values to accomodate different input types
1 parent 2b68159 commit 5885247

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

types/list.go

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -164,19 +164,19 @@ type SubJobs struct {
164164
}
165165

166166
type SubJob struct {
167-
ID uuid.UUID `json:"id"`
168-
Name string `json:"name"`
169-
Status string `json:"status"`
170-
StartedDate time.Time `json:"started_at"`
171-
FinishedDate time.Time `json:"finished_at"`
172-
Podname string `json:"podname"`
173-
Params map[string]string `json:"params"`
174-
Message string `json:"message"`
175-
TaskIndex string `json:"task_index"`
176-
TaskCount int `json:"task_count"`
177-
OutputsStatus string `json:"outputs_status"`
178-
Finished bool `json:"finished"`
179-
TaskGroup bool `json:"task_group"`
167+
ID uuid.UUID `json:"id"`
168+
Name string `json:"name"`
169+
Status string `json:"status"`
170+
StartedDate time.Time `json:"started_at"`
171+
FinishedDate time.Time `json:"finished_at"`
172+
Podname string `json:"podname"`
173+
Params map[string]interface{} `json:"params"`
174+
Message string `json:"message"`
175+
TaskIndex string `json:"task_index"`
176+
TaskCount int `json:"task_count"`
177+
OutputsStatus string `json:"outputs_status"`
178+
Finished bool `json:"finished"`
179+
TaskGroup bool `json:"task_group"`
180180
Children []SubJob
181181
Label string
182182
}

0 commit comments

Comments
 (0)