pub enum OciDistributionError {
Show 26 variants
AuthenticationFailure(String),
GenericError(Option<String>),
HeaderValueError(ToStrError),
IoError(Error),
ImageIndexParsingNoPlatformResolverError,
ImageManifestNotFoundError(String),
IncompatibleLayerMediaTypeError(String),
JsonError(Error),
ManifestEncodingError(Utf8Error),
ManifestParsingError(String),
PushNoDataError,
PushLayerNoDataError,
PullNoLayersError,
RegistryError {
envelope: OciEnvelope,
url: String,
},
RegistryNoDigestError,
RegistryNoLocationError,
RegistryTokenDecodeError(String),
RequestError(Error),
UrlParseError(String),
ServerError {
code: u16,
url: String,
message: String,
},
SpecViolationError(String),
UnauthorizedError {
url: String,
},
UnsupportedMediaTypeError(String),
UnsupportedSchemaVersionError(i32),
VersionedParsingError(String),
ConfigConversionError(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
ManifestEncodingError(Utf8Error)
Manifest is not valid UTF-8
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
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
UrlParseError(String)
Cannot parse URL
ServerError
HTTP Server error
Fields
SpecViolationError(String)
The OCI distribution spec is not respected by the remote registry
HTTP auth failed - user not authorized
Fields
request URL
UnsupportedMediaTypeError(String)
Media type not supported
UnsupportedSchemaVersionError(i32)
Schema version not supported
VersionedParsingError(String)
Versioned object: JSON deserialization error
ConfigConversionError(String)
Transparent wrapper around std::string::FromUtf8Error
Trait Implementations§
Source§impl Debug for OciDistributionError
impl Debug for OciDistributionError
Source§impl Display for OciDistributionError
impl Display for OciDistributionError
Source§impl Error for OciDistributionError
impl Error for OciDistributionError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<Error> for OciDistributionError
impl From<Error> for OciDistributionError
Source§impl From<Error> for OciDistributionError
impl From<Error> for OciDistributionError
Source§impl From<Error> for OciDistributionError
impl From<Error> for OciDistributionError
Source§impl From<ToStrError> for OciDistributionError
impl From<ToStrError> for OciDistributionError
Source§fn from(source: ToStrError) -> Self
fn from(source: ToStrError) -> Self
Auto Trait Implementations§
impl Freeze for OciDistributionError
impl !RefUnwindSafe for OciDistributionError
impl Send for OciDistributionError
impl Sync for OciDistributionError
impl Unpin for OciDistributionError
impl !UnwindSafe for OciDistributionError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.