Commit Graph
23 Commits
Author SHA1 Message Date
Harshavardhana a769ce6439 mc: Vendorize to new API changes.
This vendorization uses the new set of API changes which
we are brought in.

With this new change Bucket regions are handled transparently
without any region lookup or local map. This makes overall code
seamless and easy to use.

Fixes - #1541 (cp corruption while uploading large files to s3)
Fixes - #1542 (cp checkCopySyntax failed)
Fixes - #1537 (regions will be handled seamelessly now for all buckets)
Fixes - #1538 (fixes access control policy for google cloud storage)
Fixes - #1547 (session resume completes without copying all the files)
Fixes - #1559 (poor network connectivity, causes timing out)
2016-01-23 23:53:27 -08:00
Harshavardhana 841c65c867 share: Move to --recursive instead of --starts-with for consistency.
- if URL ends with "/" and no --recursive option exit properly.
- if recursive is given no matter what key is specified it is regarded
  as prefix.
- if no recursive option and no "/" suffix is provided is treated as
  exact object name.
2015-11-24 21:22:53 -08:00
Harshavardhana aa3007bcd0 share/download: add --starts-with flag and remove '...' we don't have that anymore.
- Fixes bug when prefix is available and should be prepended to the key.
- Fixes another bug to avoid doing URL stat for upload, its not needed.

Fixes #1478
2015-11-23 12:33:08 -08:00
Harshavardhana c757cf1829 trace: Add missing traces. 2015-11-19 17:23:00 -08:00
Harshavardhana 34c9896d1d doc: Add various missing documentation across the codebase. 2015-11-18 12:52:46 -08:00
Harshavardhana d5dd4fb5bd json: JSON messages now have proper status field for all messages
Fixes - #1369
2015-11-18 00:24:32 -08:00
Anand Babu (AB) Periasamy 2db255c276 recursive and directory based sharing 2015-11-17 20:32:40 -08:00
Anand Babu (AB) Periasamy d43416ca17 fix coloring bug in json message 2015-11-17 11:31:37 -08:00
Anand Babu (AB) Periasamy 365a7579bf share rewrite 2015-11-14 20:16:30 -08:00
Anand Babu (AB) Periasamy 970927cc6b simplify setting console theme 2015-11-10 16:45:32 -08:00
Harshavardhana 6a8224b4ab cleanup: Cleanup across code base.
- improve on code comments, needs more work this is a first cut.
- improve on naming conventions and simplification as and when
  necessary.
2015-11-08 13:22:32 -08:00
Harshavardhana b9033d1cac structure: Move client.Content to return a URL object
This change is needed to avoid extensive string manipulation
of URLs throughout the code base.

A client interface sends back data as a proper URL object,
this facilitates us to avoid unnecessary string manipulation
by making code more cleaner.
2015-11-07 22:12:52 -08:00
Harshavardhana f85e8827e1 Migrate mc package to minio-xl from minio/minio repo for probe/quick 2015-10-17 00:24:14 -07:00
Harshavardhana c4b9891c6e Always make sure to verify argument validation in checkSyntax**.
Cleanup share-upload.go to be aware of different argument validation.
2015-10-10 13:05:33 -07:00
Krishna Srinivas ef98d5963b mc share output cleanup 2015-10-09 16:56:25 -07:00
Krishna Srinivas aa53fb19f9 Break share main file into subcommands files - upload, download, list 2015-10-08 13:43:41 -07:00
Krishna Srinivas 7ec74a33ce Implement mc share upload and mc share download 2015-10-08 13:20:29 -07:00
Harshavardhana 4365adea52 Fix a null pointer bug in share URL migration 2015-09-14 13:03:03 -07:00
Harshavardhana 1a74e98b23 Share migrate to V2 version moving from type map to array. 2015-09-13 13:45:54 -07:00
Harshavardhana a14d526dcd Humanize time.duration properly 2015-09-12 21:51:29 -07:00
Harshavardhana 303b94e8c3 Create an empty urls.json if doesn't exist while reading. 2015-09-12 18:41:35 -07:00
Anand Babu (AB) Periasamy 47b8267b5f share url bug fixes 2015-09-12 18:12:33 -07:00
Harshavardhana 46b740f07c Store list of shared URLs locally until their expiry, this implements 'mc share list' command 2015-09-11 18:04:10 -07:00