pub struct ImageService {}Expand description
镜像管理服务
提供镜像的构建、管理和操作功能。
Implementations§
Source§impl ImageService
impl ImageService
Sourcepub async fn build_image(
&self,
context_path: &str,
dockerfile: &str,
tag: &str,
) -> Result<String>
pub async fn build_image( &self, context_path: &str, dockerfile: &str, tag: &str, ) -> Result<String>
Sourcepub async fn list_images(&self) -> Result<Vec<String>>
pub async fn list_images(&self) -> Result<Vec<String>>
Sourcepub async fn remove_image(&self, image_id: &str) -> Result<()>
pub async fn remove_image(&self, image_id: &str) -> Result<()>
Auto Trait Implementations§
impl Freeze for ImageService
impl RefUnwindSafe for ImageService
impl Send for ImageService
impl Sync for ImageService
impl Unpin for ImageService
impl UnsafeUnpin for ImageService
impl UnwindSafe for ImageService
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