Trait VolumesCompatApi
Source pub trait VolumesCompatApi: Send + Sync {
// Required methods
fn volume_create(
&self,
create: Option<VolumeCreate>,
) -> Pin<Box<dyn Future<Output = Result<Volume, Error>> + Send>>;
fn volume_delete(
&self,
name: &str,
force: Option<bool>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn volume_inspect(
&self,
name: &str,
) -> Pin<Box<dyn Future<Output = Result<Volume, Error>> + Send>>;
fn volume_list(
&self,
filters: Option<&str>,
) -> Pin<Box<dyn Future<Output = Result<ListResponse, Error>> + Send>>;
fn volume_prune(
&self,
filters: Option<&str>,
) -> Pin<Box<dyn Future<Output = Result<VolumesPruneReport, Error>> + Send>>;
}