Enum oci_distribution::errors::OciErrorCode[][src]

pub enum OciErrorCode {
    BlobUnknown,
    BlobUploadInvalid,
    BlobUploadUnknown,
    DigestInvalid,
    ManifestBlobUnknown,
    ManifestInvalid,
    ManifestUnknown,
    ManifestUnverified,
    NameInvalid,
    NameUnknown,
    SizeInvalid,
    TagInvalid,
    Unauthorized,
    Denied,
    Unsupported,
}

OCI error codes

Outlined here: https://github.com/opencontainers/distribution-spec/blob/master/spec.md#errors-2

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

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

Unauthorized

Authentication required.

Denied

Requested access to the resource is denied

Unsupported

This operation is unsupported

Trait Implementations

impl Debug for OciErrorCode[src]

impl<'de> Deserialize<'de> for OciErrorCode[src]

impl PartialEq<OciErrorCode> for OciErrorCode[src]

impl StructuralPartialEq for OciErrorCode[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.