From 606ff181d1c785a6b553f262830c635f81135f95 Mon Sep 17 00:00:00 2001 From: jwhb Date: Sat, 17 Jul 2021 18:31:19 +0200 Subject: [PATCH] fix oci errors 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: https://github.com/opencontainers/distribution-spec/pull/206 * TOO_MANY_REQUESTS was added --- crates/oci-distribution/src/errors.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/crates/oci-distribution/src/errors.rs b/crates/oci-distribution/src/errors.rs index d1f4ad33e..912e0aa91 100644 --- a/crates/oci-distribution/src/errors.rs +++ b/crates/oci-distribution/src/errors.rs @@ -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)]