Storj client written in Golang

in #blockchain7 years ago

Storj

Although it seems reinventing the wheel, I made another Storj client to understand Storj's protocol. It’s still private beta but it works as the following screen shots.

create command creates a new bucket with a given name.
creating a new bucket

upload command uploads files in parallel. You can choose any shard size. In the screen shot, 8 MiB is used.

uploading a file

USAGE:
   commands upload [command options] <bucket ID|name> <file path> [<file name>]

DESCRIPTION:
   This command uploads a file to the given bucket with the given file name.
If the file name is omitted, the same file name of the uploading file will be used.

file-encryption.type and file-encryption.key in the config file will be used to
encrypt the given file. You can specify another encryption algorithm and key
with --enc-type and --enc-key flags.

OPTIONS:
   --mime-type TYPE, -t TYPE  MIME TYPE of the uploading file (if not given, detected automatically)
   --enc-type TYPE, -e TYPE   overwrite encryption type in config by TYPE
   --enc-key Key, -k Key      overwrite encryption key in config by Key

download command downloads a file in parallel.
downloading a file

USAGE:
   commands download [command options] <bucket ID|name> <file ID|name> [<dest path>]

DESCRIPTION:
   This command downloads a file identified by the given bucket ID/name and file ID/name.
The downloaded file will be stored in the given dest path. If the dest path will
be omitted, this command stores the file in the current directory with the same
name of the downloading file.

file-encryption.type and file-encryption.key in the config file will be used to
decrypt the file. You can specify another encryption algorithm and key with
--enc-type and --enc-key flags.

OPTIONS:
   --enc-type TYPE, -e TYPE  overwrite encryption type in config by TYPE
   --enc-key Key, -k Key     overwrite encryption key in config by Key

list and delete commands show and delete buckets and files, respectively.
listing buckets and files

deleting files and buckets

Sort:  

Thank you.upvote with resteem

Hello there, SexyWhaleBot is a powering-up bot designed to help minnows grow.

SexyWhaleBot provides:

  • A free upvote to 8 randomly selected recent post upvoters once per day
  • A free upvote to 3 randomly selected followers once per day
  • A free resteem to a couple of notable curators once per week (top curators can be seen here)

In order to live up to his name, SexyWhaleBot once per day randomly selects and posts a compilation of sexy girls from its well-sorted libraries.

Take your chance and be among the first supporters of SexyWhaleBot – until the word is spread, it will be very easy to get the free upvotes and relatively easy to get the free resteems.

Have a sexy and profitable day! : ]

Congratulations @nemufox! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Do not miss the last post from @steemitboard:

SteemitBoard supports the SteemFest⁴ Travel Reimbursement Fund.
Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Coin Marketplace

STEEM 0.19
TRX 0.19
JST 0.034
BTC 89803.98
ETH 3102.93
USDT 1.00
SBD 2.81