storing

command module
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: MIT Imports: 11 Imported by: 0

README

Storing

The storing is the cloud storage upload CLI. It may support AWS S3 if needed, but for now only GCS is supported.

GitHub Workflow Status GitHub Workflow Status GitHub Release MIT License Go Documentation codecov

Usage

$ go install github.com/linyows/storing@latest
$ storing ./testdata/example.jpg -bucket my-bucket-name -key ~/Downloads/my-project-credentials.yml
Blob ./testdata/example.jpg uploaded: https://storage.cloud.google.com/<my-bucket-name>/<hostname>/testdata/example.jpg

Options

The options are:

  -bucket string
        bucket name
  -key string
        credentials filepath (default "~/.config/storing.json")
  -logrotate
        search today's file for logrotate
  -prefix string
        object prefix (default "<hostname>/<lastdir>/<basename>")
  -timeout int
        timeout seconds for upload (default 50)

Author

linyows

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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