Contrary to our assumption, we cannot initialize the build with the link to the task. We can only update the link once the build has completed. This seems like a bug in koji, but we keep it like this for now.
19 lines
578 B
Go
19 lines
578 B
Go
package target
|
|
|
|
type KojiTargetOptions struct {
|
|
BuildID uint64 `json:"build_id"`
|
|
TaskID uint64 `json:"task_id"`
|
|
Token string `json:"token"`
|
|
Name string `json:"name"`
|
|
Version string `json:"version"`
|
|
Release string `json:"release"`
|
|
Filename string `json:"filename"`
|
|
UploadDirectory string `json:"upload_directory"`
|
|
Server string `json:"server"`
|
|
}
|
|
|
|
func (KojiTargetOptions) isTargetOptions() {}
|
|
|
|
func NewKojiTarget(options *KojiTargetOptions) *Target {
|
|
return newTarget("org.osbuild.koji", options)
|
|
}
|