ibmjstart/slo-up

Name: slo-up

Owner: IBM jStart

Description: Tool for uploading massive data into OpenStack Object Storage

Created: 2016-11-08 19:34:49.0

Updated: 2016-11-08 19:35:23.0

Pushed: 2016-12-08 21:47:15.0

Homepage:

Size: 13

Language: Go

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

slo-up

standard-readme compliant

Tool for uploading massive data into OpenStack Object Storage

This utility is an example of using the swiftlygo pipeline api to build a data uploader for OpenStack Object Storage.

Table of Contents
Install
et github.com/ibmjstart/slo-up
Usage
Upload to IBM Bluemix

slo-up makes it easy to upload data into the Object Storage service on Bluemix. Navigate to the Object Storage instanct that you would like to use in the Bluemix web user interface and find the “Service Credentials” for your Object Storage instance. It should look like this:


uth_url": "https://identity.open.softlayer.com",
roject": "project_string",
rojectId": "project_id",
egion": "dallas",
serId": "user_id",
sername": "user_name",
assword": "password",
omainId": "domain_id",
omainName": "domain_name",
ole": "admin"

To upload a local file to a container (called container_name) in this object store with an SLO named object_name, you would invoke slo-up as follows:

up -url https://identity.open.softlayer.com/v3 -user user_name -p password -d domain_name -c container_name -o object_name -f path/to/local/file

Note that we had to append /v3 to the authentication URL.

Authentication Flags

The flags that you need to give slo-up vary with the authentication version of the Object Storage instance that you're trying to upload to. If you don't know the authentication version, the credentials that you are provided with should give you a clue.

up -url <auth-url> -user <username> -p <password> ...upload-flags...

The password is sometimes referred to as an API key. SoftLayer Object Storage uses this Authentication method.

Auth V2

For services supporting Auth V2, you will additionally need to provide a tenant id.

up ...auth-flags... -t <tenant-id> ...upload-flags...
Auth V3

For services supporting Auth V3, you will additionally need to provide a domain id.

up ...auth-flags... -d <domain-name> ...upload-flags...

IBM Bluemix uses this type of authentication.

Upload Flags

The other flags exist to provide upload options:

Contribute

PRs accepted.

Small note: If editing the README, please conform to the standard-readme specification.

License

Apache 2.0 © IBM jStart


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.