GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - deis/object-storage-cli: A Command Line Tool for Utilizing Multiple Object Storage Systems from a Single Interface

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

78 Commits
78 Commits

Folders and files

NameName
Last commit message
Last commit date
actions
actions
 
 
config
config
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
glide.lock
glide.lock
 
 
glide.yaml
glide.yaml
 
 
main.go
main.go
 
 

Repository files navigation

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

About

A Command Line Tool for Utilizing Multiple Object Storage Systems from a Single Interface

Topics

unsupported

Resources

Readme
MIT license
Activity
Custom properties

Stars

6 stars

Watchers

12 watching

Forks

5 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.