pub struct VolumeList { /* private fields */ }Expand description
List volumes.
§Examples
use ironflow_ops_docker::volumes::VolumeList;
use ironflow_ops_docker::DockerClient;
use ironflow_core::operation::Operation;
let client = DockerClient::connect_local().unwrap();
let op = VolumeList::new(&client);
assert_eq!(op.kind(), "docker");Implementations§
Source§impl VolumeList
impl VolumeList
Sourcepub async fn run(
&self,
_ctx: &OperationContext,
) -> Result<VolumeListOutput, OperationError>
pub async fn run( &self, _ctx: &OperationContext, ) -> Result<VolumeListOutput, OperationError>
Execute and return a typed result.
§Errors
Returns OperationError::External if the Docker daemon is
unreachable.
Trait Implementations§
Source§impl Operation for VolumeList
impl Operation for VolumeList
Source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 OperationContext,
) -> Pin<Box<dyn Future<Output = Result<Value, OperationError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 OperationContext,
) -> Pin<Box<dyn Future<Output = Result<Value, OperationError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Execute the operation and return the result as JSON. Read more
Source§impl TypedOperation for VolumeList
impl TypedOperation for VolumeList
Source§type Output = VolumeListOutput
type Output = VolumeListOutput
The concrete output type that
Operation::execute produces.Auto Trait Implementations§
impl !RefUnwindSafe for VolumeList
impl !UnwindSafe for VolumeList
impl Freeze for VolumeList
impl Send for VolumeList
impl Sync for VolumeList
impl Unpin for VolumeList
impl UnsafeUnpin for VolumeList
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more