pub enum OciDistributionError {
Show 23 variants AuthenticationFailure(String), GenericError(Option<String>), HeaderValueError(ToStrError), IoError(Error), ImageIndexParsingNoPlatformResolverError, ImageManifestNotFoundError(String), IncompatibleLayerMediaTypeError(String), JsonError(Error), ManifestParsingError(String), PushNoDataError, PushLayerNoDataError, PullNoLayersError, RegistryError { envelope: OciEnvelope, url: String, }, RegistryNoDigestError, RegistryNoLocationError, RegistryTokenDecodeError(String), RequestError(Error), ServerError { code: u16, url: String, message: String, }, SpecViolationError(String), UnauthorizedError { url: String, }, UnsupportedMediaTypeError(String), UnsupportedSchemaVersionError(i32), VersionedParsingError(String),
}
Expand description

Errors that can be raised while interacting with an OCI registry

Variants§

§

AuthenticationFailure(String)

Authentication error

§

GenericError(Option<String>)

Generic error, might provide an explanation message

§

HeaderValueError(ToStrError)

Transparent wrapper around reqwest::header::ToStrError

§

IoError(Error)

IO Error

§

ImageIndexParsingNoPlatformResolverError

Platform resolver not specified

§

ImageManifestNotFoundError(String)

Image manifest not found

§

IncompatibleLayerMediaTypeError(String)

Registry returned a layer with an incompatible type

§

JsonError(Error)

Transparent wrapper around serde_json::error::Error

§

ManifestParsingError(String)

Manifest: JSON unmarshalling error

§

PushNoDataError

Cannot push a blob without data

§

PushLayerNoDataError

Cannot push layer object without data

§

PullNoLayersError

No layers available to be pulled

§

RegistryError

Fields

§envelope: OciEnvelope

List of errors returned the by the OCI registry

§url: String

Request URL

OCI registry error

§

RegistryNoDigestError

Registry didn’t return a Digest object

§

RegistryNoLocationError

Registry didn’t return a Location header

§

RegistryTokenDecodeError(String)

Registry token: JSON deserialization error

§

RequestError(Error)

Transparent wrapper around reqwest::Error

§

ServerError

Fields

§code: u16

HTTP status code

§url: String

Request URL

§message: String

Error message returned by the remote server

HTTP Server error

§

SpecViolationError(String)

The OCI distribution spec is not respected by the remote registry

§

UnauthorizedError

Fields

§url: String

request URL

HTTP auth failed - user not authorized

§

UnsupportedMediaTypeError(String)

Media type not supported

§

UnsupportedSchemaVersionError(i32)

Schema version not supported

§

VersionedParsingError(String)

Versioned object: JSON deserialization error

Trait Implementations§

Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
The lower-level source of this error, if any. Read more
👎Deprecated since 1.42.0: use the Display impl or to_string()
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.

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.

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to provide by using demand. Read more
Should always be Self
Converts the given value to a String. Read more
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