pub trait OciResolver: Send + Sync {
// Required methods
fn resolve_digest<'life0, 'life1, 'async_trait>(
&'life0 self,
image: &'life1 OciRef,
) -> Pin<Box<dyn Future<Output = Result<String, OciError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn exists<'life0, 'life1, 'async_trait>(
&'life0 self,
image: &'life1 OciRef,
) -> Pin<Box<dyn Future<Output = Result<bool, OciError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn list_tags<'life0, 'life1, 'async_trait>(
&'life0 self,
image: &'life1 OciRef,
limit: Option<usize>,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, OciError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
}Expand description
Resolve digests and existence without coupling callers to a registry SDK.
Required Methods§
fn resolve_digest<'life0, 'life1, 'async_trait>(
&'life0 self,
image: &'life1 OciRef,
) -> Pin<Box<dyn Future<Output = Result<String, OciError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn exists<'life0, 'life1, 'async_trait>(
&'life0 self,
image: &'life1 OciRef,
) -> Pin<Box<dyn Future<Output = Result<bool, OciError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".