Enum oci_client::errors::OciDistributionError
source · pub enum OciDistributionError {
Show 27 variants
AuthenticationFailure(String),
ConfigConversionError(String),
DigestError(DigestError),
GenericError(Option<String>),
HeaderValueError(ToStrError),
ImageManifestNotFoundError(String),
ImageIndexParsingNoPlatformResolverError,
IncompatibleLayerMediaTypeError(String),
IoError(Error),
JsonError(Error),
ManifestEncodingError(Utf8Error),
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,
},
UrlParseError(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
ConfigConversionError(String)
Transparent wrapper around std::string::FromUtf8Error
DigestError(DigestError)
An error occurred with a digest operation
GenericError(Option<String>)
Generic error, might provide an explanation message
HeaderValueError(ToStrError)
Transparent wrapper around reqwest::header::ToStrError
ImageManifestNotFoundError(String)
Image manifest not found
ImageIndexParsingNoPlatformResolverError
Platform resolver not specified
IncompatibleLayerMediaTypeError(String)
Registry returned a layer with an incompatible type
IoError(Error)
IO Error
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
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
UrlParseError(String)
Cannot parse URL
UnsupportedMediaTypeError(String)
Media type not supported
UnsupportedSchemaVersionError(i32)
Schema version not supported
VersionedParsingError(String)
Versioned object: JSON deserialization error