pub trait Volumes:
HasConfig
+ Send
+ Sync {
// Provided methods
fn volume_delete_libpod<'a>(
&'a self,
name: &'a str,
params: Option<VolumeDeleteLibpod>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>> { ... }
fn volume_exists_libpod<'a>(
&'a self,
name: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>> { ... }
fn volume_inspect_libpod<'a>(
&'a self,
name: &'a str,
) -> Pin<Box<dyn Future<Output = Result<VolumeConfigResponse, Error>> + Send + 'a>> { ... }
fn volume_create_libpod<'a>(
&'a self,
create: VolumeCreateOptions,
) -> Pin<Box<dyn Future<Output = Result<VolumeConfigResponse, Error>> + Send + 'a>> { ... }
fn volume_list_libpod<'a>(
&'a self,
params: Option<VolumeListLibpod<'a>>,
) -> Pin<Box<dyn Future<Output = Result<Vec<VolumeConfigResponse>, Error>> + Send + 'a>> { ... }
fn volume_prune_libpod<'a>(
&'a self,
params: Option<VolumePruneLibpod<'a>>,
) -> Pin<Box<dyn Future<Output = Result<Vec<PruneReport>, Error>> + Send + 'a>> { ... }
}Available on crate feature
v5 only.Provided Methods§
Sourcefn volume_delete_libpod<'a>(
&'a self,
name: &'a str,
params: Option<VolumeDeleteLibpod>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn volume_delete_libpod<'a>( &'a self, name: &'a str, params: Option<VolumeDeleteLibpod>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
DELETE /libpod/volumes/{name}
Remove volume
Sourcefn volume_exists_libpod<'a>(
&'a self,
name: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn volume_exists_libpod<'a>( &'a self, name: &'a str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
GET /libpod/volumes/{name}/exists
Volume exists
Check if a volume exists
Sourcefn volume_inspect_libpod<'a>(
&'a self,
name: &'a str,
) -> Pin<Box<dyn Future<Output = Result<VolumeConfigResponse, Error>> + Send + 'a>>
fn volume_inspect_libpod<'a>( &'a self, name: &'a str, ) -> Pin<Box<dyn Future<Output = Result<VolumeConfigResponse, Error>> + Send + 'a>>
GET /libpod/volumes/{name}/json
Inspect volume
Sourcefn volume_create_libpod<'a>(
&'a self,
create: VolumeCreateOptions,
) -> Pin<Box<dyn Future<Output = Result<VolumeConfigResponse, Error>> + Send + 'a>>
fn volume_create_libpod<'a>( &'a self, create: VolumeCreateOptions, ) -> Pin<Box<dyn Future<Output = Result<VolumeConfigResponse, Error>> + Send + 'a>>
POST /libpod/volumes/create
Create a volume
Sourcefn volume_list_libpod<'a>(
&'a self,
params: Option<VolumeListLibpod<'a>>,
) -> Pin<Box<dyn Future<Output = Result<Vec<VolumeConfigResponse>, Error>> + Send + 'a>>
fn volume_list_libpod<'a>( &'a self, params: Option<VolumeListLibpod<'a>>, ) -> Pin<Box<dyn Future<Output = Result<Vec<VolumeConfigResponse>, Error>> + Send + 'a>>
GET /libpod/volumes/json
List volumes
Returns a list of volumes
Sourcefn volume_prune_libpod<'a>(
&'a self,
params: Option<VolumePruneLibpod<'a>>,
) -> Pin<Box<dyn Future<Output = Result<Vec<PruneReport>, Error>> + Send + 'a>>
fn volume_prune_libpod<'a>( &'a self, params: Option<VolumePruneLibpod<'a>>, ) -> Pin<Box<dyn Future<Output = Result<Vec<PruneReport>, Error>> + Send + 'a>>
POST /libpod/volumes/prune
Prune volumes