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)
- 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
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.
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.
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.
- String() for colorized output
- JSON() for json marshalled output
All messages should adhere to this interface unless its
explicitly not necessary in some cases.