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
Fields
HTTP Server error
SpecViolationError(String)
The OCI distribution spec is not respected by the remote registry
Fields
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
ConfigConversionError(String)
Transparent wrapper around std::string::FromUtf8Error