Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.
/ torrentshare Public archive
forked from vimpunk/cratetorrent

A BitTorrent V1 engine library for Rust (and currently Linux)

Notifications You must be signed in to change notification settings

Qubit-9/torrentshare

 
 

Repository files navigation

Our Torrent Proof of Concept

So we forked this torrent library and build a http server on it. The http server defines its routes to open an endpoint for recieving requests to download torrentfile. The torrentfile is created on an extracted docker image binary. Binaries are created like docker save hello-world > hello_world.tar. Afterwards use the torrent client of your choice to create a torrentfile for it. The body

{
    "download_url" : "https://github.com/Qubit-9/homebrew-taps/releases/download/docker-test/testFile.tar.torrent", 
    "command" : "hi",
    "file_name" : "testFile.tar.torrent"
}

download_url: url to torrentfile to download

command: placeholder for future option to run a command after completed download

file_name: name of torrentfile to download

The download request is handled by the handler library. It executes the torrent downloading and then loads the docker image binary into local registry. Afterwards the docker image is run.

About

A BitTorrent V1 engine library for Rust (and currently Linux)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 92.0%
  • Shell 6.0%
  • HCL 1.7%
  • Other 0.3%