Git Product home page Git Product logo

s3go's Introduction

s3go

s3go is a simple Golang port of the AWS S3 CLI. It was built as a Hack Week project with the primary objective being to learn some basic features of Go.

The CLI aims to use the concurrency features of Golang to improve performance for simple S3 tasks, such as copying files or restoring files from Glacier.

Installation

$ go get -u github.com/scruwys/s3go

Usage

$ s3go --help

golang cli for interacting with aws s3.

Usage:
  s3go [command]

Available Commands:
  cp          Copies a local file or S3 object to another location locally or in S3.
  help        Help about any command
  ls          List S3 objects and common prefixes under a prefix or all S3 buckets.
  mb          Creates an S3 bucket.
  mv          Moves a local file or S3 object to another location locally or in S3.
  presign     Generate a pre-signed URL for an Amazon S3 object.
  rb          Deletes an empty S3 bucket.
  restore     Restores S3 object(s) stored in Glacier.
  rm          Deletes an S3 object.

Flags:
      --debug                 Turn on debug logging.
      --endpoint-url string   Override command's default URL with the given URL.
  -h, --help                  help for s3go
      --no-verify-ssl         This option overrides the default behavior of verifying SSL certificates.
      --profile string        Use a specific profile from your credential file.
      --region string         The region to use. Overrides config/env settings. (default "us-east-1")

Use "s3go [command] --help" for more information about a command.

Every command has been implemented except for sync. Intial benchmarks show that most do not perform better than the existing awscli tool. More on that soon.

The primary difference is the addition of the --concurrency flag, which allows you to control how many goroutines are spun up to handle command executation:

s3go rm s3://my-test-bucket/20200101/tmp/ --recursive --concurrency 5

License

Released under the MIT license.

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.