Enum wick_oci_utils::error::OciError
source · pub enum OciError {
Show 21 variants
InvalidManifest(PathBuf),
LatestDisallowed(String),
OciFetchFailure(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),
InvalidReference(String),
PullFailed(String),
NoTitle,
CreateDir(PathBuf, Error),
WriteFile(PathBuf, Error),
NoName,
InvalidLayerPath(PathBuf),
PackageReadFailed(String),
PushFailed(String),
WouldOverwrite(Vec<PathBuf>),
}Expand description
Crate error.
Variants§
InvalidManifest(PathBuf)
Returned when reading an invalid manifest.
LatestDisallowed(String)
Error thrown when attempting to fetch an image with :latest when forbidden.
OciFetchFailure(String, String)
General fetch 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
InvalidReference(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.
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.