-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ pub mod image; | |
pub mod logs; | ||
pub mod traits; | ||
pub mod util; | ||
pub mod volume; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
use bollard::container::{ListContainersOptions, RemoveContainerOptions}; | ||
Check warning on line 1 in src/docker/volume.rs GitHub Actions / check / stable / clippyunused imports: `ListContainersOptions`, `RemoveContainerOptions`
Check warning on line 1 in src/docker/volume.rs GitHub Actions / check / beta / clippyunused imports: `ListContainersOptions`, `RemoveContainerOptions`
|
||
use chrono::prelude::DateTime; | ||
Check warning on line 2 in src/docker/volume.rs GitHub Actions / check / stable / clippyunused import: `chrono::prelude::DateTime`
Check warning on line 2 in src/docker/volume.rs GitHub Actions / check / beta / clippyunused import: `chrono::prelude::DateTime`
|
||
use chrono::Local; | ||
Check warning on line 3 in src/docker/volume.rs GitHub Actions / check / stable / clippyunused import: `chrono::Local`
|
||
use color_eyre::eyre::{bail, Context, Result}; | ||
Check warning on line 4 in src/docker/volume.rs GitHub Actions / check / stable / clippyunused imports: `Context`, `bail`
|
||
use serde::Serialize; | ||
use std::{ | ||
collections::HashMap, | ||
Check warning on line 7 in src/docker/volume.rs GitHub Actions / check / stable / clippyunused imports: `Duration`, `UNIX_EPOCH`, `collections::HashMap`
Check warning on line 7 in src/docker/volume.rs GitHub Actions / check / beta / clippyunused imports: `Duration`, `UNIX_EPOCH`, `collections::HashMap`
|
||
time::{Duration, UNIX_EPOCH}, | ||
}; | ||
use tokio::process::Command; | ||
Check warning on line 10 in src/docker/volume.rs GitHub Actions / check / stable / clippyunused import: `tokio::process::Command`
Check warning on line 10 in src/docker/volume.rs GitHub Actions / check / beta / clippyunused import: `tokio::process::Command`
|
||
|
||
use bollard::secret::ContainerSummary; | ||
Check warning on line 12 in src/docker/volume.rs GitHub Actions / check / stable / clippyunused import: `bollard::secret::ContainerSummary`
Check warning on line 12 in src/docker/volume.rs GitHub Actions / check / beta / clippyunused import: `bollard::secret::ContainerSummary`
|
||
|
||
use super::traits::Describe; | ||
Check warning on line 14 in src/docker/volume.rs GitHub Actions / check / stable / clippyunused import: `super::traits::Describe`
Check warning on line 14 in src/docker/volume.rs GitHub Actions / check / beta / clippyunused import: `super::traits::Describe`
|
||
|
||
#[derive(Debug, Clone, PartialEq, Serialize)] | ||
pub struct DockerVolume {} | ||
|
||
impl DockerVolume { | ||
pub async fn list(docker: &bollard::Docker) -> Result<Vec<Self>> {} | ||
Check failure on line 20 in src/docker/volume.rs GitHub Actions / check / stable / clippymismatched types
Check failure on line 20 in src/docker/volume.rs GitHub Actions / check / beta / clippymismatched types
|
||
} |