docker-volume

Crates.iodocker-volume
lib.rsdocker-volume
version0.1.1
sourcesrc
created_at2023-10-23 20:38:13.069387
updated_at2023-10-25 19:48:09.984138
descriptionA Rust helper for docker volumes
homepagehttps://github.com/xetdata/docker-volume-rs
repositoryhttps://github.com/xetdata/docker-volume-rs
max_upload_size
id1011712
size13,549
Ajit Banerjee (port8080)

documentation

README

docker-volume-rs

Overview

A helper package to create docker volumes in Rust, inspired by https://github.com/docker/go-plugins-helpers

Usage

  1. Implement the VolumeDriver async_trait
#[async_trait]
impl VolumeDriver for XetDriver {
  1. Initialize a VolumeHandler with either TCP or Unix Sockets
let driver = XetDriver::new(args.mount_root);
let handler = VolumeHandler::new(driver);
  1. Call either run_tcp or run_unix_socket from the VolumeHandler
handler.run_tcp(tcp_args.port).await?;

Installation

Add the following to your Cargo.tom

[dependencies]
docker-volume = "0.1.0"

Commit count: 2

cargo fmt