Enum wick_oci_utils::error::OciError
source · #[non_exhaustive]pub enum OciError {
Show 26 variants
NoVersion(),
NoManifest,
InvalidManifest(PathBuf),
NoTagOrDigest(String),
LatestDisallowed(String),
OciFetchFailure(String, String),
UntarFile(String, String),
OciPushFailure(Reference, Box<dyn Error + Send + Sync>),
OciPushManifestListFailure(Reference, Box<dyn Error + Send + Sync>),
OciPullManifestFailure(Reference, Box<dyn Error + Send + Sync>),
OCIParseError(String, String),
IOError(Error),
OciDistribution(OciDistributionError),
JsonParseFailed(Error),
YamlParseFailed(Error),
InvalidReferenceFormat(String),
PullFailed(String),
NoTitle,
CreateDir(PathBuf, Error),
WriteFile(PathBuf, Error),
NoName,
InvalidLayerPath(PathBuf),
InvalidCache(Error),
PackageReadFailed(String),
PushFailed(String),
WouldOverwrite(Vec<PathBuf>),
}
Expand description
Crate error.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NoVersion()
No version found in annotations
NoManifest
No manifest found in package
InvalidManifest(PathBuf)
Returned when reading an invalid manifest.
NoTagOrDigest(String)
LatestDisallowed(String)
Error thrown when attempting to fetch an image with :latest when forbidden.
OciFetchFailure(String, String)
General fetch failure.
UntarFile(String, String)
untar failure failure.
OciPushFailure(Reference, Box<dyn Error + Send + Sync>)
Failure during OCI push.
OciPushManifestListFailure(Reference, Box<dyn Error + Send + Sync>)
Failure during OCI push.
OciPullManifestFailure(Reference, Box<dyn Error + Send + Sync>)
Failed to retrieve a manifest.
OCIParseError(String, String)
Error for invalid URLs.
IOError(Error)
IO error for the local cache.
OciDistribution(OciDistributionError)
Upstream errors from oci-distribution
JsonParseFailed(Error)
JSON Parse Error
YamlParseFailed(Error)
YAML Parse Error
InvalidReferenceFormat(String)
Failed to parse image reference location
PullFailed(String)
Failed to push package
NoTitle
Tried to pull a layer that didn’t include a title.
CreateDir(PathBuf, Error)
Error returned when creating directories
WriteFile(PathBuf, Error)
Error returned when writing files
NoName
Tried to publish a component that didn’t have a name
InvalidLayerPath(PathBuf)
Tried to pull a layer that didn’t include at least one forward slash in the title.
InvalidCache(Error)
Passed cache location could not be found.
PackageReadFailed(String)
Failed to read downloaded package
PushFailed(String)
Failed to push package
WouldOverwrite(Vec<PathBuf>)
Returned when a pull would overwrite existing files and ‘overwrite’ is not set.