pub enum RegistryCacheError {
ZotNotInstalled(Error),
NoPersistedConfig,
Config(ConfigError),
Path(PathError),
Lock(LockError),
Refs(RefsError),
Process(ProcessError),
CreateDataDir(Error),
WriteConfig(Error),
CheckConfig(Error),
}Expand description
Errors from registry-cache orchestration.
Variants§
ZotNotInstalled(Error)
The zot binary is not on the user’s PATH. Caproni does not
pin zot itself; users install it from
https://github.com/project-zot/zot/releases or run
mise use -g aqua:project-zot/zot for a user-wide install.
NoPersistedConfig
No ensure has ever been invoked for this user, so there’s no
config.json to spawn zot with.
Config(ConfigError)
Called with an empty upstream list.
Path(PathError)
Failed resolving a registry-cache path.
Lock(LockError)
Failed acquiring the registry-cache flock.
Refs(RefsError)
Failed a ref-marker file operation.
Process(ProcessError)
Failed a zot process operation.
CreateDataDir(Error)
Failed creating the data directory.
WriteConfig(Error)
Failed writing the zot config to disk.
CheckConfig(Error)
Failed checking whether a persisted config exists.
Trait Implementations§
Source§impl Debug for RegistryCacheError
impl Debug for RegistryCacheError
Source§impl Display for RegistryCacheError
impl Display for RegistryCacheError
Source§impl Error for RegistryCacheError
impl Error for RegistryCacheError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<ConfigError> for RegistryCacheError
impl From<ConfigError> for RegistryCacheError
Source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Converts to this type from the input type.
Source§impl From<LockError> for RegistryCacheError
impl From<LockError> for RegistryCacheError
Source§impl From<PathError> for RegistryCacheError
impl From<PathError> for RegistryCacheError
Source§impl From<ProcessError> for RegistryCacheError
impl From<ProcessError> for RegistryCacheError
Source§fn from(source: ProcessError) -> Self
fn from(source: ProcessError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for RegistryCacheError
impl !UnwindSafe for RegistryCacheError
impl Freeze for RegistryCacheError
impl Send for RegistryCacheError
impl Sync for RegistryCacheError
impl Unpin for RegistryCacheError
impl UnsafeUnpin for RegistryCacheError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of [
ToCompactString::to_compact_string()] Read more§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a [
CompactString]. Read more