gslite

command module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: MIT Imports: 12 Imported by: 0

README

gslite

A lightweight alternative to google cloud sdk gsutil.

Rationale

gsutil from google is a 200 mb dependency, and doesn't have reliable ways to check if an object doesn't exist.

gslite solves both of those problems.

Usage

gslite - Small google storage client.

  gslite cat [gs://BUCKET/OBJECT ...]
    Print the concatenation of storage objects.

  gslite put gs://BUCKET/OBJECT
    Upload stdin to bucket.

  gslite stat [-compact] gs://BUCKET/OBJECT
    Print object information to stdout. Exit code is 2
    if the object did not exist, exit code is 1 on other errors.

  gslite exists gs://BUCKET/OBJECT
    Exit cleanly if the given object exists.

  gslite list [-stat] gs://BUCKET/OBJECT
    Print all object information under the given path.

  gslite rm [-r] [-j=$NUM_PARALLEL] gs://BUCKET/OBJECT
    Remove an object, do nothing if it didn't exist.
    If -r is specified, will delete following the same
    rules that list follows.

  gslite mb -google-cloud-project PROJECT NAME
    Create a bucket.

  gslite rmb gs://BUCKET/
    Delete a bucket.

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