pub struct RegistryClientAdapter { /* private fields */ }
Expand description
Adapter that makes RegistryClient compatible with the unified transport API
Implementations§
Source§impl RegistryClientAdapter
impl RegistryClientAdapter
pub fn new(client: RegistryClient) -> Self
pub fn inner(&self) -> &RegistryClient
pub fn into_inner(self) -> RegistryClient
Trait Implementations§
Source§impl RegistryTransport for RegistryClientAdapter
impl RegistryTransport for RegistryClientAdapter
Source§fn check_api_version<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<ApiVersion>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn check_api_version<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<ApiVersion>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Check registry API version and capabilities
Source§fn authenticate<'life0, 'life1, 'async_trait>(
&'life0 self,
credentials: Option<&'life1 Credentials>,
) -> Pin<Box<dyn Future<Output = Result<Option<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn authenticate<'life0, 'life1, 'async_trait>(
&'life0 self,
credentials: Option<&'life1 Credentials>,
) -> Pin<Box<dyn Future<Output = Result<Option<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Authenticate with registry and get token
Source§fn get_manifest<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ManifestRequest,
) -> Pin<Box<dyn Future<Output = Result<ManifestResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_manifest<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ManifestRequest,
) -> Pin<Box<dyn Future<Output = Result<ManifestResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get manifest from registry
Source§fn put_manifest<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ManifestPutRequest,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn put_manifest<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ManifestPutRequest,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Put manifest to registry
Source§fn blob_exists<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 BlobRequest,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn blob_exists<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 BlobRequest,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check if blob exists in registry
Source§fn get_blob<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 BlobRequest,
) -> Pin<Box<dyn Future<Output = Result<BlobResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_blob<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 BlobRequest,
) -> Pin<Box<dyn Future<Output = Result<BlobResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get blob from registry
Source§fn put_blob<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 BlobPutRequest,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn put_blob<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 BlobPutRequest,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Upload blob to registry (supports chunked upload)
Source§fn mount_blob<'life0, 'life1, 'async_trait>(
&'life0 self,
_request: &'life1 BlobMountRequest,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn mount_blob<'life0, 'life1, 'async_trait>(
&'life0 self,
_request: &'life1 BlobMountRequest,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Mount blob from another repository (cross-repo blob mount)
List repository tags
Auto Trait Implementations§
impl Freeze for RegistryClientAdapter
impl !RefUnwindSafe for RegistryClientAdapter
impl Send for RegistryClientAdapter
impl Sync for RegistryClientAdapter
impl Unpin for RegistryClientAdapter
impl !UnwindSafe for RegistryClientAdapter
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