s3-client

command module
v0.0.0-...-7ce0129 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2016 License: MIT Imports: 6 Imported by: 0

README

s3client

Amazon s3 client using the goamz library.

Features

Resumable uploads

Uploads larger than 6MB are sent as multipart and can be resumed.

Uploads are resumed if the file being uploaded have the same name and the checksum matches with the parts already on S3.

if the checksum doesn't match the file will be overwritten on S3.

Usage

s3client.exe -b bucket_name -f file.zip -d s3/directory
Flags
  • -b S3 bucket name to upload to. Ex: my-s3-bucket
  • -f Full or relative local path to the file to be uploaded. Ex: C:\Path\to\file.exe
  • -d Directory to put the file on s3. Ex: my_dir (optional)
  • -r S3 bucket region. Ex: sa-east-1

If a directory is specified using the -d flag it will be created on S3 if not exists.

AWS Authentication

Authentication info is read from the enviroment: https://godoc.org/launchpad.net/goamz/aws#EnvAuth

Example:

SET AWS_ACCESS_KEY_ID=My_key_Id
SET AWS_SECRET_ACCESS_KEY=My_Secret_Id

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package progress implementes ReaderAtSeeker interface: https://godoc.org/launchpad.net/goamz/s3#ReaderAtSeeker It is used to displays progress as the data are read from the file.
Package progress implementes ReaderAtSeeker interface: https://godoc.org/launchpad.net/goamz/s3#ReaderAtSeeker It is used to displays progress as the data are read from the file.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL