worker/server: add Result to ComposeStatus
Return also the OsbuildJobResult in ComposeStatus struct. This change will allow us to remove the JobResult function, see the following commits.
This commit is contained in:
parent
65c7b78d4e
commit
78d5109c81
1 changed files with 2 additions and 0 deletions
|
|
@ -32,6 +32,7 @@ type JobStatus struct {
|
|||
Queued time.Time
|
||||
Started time.Time
|
||||
Finished time.Time
|
||||
Result OSBuildJobResult
|
||||
}
|
||||
|
||||
type WriteImageFunc func(composeID uuid.UUID, imageBuildID int, reader io.Reader) error
|
||||
|
|
@ -111,6 +112,7 @@ func (s *Server) JobStatus(id uuid.UUID) (*JobStatus, error) {
|
|||
Queued: queued,
|
||||
Started: started,
|
||||
Finished: finished,
|
||||
Result: result,
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue