Crates.io | docker-volume |
lib.rs | docker-volume |
version | 0.1.1 |
source | src |
created_at | 2023-10-23 20:38:13.069387 |
updated_at | 2023-10-25 19:48:09.984138 |
description | A Rust helper for docker volumes |
homepage | https://github.com/xetdata/docker-volume-rs |
repository | https://github.com/xetdata/docker-volume-rs |
max_upload_size | |
id | 1011712 |
size | 13,549 |
A helper package to create docker volumes in Rust, inspired by https://github.com/docker/go-plugins-helpers
VolumeDriver
async_trait#[async_trait]
impl VolumeDriver for XetDriver {
VolumeHandler
with either TCP or Unix Socketslet driver = XetDriver::new(args.mount_root);
let handler = VolumeHandler::new(driver);
run_tcp
or run_unix_socket
from the VolumeHandler
handler.run_tcp(tcp_args.port).await?;
Add the following to your Cargo.tom
[dependencies]
docker-volume = "0.1.0"