docker-volume-rs
Overview
A helper package to create docker volumes in Rust, inspired by https://github.com/docker/go-plugins-helpers
Usage
- Implement the
VolumeDriver
async_trait
- Initialize a
VolumeHandler
with either TCP or Unix Sockets
let driver = new;
let handler = new;
- Call either
run_tcp
orrun_unix_socket
from theVolumeHandler
handler.run_tcp.await?;
Installation
Add the following to your Cargo.tom
[]
= "0.1.0"