Trait VolumesApi

Source
pub trait VolumesApi: Send + Sync {
    // Required methods
    fn volume_create_libpod(
        &self,
        create: Option<VolumeCreateOptions>,
    ) -> Pin<Box<dyn Future<Output = Result<VolumeConfigResponse, Error>> + Send>>;
    fn volume_delete_libpod(
        &self,
        name: &str,
        force: Option<bool>,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
    fn volume_exists_libpod(
        &self,
        name: &str,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
    fn volume_inspect_libpod(
        &self,
        name: &str,
    ) -> Pin<Box<dyn Future<Output = Result<VolumeConfigResponse, Error>> + Send>>;
    fn volume_list_libpod(
        &self,
        filters: Option<&str>,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<VolumeConfigResponse>, Error>> + Send>>;
    fn volume_prune_libpod(
        &self,
        filters: Option<&str>,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<PruneReport>, Error>> + Send>>;
}

Required Methods§

Source

fn volume_create_libpod( &self, create: Option<VolumeCreateOptions>, ) -> Pin<Box<dyn Future<Output = Result<VolumeConfigResponse, Error>> + Send>>

Source

fn volume_delete_libpod( &self, name: &str, force: Option<bool>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>

Source

fn volume_exists_libpod( &self, name: &str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>

Source

fn volume_inspect_libpod( &self, name: &str, ) -> Pin<Box<dyn Future<Output = Result<VolumeConfigResponse, Error>> + Send>>

Source

fn volume_list_libpod( &self, filters: Option<&str>, ) -> Pin<Box<dyn Future<Output = Result<Vec<VolumeConfigResponse>, Error>> + Send>>

Source

fn volume_prune_libpod( &self, filters: Option<&str>, ) -> Pin<Box<dyn Future<Output = Result<Vec<PruneReport>, Error>> + Send>>

Implementors§