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:
parent
b01792d9dd
commit
ebeb339f96
6 changed files with 217 additions and 0 deletions
|
|
@ -32,6 +32,10 @@ const (
|
|||
ErrorParsingJobArgs ClientErrorCode = 29
|
||||
ErrorContainerResolution ClientErrorCode = 30
|
||||
ErrorContainerDependency ClientErrorCode = 31
|
||||
ErrorOSTreeRefInvalid ClientErrorCode = 32
|
||||
ErrorOSTreeRefResolution ClientErrorCode = 33
|
||||
ErrorOSTreeParamsInvalid ClientErrorCode = 34
|
||||
ErrorOSTreeDependency ClientErrorCode = 35
|
||||
)
|
||||
|
||||
type ClientErrorCode int
|
||||
|
|
@ -87,6 +91,8 @@ func GetStatusCode(err *Error) StatusCode {
|
|||
return JobStatusUserInputError
|
||||
case ErrorContainerResolution:
|
||||
return JobStatusUserInputError
|
||||
case ErrorOSTreeDependency:
|
||||
return JobStatusUserInputError
|
||||
default:
|
||||
return JobStatusInternalError
|
||||
}
|
||||
|
|
@ -97,6 +103,8 @@ func (e *Error) IsDependencyError() bool {
|
|||
switch e.ID {
|
||||
case ErrorContainerDependency:
|
||||
return true
|
||||
case ErrorOSTreeDependency:
|
||||
return true
|
||||
case ErrorDepsolveDependency:
|
||||
return true
|
||||
case ErrorManifestDependency:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue