cloupapi/v2: add koji support
Extend the compose endpoints to have minimal koji support. This is intended to replace the current koji API so that it can be consumed through api.openshift.com.
This commit is contained in:
parent
22b923dee3
commit
92c7fc2534
7 changed files with 358 additions and 131 deletions
|
|
@ -52,7 +52,7 @@ type KojiInitJobResult struct {
|
|||
}
|
||||
|
||||
type OSBuildKojiJob struct {
|
||||
Manifest distro.Manifest `json:"manifest"`
|
||||
Manifest distro.Manifest `json:"manifest,omitempty"`
|
||||
ImageName string `json:"image_name"`
|
||||
Exports []string `json:"exports"`
|
||||
PipelineNames *PipelineNames `json:"pipeline_names,omitempty"`
|
||||
|
|
|
|||
|
|
@ -103,6 +103,10 @@ func (s *Server) EnqueueOSBuildKoji(arch string, job *OSBuildKojiJob, initID uui
|
|||
return s.jobs.Enqueue("osbuild-koji:"+arch, job, []uuid.UUID{initID})
|
||||
}
|
||||
|
||||
func (s *Server) EnqueueOSBuildKojiAsDependency(arch string, job *OSBuildKojiJob, manifestID, initID uuid.UUID) (uuid.UUID, error) {
|
||||
return s.jobs.Enqueue("osbuild-koji:"+arch, job, []uuid.UUID{initID, manifestID})
|
||||
}
|
||||
|
||||
func (s *Server) EnqueueKojiInit(job *KojiInitJob) (uuid.UUID, error) {
|
||||
return s.jobs.Enqueue("koji-init", job, nil)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue