pub struct DockerHubClient { /* private fields */ }Expand description
Docker Hub 客户端
实现了与 Docker Hub 仓库交互的客户端,支持获取镜像 manifest 和下载镜像层。
Implementations§
Trait Implementations§
Source§impl Default for DockerHubClient
impl Default for DockerHubClient
Source§impl RegistryClient for DockerHubClient
impl RegistryClient for DockerHubClient
Source§async fn get_manifest(&self, image: &str, tag: &str) -> Result<ImageManifest>
async fn get_manifest(&self, image: &str, tag: &str) -> Result<ImageManifest>
获取镜像 Manifest Read more
Source§async fn download_layer(
&self,
image: &str,
digest: &str,
) -> Result<HttpResponse>
async fn download_layer( &self, image: &str, digest: &str, ) -> Result<HttpResponse>
下载镜像层 Read more
Source§async fn download_layer_with_range(
&self,
image: &str,
digest: &str,
start: u64,
) -> Result<HttpResponse>
async fn download_layer_with_range( &self, image: &str, digest: &str, start: u64, ) -> Result<HttpResponse>
下载镜像层(支持续点续传) Read more
Source§fn get_base_url(&self) -> &str
fn get_base_url(&self) -> &str
获取基本 URL Read more
Auto Trait Implementations§
impl Freeze for DockerHubClient
impl RefUnwindSafe for DockerHubClient
impl Send for DockerHubClient
impl Sync for DockerHubClient
impl Unpin for DockerHubClient
impl UnsafeUnpin for DockerHubClient
impl UnwindSafe for DockerHubClient
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