Skip to content

xetdata/docker-volume-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"

About

Rust package to help create Docker Volumes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages