object-storage-cli

command module
v0.0.0-...-c4ae08b Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2018 License: MIT Imports: 4 Imported by: 0

README

Deis Workflow is no longer maintained.
Please read the announcement for more detail.
09/07/2017 Deis Workflow v2.18 final release before entering maintenance mode
03/01/2018 End of Workflow maintenance: critical patches no longer merged
Hephy is a fork of Workflow that is actively developed and accepts code contributions.

object-storage-cli

A Command Line (CLI) Tool for Utilizing Multiple Object Storage Systems from a Single Interface.

This CLI accepts a single flag called --storage-type. The value of that flag determines which object storage API to use, and the remaining sections in this document describe how the CLI gets the location, credentials and other information it needs to work with the specified system.

s3

If the storage type is s3, the CLI reads three files which specify access key, access secret and region. Each file location can be configured by an environment variable. Each environment variable and its default is listed below.

  • ACCESS_KEY_FILE (/var/run/secrets/deis/objectstore/creds/accesskey)
  • SECRET_KEY_FILE (/var/run/secrets/deis/objectstore/creds/secretkey)
  • REGION_FILE (/var/run/secrets/deis/objectstore/creds/region)
  • BUCKET_FILE (/var/run/secrets/deis/objectstore/creds/bucket)

gcs

If the storage type is gcs, the CLI reads two files which specify the bucket and GCS access key. Each file location can be configured by an environment variable. Each environment variable and its default is listed below.

  • KEY_FILE (/var/run/secrets/deis/objectstore/creds/key.json)
    • This file should be a JSON encoded object and contain a project-id key, which specifies the GCS project ID
  • BUCKET_FILE (/var/run/secrets/deis/objectstore/creds/bucket)

azure

If the storage type is azure, the CLI reads three files which specify the account name, account key and container. Each file location can be configured by an environment variable. Each environment variable and its default is listed below.

  • ACCOUNT_NAME_FILE (/var/run/secrets/deis/objectstore/creds/accountname)
  • ACCOUNT_KEY_FILE (/var/run/secrets/deis/objectstore/creds/accountkey)
  • CONTAINER_FILE (/var/run/secrets/deis/objectstore/creds/container)

minio

If the storage type is minio, the CLI assumes that it should use the AWS S3 API to talk to the minio server at a given address.

In this case, the CLI requires information on where the Minio server is located, along with the authentication/authorization information.

It gets the location information from environment variables, and assumes that any value that starts with $ is itself an environment variable. It also gets the auth information from three files whose locations are specified by environment variables as well. See below for the list of environment variables and their defaults.

  • S3_HOST ($DEIS_MINIO_SERVICE_HOST)
  • S3_PORT ($DEIS_MINIO_SERVICE_PORT)
  • REGION (us-east-1)
  • SECURE (false)
  • V4_AUTH (true)
  • ACCESS_KEY_FILE (/var/run/secrets/deis/objectstore/creds/accesskey)
  • ACCESS_SECRET_FILE (/var/run/secrets/deis/objectstore/creds/secretkey)
  • BUCKET_FILE (/var/run/secrets/deis/objectstore/creds/bucket)

Downloads

Every commit to the master branch gets tested and cross-compiled in Travis CI. The resulting binaries get uploaded to Google Cloud Storage. If you'd like to download the latest build, use the command in one of the sections below appropriate for your system.

64 Bit Mac OS X

curl -o object-storage-cli https://storage.googleapis.com/object-storage-cli/objstorage-latest-darwin-amd64
./object-storage-cli --version

32 Bit Mac OS X

curl -o object-storage-cli https://storage.googleapis.com/object-storage-cli/objstorage-latest-darwin-386
./object-storage-cli --version

64 Bit Linux

curl -o object-storage-cli https://storage.googleapis.com/object-storage-cli/objstorage-latest-linux-amd64
./object-storage-cli --version

32 Bit Linux

curl -o object-storage-cli https://storage.googleapis.com/object-storage-cli/objstorage-latest-linux-386
./object-storage-cli --version

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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