Add blob upload invalid error code
This commit is contained in:
parent
cd748f92ab
commit
83b899dab6
@ -977,6 +977,14 @@ var errorDescriptors = []ErrorDescriptor{
|
|||||||
started, this error code may be returned.`,
|
started, this error code may be returned.`,
|
||||||
HTTPStatusCodes: []int{http.StatusNotFound},
|
HTTPStatusCodes: []int{http.StatusNotFound},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
Code: ErrorCodeBlobUploadInvalid,
|
||||||
|
Value: "BLOB_UPLOAD_INVALID",
|
||||||
|
Message: "blob upload invalid",
|
||||||
|
Description: `The blob upload encountered an error and can no
|
||||||
|
longer proceed.`,
|
||||||
|
HTTPStatusCodes: []int{http.StatusNotFound},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
var errorCodeToDescriptors map[ErrorCode]ErrorDescriptor
|
var errorCodeToDescriptors map[ErrorCode]ErrorDescriptor
|
||||||
|
@ -54,6 +54,9 @@ const (
|
|||||||
|
|
||||||
// ErrorCodeBlobUploadUnknown is returned when an upload is unknown.
|
// ErrorCodeBlobUploadUnknown is returned when an upload is unknown.
|
||||||
ErrorCodeBlobUploadUnknown
|
ErrorCodeBlobUploadUnknown
|
||||||
|
|
||||||
|
// ErrorCodeBlobUploadInvalid is returned when an upload is invalid.
|
||||||
|
ErrorCodeBlobUploadInvalid
|
||||||
)
|
)
|
||||||
|
|
||||||
// ParseErrorCode attempts to parse the error code string, returning
|
// ParseErrorCode attempts to parse the error code string, returning
|
||||||
|
@ -703,6 +703,7 @@ The error codes encountered via the API are enumerated in the following table:
|
|||||||
`MANIFEST_UNVERIFIED` | manifest failed signature verification | During manifest upload, if the manifest fails signature verification, this error will be returned.
|
`MANIFEST_UNVERIFIED` | manifest failed signature verification | During manifest upload, if the manifest fails signature verification, this error will be returned.
|
||||||
`BLOB_UNKNOWN` | blob unknown to registry | This error may be returned when a blob is unknown to the registry in a specified repository. This can be returned with a standard get or if a manifest references an unknown layer during upload.
|
`BLOB_UNKNOWN` | blob unknown to registry | This error may be returned when a blob is unknown to the registry in a specified repository. This can be returned with a standard get or if a manifest references an unknown layer during upload.
|
||||||
`BLOB_UPLOAD_UNKNOWN` | blob upload unknown to registry | If a blob upload has been cancelled or was never started, this error code may be returned.
|
`BLOB_UPLOAD_UNKNOWN` | blob upload unknown to registry | If a blob upload has been cancelled or was never started, this error code may be returned.
|
||||||
|
`BLOB_UPLOAD_INVALID` | blob upload invalid | The blob upload encountered an error and can no longer proceed.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user