pub struct Client { /* private fields */ }Implementations§
Source§impl Client
impl Client
pub fn new(config: ClientConfig) -> Self
pub async fn pull_image_manifest( &self, reference: &Reference, auth: &RegistryAuth, ) -> Result<(OciImageManifest, Option<String>), OciError>
pub async fn pull_blob<W: AsyncWrite + Unpin + Send>( &self, reference: &Reference, descriptor: &OciDescriptor, auth: &RegistryAuth, writer: &mut W, ) -> Result<(), OciError>
pub async fn blob_exists( &self, reference: &Reference, digest: &str, auth: &RegistryAuth, ) -> Result<bool, OciError>
pub async fn push_blob( &self, reference: &Reference, auth: &RegistryAuth, data: &[u8], digest: &str, ) -> Result<(), OciError>
pub async fn push_blob_stream<R: AsyncRead + Unpin + Send>( &self, reference: &Reference, auth: &RegistryAuth, reader: &mut R, digest: &str, chunk_size: usize, total_size_bytes: Option<u64>, reporter: Option<ProgressReporterHandle>, progress: Option<Arc<AtomicU64>>, ) -> Result<(), OciError>
pub async fn push_manifest( &self, reference: &Reference, manifest: &OciImageManifest, auth: &RegistryAuth, ) -> Result<String, OciError>
pub async fn push_manifest_bytes( &self, reference: &Reference, media_type: &str, body: &[u8], auth: &RegistryAuth, ) -> Result<String, OciError>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Client
impl !UnwindSafe for Client
impl Freeze for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
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