From a63595c2c484a8b6c4770047e1c13a35e5821383 Mon Sep 17 00:00:00 2001 From: David Moles Date: Thu, 10 Jan 2019 17:43:16 -0800 Subject: [PATCH] Add swift example --- cmd/check.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cmd/check.go b/cmd/check.go index ce918ea..0c5b606 100644 --- a/cmd/check.go +++ b/cmd/check.go @@ -31,15 +31,19 @@ const ( with the AWS_CONFIG_FILE environment variable. Credentials can also be specified with the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables. + + Note that for OpenStack Swift, the API username and key must be specified + with the SWIFT_API_USER and SWIFT_API_KEY environment variables, and the + endpoint URL is mandatory. ` // TODO: add Minio example(s) example = ` cos check https://s3-us-west-2.amazonaws.com/www.dmoles.net/images/fa/archive.svg cos check https://s3-us-west-2.amazonaws.com/www.dmoles.net/images/fa/archive.svg -x c99ad299fa53d5d9688909164cf25b386b33bea8d4247310d80f615be29978f5 - cos check https://s3-us-west-2.amazonaws.com/www.dmoles.net/images/fa/archive.svg -a md5 -x eac8a75e3b3023e98003f1c24137ebbd cos check s3://www.dmoles.net/images/fa/archive.svg -e https://s3.us-west-2.amazonaws.com/ -a md5 -x eac8a75e3b3023e98003f1c24137ebbd - cos check s3://mrt-test/inusitatum.png --endpoint http://127.0.0.1:9000/ --algorithm md5 --expected cadf871cd4135212419f488f42c62482` + cos check s3://mrt-test/inusitatum.png --endpoint http://127.0.0.1:9000/ --algorithm md5 --expected cadf871cd4135212419f488f42c62482 + SWIFT_API_USER= SWIFT_API_KEY= cos check 'swift://distrib.stage.9001.__c5e/ark:/99999/fk4kw5kc1z|1|producer/6GBZeroFile.txt' -e http://cloud.sdsc.edu/auth/v1.0` ) // ------------------------------------------------------------