pub struct UnifiedRegistryClient { /* private fields */ }
Expand description
Unified registry operations using both old and new APIs
Implementations§
Source§impl UnifiedRegistryClient
impl UnifiedRegistryClient
pub fn from_client(client: RegistryClient) -> Self
pub fn from_transport(transport: Box<dyn RegistryTransport>) -> Self
Sourcepub fn transport(&self) -> &dyn RegistryTransport
pub fn transport(&self) -> &dyn RegistryTransport
Get the transport interface
Sourcepub fn legacy_client(&self) -> Option<&RegistryClient>
pub fn legacy_client(&self) -> Option<&RegistryClient>
Get the legacy client if available (for backward compatibility)
Sourcepub async fn upload_blob_unified(
&self,
data: &[u8],
digest: &str,
repository: &str,
registry_url: &str,
token: Option<&str>,
) -> Result<String>
pub async fn upload_blob_unified( &self, data: &[u8], digest: &str, repository: &str, registry_url: &str, token: Option<&str>, ) -> Result<String>
Unified blob upload with automatic fallback
Sourcepub async fn download_blob_unified(
&self,
digest: &str,
repository: &str,
registry_url: &str,
token: Option<&str>,
) -> Result<Vec<u8>>
pub async fn download_blob_unified( &self, digest: &str, repository: &str, registry_url: &str, token: Option<&str>, ) -> Result<Vec<u8>>
Unified blob download with automatic fallback
Sourcepub async fn upload_manifest_unified(
&self,
manifest_data: &[u8],
repository: &str,
reference: &str,
registry_url: &str,
token: Option<&str>,
) -> Result<()>
pub async fn upload_manifest_unified( &self, manifest_data: &[u8], repository: &str, reference: &str, registry_url: &str, token: Option<&str>, ) -> Result<()>
Unified manifest operations
pub async fn download_manifest_unified( &self, repository: &str, reference: &str, registry_url: &str, token: Option<&str>, ) -> Result<Vec<u8>>
Auto Trait Implementations§
impl Freeze for UnifiedRegistryClient
impl !RefUnwindSafe for UnifiedRegistryClient
impl Send for UnifiedRegistryClient
impl Sync for UnifiedRegistryClient
impl Unpin for UnifiedRegistryClient
impl !UnwindSafe for UnifiedRegistryClient
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