mirror of
https://codeberg.org/icewind/haze.git
synced 2026-10-01 08:44:09 +02:00
add kaspersky service
This commit is contained in:
parent
4ce3d45e64
commit
e40b2438fc
4 changed files with 84 additions and 0 deletions
|
|
@ -8,6 +8,10 @@ use std::io::stdout;
|
|||
use std::io::Write;
|
||||
use termion::cursor;
|
||||
|
||||
pub async fn image_exists(docker: &Docker, image: &str) -> bool {
|
||||
docker.inspect_image(image).await.is_ok()
|
||||
}
|
||||
|
||||
pub async fn pull_image(docker: &Docker, image: &str) -> Result<()> {
|
||||
if let Err(_) = docker.inspect_image(image).await {
|
||||
println!("Pulling image {}", image);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue