pub struct RegistryClient { /* private fields */ }Expand description
Client for interacting with OCI registries
Implementations§
Source§impl RegistryClient
impl RegistryClient
pub fn new(auth: RegistryAuth) -> Self
pub fn parse_reference(image: &str) -> Result<Reference>
Sourcepub async fn fetch_manifest(
&self,
reference: &Reference,
options: &PullOptions,
) -> Result<ImageManifest>
pub async fn fetch_manifest( &self, reference: &Reference, options: &PullOptions, ) -> Result<ImageManifest>
Fetch the manifest for an image
Sourcepub async fn pull_layer(
&self,
reference: &Reference,
layer: &LayerDescriptor,
) -> Result<Vec<u8>>
pub async fn pull_layer( &self, reference: &Reference, layer: &LayerDescriptor, ) -> Result<Vec<u8>>
Pull a specific layer and return its content as bytes
Auto Trait Implementations§
impl Freeze for RegistryClient
impl !RefUnwindSafe for RegistryClient
impl Send for RegistryClient
impl Sync for RegistryClient
impl Unpin for RegistryClient
impl !UnwindSafe for RegistryClient
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