osbuild-worker: add ostree resolve job

This job resolves an ostree ref. Similar to the depsolve and container
resolve jobs, this should be a dependency of a manifest job.
This commit is contained in:
Sanne Raymaekers 2022-10-18 15:24:34 +02:00
parent b01792d9dd
commit ebeb339f96
6 changed files with 217 additions and 0 deletions

View file

@ -256,6 +256,28 @@ type ContainerResolveJobResult struct {
JobResult
}
type OSTreeResolveSpec struct {
URL string `json:"url"`
Ref string `json:"ref"`
Parent string `json:"parent"`
}
type OSTreeResolveJob struct {
Specs []OSTreeResolveSpec `json:"ostree_resolve_specs"`
}
type OSTreeResolveResultSpec struct {
URL string `json:"url"`
Ref string `json:"ref"`
Checksum string `json:"checksum"`
}
type OSTreeResolveJobResult struct {
Specs []OSTreeResolveResultSpec `json:"ostree_resolve_result_specs"`
JobResult
}
type AWSEC2ShareJob struct {
Ami string `json:"ami"`
Region string `json:"region"`