Giter Club home page Giter Club logo

renterc's Introduction

renterd demo

Overview

Wraps the renterd API in a simple CLI interface.

Build

go build -o bin/ ./cmd/renterc

Usage

The environment variables RENTERD_API_ADDR and RENTERD_API_PASSWORD must be set to connect to a renterd instance.

List Contracts:

renterc contracts

Form Contract:

renterc contracts form ed25519:1fb61da55e8c54d6bc0fa0350b4eb5065af2a52485714a16680e7e21f686e2c7

By default, contracts are formed for 1 week and 1 GiB of upload and download. Duration can be changed with the --duration 1m flag and data can be changed with the --data 10GiB flag. Since renterd is still in development, it's recommended to only upload test data to small short duration contracts.

Upload Data:

Single File

renterc objects upload -m 1 -n 3 Big_Buck_Bunny_1080_10s_30MB.mp4

Uploads the file Big_Buck_Bunny_1080_10s_30MB.mp4 with 3x redundancy. A minimum of three contracts must be formed. -m and -n are optional and default to 1 (no redundancy). n is the total number of shards to upload, while m is the minimum number of shards required to reconstruct the file. For example, Sia's default redundancy would be -m 10 -n 30.

Multiple Files

If multiple file paths are provided, they will be efficiently packed together. This prevents wasting storage with small files due to Sia's 4MiB minimum sector size. Each file will still be available under an individual key for downloading, but deleting and repair become more complicated and may require reuploading some files.

renterc objects upload -m 1 -n 3 file_1.jpeg file_2.jpeg

Packs and uploads file_1.jpeg and file_2.jpeg with 3x redundancy.

Download Data:

renterc objects download Big_Buck_Bunny_1080_10s_30MB.mp4 ~/dest.mp4

Downloads the file Big_Buck_Bunny_1080_10s_30MB.mp4 from the network using the metadata stored in renterd's object store.

renterc's People

Contributors

n8maninger avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.