Storj client written in Golang

Words
178
Reading
1 min
Listen
Play
9y

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

Storj client written in Golang | Ecency