Commit Graph
72 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 11b286c149 mirror/cp: Remove aliases from being printed in json output. - fixes #1563
Additionally save expanded targetURL also part of session.
2016-01-08 18:44:39 -08:00
Anand Babu (AB) Periasamy 0bd1edfd8f new alias style and numerous cleanups. 2015-12-28 15:31:52 -08:00
Harshavardhana 9219e1a320 mirror/pipe: Enable mirror and pipe back now they do not work for multiple targets. 2015-11-29 14:43:11 -08:00
Harshavardhana 1badfc8a04 :mc: resumable downloads and support incomplete files on file system. 2015-11-28 18:00:53 -08:00
Anand Babu (AB) Periasamy 8fc138f3a0 organize global flags after cmd flag 2015-11-24 16:59:46 -08:00
Harshavardhana fd1cde749a mc: Fix setGlobalContext across all commands.
- Always set globals from context before validating input arguments.
- Add missing os.Exit(1) from console.Fatal{f,ln} which was
  accidentally removed from previous commits.

Fixes #1472
2015-11-22 00:33:35 -08:00
Anand Babu (AB) Periasamy 558c20e1e3 set globals from context from each command main 2015-11-21 18:26:58 -08:00
Anand Babu (AB) Periasamy 269ac7b105 global flags are replaced with command speific flags, but still retain global behavior 2015-11-21 14:20:00 -08:00
Anand Babu (AB) Periasamy 052f73f348 restructure globals and some bug fixes related to globals 2015-11-21 12:43:21 -08:00
Harshavardhana de9380dd9d doc: Improve examples. 2015-11-19 19:24:25 -08:00
Anand Babu (AB) Periasamy 123fde256e new recursive cp and session 2015-11-19 12:41:55 -08:00
Harshavardhana 569dd41ec5 session/mirror: cleanup session flags 2015-11-19 02:14:15 -08:00
Harshavardhana 58056b0331 session: Move to session v4 2015-11-19 01:14:16 -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
Krishna Srinivas fd82bbf453 exit mc on any critical error during cp/mirror #1378 2015-11-17 17:03:55 -08:00
Harshavardhana 0e56a3b900 cp/mirror: avoid catch all interface{} for readers. 2015-11-16 18:29:59 -08:00
Anand Babu (AB) Periasamy e1763a057b show help flag for mc 2015-11-16 12:52:54 -08:00
Harshavardhana 7831917901 help: Re-write help style now each command has --help 2015-11-16 02:21:44 -08:00
Anand Babu (AB) Periasamy 39f7441790 fixes related to help handling 2015-11-15 20:05:58 -08:00
Anand Babu (AB) Periasamy d917951b58 review session code 2015-11-12 11:46:06 -08:00
Anand Babu (AB) Periasamy 3950402c89 review of cp ls mirror pipe and rm 2015-11-12 01:34:43 -08:00
Harshavardhana d6c16ad597 cp/mirror: cleanup - now support --force flag 2015-11-10 23:47:02 -08:00
Anand Babu (AB) Periasamy 970927cc6b simplify setting console theme 2015-11-10 16:45:32 -08:00
Harshavardhana 08c90a2c03 doc: Add google cloud storage 2015-11-09 23:46:46 -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
Anand Babu (AB) Periasamy 334e864eea Prints cleanup 2015-11-07 16:41:42 -08:00
Harshavardhana 540b76fb9c Update docs for share, session and config 2015-11-04 20:14:01 -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 26cb1e7ae3 Add new accounting reader fixes #1162
Just like how a progress bar keeps track of data transfer
and average speed. Accounting reader implements similar
functionalities for calculating average speed, total transferred.

This accounting information is printed at the end of the copy or mirror
operation in quiet mode.
2015-10-09 12:29:13 -07:00
Harshavardhana 6d95872ad8 Add new --colors option for choosing different coloring styles for console printing
Each command implements and interprets the following coloring styles

 - ``dark`` - default coloring style picks up palette colors Cyan, Red, Blue, White etc
 - ``light`` - lighter chooses white colored console printing.
 - ``nocolor`` - nocolor is for console printing without any colors.

All coloring internally use ASCII color schemes, portable across all known OS.
2015-10-07 17:08:42 -07:00
Harshavardhana dbe53325b0 Add SetCustomPalette rather than theme 2015-10-07 12:54:35 -07:00
Harshavardhana 87aadd20ec Improve mirror error message 2015-10-06 11:12:16 -07:00
Harshavardhana f86efb7c36 Fix a segfault in mc for progress bar theme init 2015-09-30 12:36:11 -07:00
Harshavardhana 15cf02643d Do not default to saving session on errors, instead save session for specific errors 2015-09-29 14:23:25 -07:00
Harshavardhana 6781591143 Rename newCpBar to newProgressBar, move setting console color for progress outside of console 2015-09-29 10:47:19 -07:00
Harshavardhana c9f2cf97bb Fix hang cp and mirror hang in --quiet and --json modes upon error 2015-09-29 00:32:07 -07:00
Harshavardhana ee65cf7ab8 Fix bugs related to cp, mirror code argument validation 2015-09-29 00:17:16 -07:00
Harshavardhana fe9f1b9032 Do not exit for common filesystem errors - for cp, mirror
- Broken Symlink
  - No Such file or directory, Permission Denied
  - Ignore broken directory symlinks
2015-09-28 14:29:36 -07:00
Harshavardhana 1e346fc118 Print friendly message rather than fatalIf and exit cleanly. 2015-09-25 20:52:16 -07:00
Krishna Srinivas 28ee8e56a5 Avoid syncing session datafile when there is no change to the datafile 2015-09-25 19:41:38 -07:00
Anand Babu (AB) Periasamy dc3a647dfe flicker free scanbar 2015-09-22 04:10:48 -07:00
Harshavardhana 36e2c1813d Each command messages now implement
- String() for colorized output
  - JSON() for json marshalled output

All messages should adhere to this interface unless its
explicitly not necessary in some cases.
2015-09-13 02:20:43 -07:00
Harshavardhana 8aba0aed50 Do not enforce mirror source to have ... convention, let it be recursive always 2015-09-01 15:43:57 -07:00
Harshavardhana aaec806897 Simplify help messages 2015-09-01 14:54:13 -07:00
Harshavardhana cbc9d96d50 Format help for all commands 2015-08-25 20:13:50 -07:00
Harshavardhana c48a98de62 Add proper comments. 2015-08-25 16:54:55 -07:00
Harshavardhana 1e67db0aef Handle errors and clearing previous outputs - json output shouldn't have colors 2015-08-24 17:17:11 -07:00
Harshavardhana bd547d9084 Make sure to colorize diff types properly, also handle proper newlines 2015-08-24 11:51:57 -07:00
Harshavardhana 492340b3d8 Recursively progress along with errors if possible 2015-08-23 02:30:47 -07:00