pub struct DockerToolManager { /* private fields */ }Expand description
Manages Docker CLI tool installation.
Implementations§
Source§impl DockerToolManager
impl DockerToolManager
Sourcepub fn new(
tools: Vec<ToolEntry>,
arch: impl Into<String>,
install_dir: PathBuf,
) -> Self
pub fn new( tools: Vec<ToolEntry>, arch: impl Into<String>, install_dir: PathBuf, ) -> Self
Create a new manager from parsed tool entries.
Sourcepub fn with_bundle_dir(self, dir: PathBuf) -> Self
pub fn with_bundle_dir(self, dir: PathBuf) -> Self
Set an app-bundle directory containing pre-built binaries.
When set, install_one will try to copy from this directory before
falling back to a CDN download.
Sourcepub async fn install_all(
&self,
progress: Option<&ProgressCallback>,
) -> Result<(), DockerToolError>
pub async fn install_all( &self, progress: Option<&ProgressCallback>, ) -> Result<(), DockerToolError>
Install all configured Docker tools.
For each tool: check cache → try bundle → download → verify → extract → chmod.
Sourcepub async fn validate_all(&self) -> Result<(), DockerToolError>
pub async fn validate_all(&self) -> Result<(), DockerToolError>
Validate that all tools are installed and checksums match.
Sourcepub fn install_dir(&self) -> &Path
pub fn install_dir(&self) -> &Path
Returns the install directory.
Auto Trait Implementations§
impl Freeze for DockerToolManager
impl RefUnwindSafe for DockerToolManager
impl Send for DockerToolManager
impl Sync for DockerToolManager
impl Unpin for DockerToolManager
impl UnsafeUnpin for DockerToolManager
impl UnwindSafe for DockerToolManager
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