This commit replaces the UBI minimal with the
small and less bloated UBI micro image.
This reduces noise from security scanners flagging
components not used by mc and reduces the overall
size of the container.
Signed-off-by: Andreas Auernhammer <github@aead.dev>
Remove '.exe' (case insensitive) from executable name for consistent config folder.
Potentially breaking: If people (for whatever reason) used 'mc.exe', this will potentially break their setup.
Previously OlderThan and NewerThan was configured for day
which has been changed to Days, Hours and minutes.
Also, changed the `flag` in `find` command to be `newer-than` and `older-than` to be consistent with other commands.
Enable jq style color output in github.com/minio/mc/pkg/json
- Drop in replacement of encoding/json
- Bold struct keys in blue
- Strings in green
- Numbers in default color
- Indenting and spacing matches exact jq specifications
Additionally, color coding needs '\x1b[...m' to be whitelisted in encoding/json's parser
The probe package is no longer available in the Minio server
repo. This change just moves probe from the vendor directory to its
own dir under `pkg`.
This is a maintenance fix.
This PR brings following changes
- Brings streaming support for mc uploads.
- Brings support for copying objects upto 5TiB
as a consequence of ComposeObject implementation
in minio-go.
```
mc cp -r localhost\testbucket\bin C:\destination
```
Following syntax is supposed to copy only 'bin' inside C:\destination.
Due to url construction issues this leads to 'testbucket' instead being
copied as the top level directory.
With this fix the url construction becomes more cross platform friendly.
Outputs for recursive today
```
$ mc ls -r /tmp/value/
[2016-01-25 12:27:01 PST] 52B test.go
[2016-01-26 11:36:22 PST] 4.2KiB test.txt
[2016-01-26 11:45:22 PST] 102B test/
[2016-01-26 11:45:22 PST] 4.2KiB test/README.md
```
and Outputs for non recursive today differ lexically.
```
$ mc ls /tmp/value/
[2016-01-26 11:45:22 PST] 102B test/
[2016-01-25 12:27:01 PST] 52B test.go
[2016-01-26 11:36:22 PST] 4.2KiB test.txt
```
To fix this issue we need to capture the ending '/' as
well part of the names while sorting the output. This
patch addresses this problem.
- Fix 0byte file uploads to be not uploaded as multipart.
- Fix bucket requests to have a '/' at the end
for path style - fixes#1579
- Handle progress bar, if pb.Total is '0'.
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)