cloudapi: Add DeleteCompose to delete a job by UUID
This adds the handler for DELETE /composes/{id} which will delete a job and
all of its dependencies, and any artifacts.
Related: RHEL-60120
This commit is contained in:
parent
a569ac0f7b
commit
56fc58cca3
4 changed files with 111 additions and 2 deletions
|
|
@ -78,6 +78,7 @@ const (
|
|||
ErrorTenantNotInContext ServiceErrorCode = 1020
|
||||
ErrorGettingComposeList ServiceErrorCode = 1021
|
||||
ErrorArtifactNotFound ServiceErrorCode = 1022
|
||||
ErrorDeletingJob ServiceErrorCode = 1023
|
||||
|
||||
// Errors contained within this file
|
||||
ErrorUnspecified ServiceErrorCode = 10000
|
||||
|
|
@ -163,6 +164,7 @@ func getServiceErrors() serviceErrors {
|
|||
serviceError{ErrorGettingJobType, http.StatusInternalServerError, "Unable to get job type of existing job"},
|
||||
serviceError{ErrorTenantNotInContext, http.StatusInternalServerError, "Unable to retrieve tenant from request context"},
|
||||
serviceError{ErrorGettingComposeList, http.StatusInternalServerError, "Unable to get list of composes"},
|
||||
serviceError{ErrorDeletingJob, http.StatusInternalServerError, "Unable to delete job"},
|
||||
|
||||
serviceError{ErrorUnspecified, http.StatusInternalServerError, "Unspecified internal error "},
|
||||
serviceError{ErrorNotHTTPError, http.StatusInternalServerError, "Error is not an instance of HTTPError"},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue