pub enum OciErrorCode {
Show 16 variants BlobUnknown, BlobUploadInvalid, BlobUploadUnknown, DigestInvalid, ManifestBlobUnknown, ManifestInvalid, ManifestUnknown, ManifestUnverified, NameInvalid, NameUnknown, SizeInvalid, TagInvalid, Unauthorized, Denied, Unsupported, Toomanyrequests,
}
Expand description

OCI error codes

Outlined here

Variants

BlobUnknown

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.

BlobUploadInvalid

Blob upload is invalid

The blob upload encountered an error and can no longer proceed.

BlobUploadUnknown

Blob upload is unknown to registry

DigestInvalid

Provided digest did not match uploaded content.

ManifestBlobUnknown

Blob is unknown to registry

ManifestInvalid

Manifest is invalid

During upload, manifests undergo several checks ensuring validity. If those checks fail, this error MAY be returned, unless a more specific error is included. The detail will contain information the failed validation.

ManifestUnknown

Manifest unknown

This error is returned when the manifest, identified by name and tag is unknown to the repository.

ManifestUnverified

Manifest failed signature validation

DEPRECATED: This error code has been removed from the OCI spec.

NameInvalid

Invalid repository name

NameUnknown

Repository name is not known

SizeInvalid

Provided length did not match content length

TagInvalid

Manifest tag did not match URI

DEPRECATED: This error code has been removed from the OCI spec.

Unauthorized

Authentication required.

Denied

Requested access to the resource is denied

Unsupported

This operation is unsupported

Toomanyrequests

Too many requests from client

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more