1 unstable release
0.1.1 | Oct 25, 2023 |
---|---|
0.1.0 |
|
#1307 in Filesystem
13KB
262 lines
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
#[async_trait]
impl VolumeDriver for XetDriver {
- Initialize a
VolumeHandler
with either TCP or Unix Sockets
let driver = XetDriver::new(args.mount_root);
let handler = VolumeHandler::new(driver);
- Call either
run_tcp
orrun_unix_socket
from theVolumeHandler
handler.run_tcp(tcp_args.port).await?;
Installation
Add the following to your Cargo.tom
[dependencies]
docker-volume = "0.1.0"
Dependencies
~12–21MB
~295K SLoC