(items []TaskRunRecord)
| 4542 | } |
| 4543 | |
| 4544 | func taskRunToonRows(items []TaskRunRecord) [][]string { |
| 4545 | rows := make([][]string, 0, len(items)) |
| 4546 | for _, item := range items { |
| 4547 | rows = append(rows, []string{ |
| 4548 | item.ID, |
| 4549 | string(item.Status), |
| 4550 | strconv.Itoa(item.Attempt), |
| 4551 | item.SessionID, |
| 4552 | formatTaskActorPtr(item.ClaimedBy), |
| 4553 | item.NetworkChannel, |
| 4554 | item.CoordinationChannelID, |
| 4555 | formatTime(item.QueuedAt), |
| 4556 | formatTimePtr(item.StartedAt), |
| 4557 | formatTimePtr(item.EndedAt), |
| 4558 | item.Error, |
| 4559 | }) |
| 4560 | } |
| 4561 | return rows |
| 4562 | } |
| 4563 | |
| 4564 | func taskEventRows(items []TaskEventRecord) [][]string { |
| 4565 | rows := make([][]string, 0, len(items)) |
no test coverage detected