Skip to content

Commit

Permalink
fix oci errors
Browse files Browse the repository at this point in the history
oci errors updated to be even with https://github.com/opencontainers/distribution-spec/blob/main/spec.md#errors-2
* TAG_INVALID and MANIFEST_UNVERIFIED were removed from OCI spec: opencontainers/distribution-spec#206
* TOO_MANY_REQUESTS was added
  • Loading branch information
jwhb committed Jul 17, 2021
1 parent b4bbaf7 commit 606ff18
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions crates/oci-distribution/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,22 +65,20 @@ pub enum OciErrorCode {
///
/// This error is returned when the manifest, identified by name and tag is unknown to the repository.
ManifestUnknown,
/// Manifest failed signature validation
ManifestUnverified,
/// Invalid repository name
NameInvalid,
/// Repository name is not known
NameUnknown,
/// Provided length did not match content length
SizeInvalid,
/// Manifest tag did not match URI
TagInvalid,
/// Authentication required.
Unauthorized,
/// Requested access to the resource is denied
Denied,
/// This operation is unsupported
Unsupported,
/// Too many requests from client
Toomanyrequests,
}

#[cfg(test)]
Expand Down

0 comments on commit 606ff18

Please sign in to comment.