1
0
Fork 0
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:
Robin Appelman 2021-11-08 17:42:41 +01:00
commit e40b2438fc
4 changed files with 84 additions and 0 deletions

View file

@ -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);