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:
Ondřej Budai 2020-05-15 12:01:46 +02:00 committed by Lars Karlitski
parent 65c7b78d4e
commit 78d5109c81

View file

@ -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
}