Skip to content

Commit

Permalink
Add swift example
Browse files Browse the repository at this point in the history
  • Loading branch information
David Moles committed Jan 11, 2019
1 parent 1f36d05 commit a63595c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmd/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -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=<user> SWIFT_API_KEY=<key> cos check 'swift://distrib.stage.9001.__c5e/ark:/99999/fk4kw5kc1z|1|producer/6GBZeroFile.txt' -e http://cloud.sdsc.edu/auth/v1.0`
)

// ------------------------------------------------------------
Expand Down

0 comments on commit a63595c

Please sign in to comment.