pub struct OciClient { /* private fields */ }Expand description
OCI registry client for image resolution and blob pulling.
Implementations§
Source§impl OciClient
impl OciClient
Sourcepub async fn resolve_digest(
&self,
image: &str,
platform: &Platform,
) -> Result<ResolvedImage>
pub async fn resolve_digest( &self, image: &str, platform: &Platform, ) -> Result<ResolvedImage>
Resolve an image reference to a digest for a specific platform.
Returns the manifest digest for the platform-specific image.
Sourcepub async fn pull_blob_by_descriptor(
&self,
reference: &Reference,
descriptor: &OciDescriptor,
dest: &Path,
) -> Result<()>
pub async fn pull_blob_by_descriptor( &self, reference: &Reference, descriptor: &OciDescriptor, dest: &Path, ) -> Result<()>
Pull a blob (layer) to a file using its descriptor.
After downloading, the blob’s SHA256 digest is verified against the expected digest from the descriptor. If verification fails, the file is deleted and an error is returned.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for OciClient
impl !RefUnwindSafe for OciClient
impl Send for OciClient
impl Sync for OciClient
impl Unpin for OciClient
impl UnsafeUnpin for OciClient
impl !UnwindSafe for OciClient
Blanket Implementations§
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