Commit Graph
587 Commits
Author SHA1 Message Date
Klaus Post 147852cb37 Add go runtime profile type (#5098)
Available on AIStor.

Requires https://github.com/minio/madmin-go/pull/322

Lower minimum duration to 1 second. Useful (pretty much required) for traces.
2025-01-02 04:55:34 -08:00
Aditya Manthramurthy d4b7b00d73 Bump up minio/pkg to v3 (#4940) 2024-05-23 00:59:47 -07:00
Andreas Auernhammer 0440badc41 use ubi-micro instead of ubi-minimal (#4725)
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>
2023-10-23 21:51:09 -07:00
Aditya Manthramurthy e2056fb057 Update to minio/pkg v2 (#4674) 2023-09-02 14:28:03 -07:00
Harshavardhana 252421354c update functional tests for admin_users with 'policy commands' (#4508) 2023-03-19 20:49:16 -07:00
Harshavardhana 842a816385 use humanize.IBytes instead of humanize.Bytes (#4455) 2023-01-24 07:14:25 -08:00
Harshavardhana dbc1f6ada0 add support for upload/download limits (#4388) 2022-12-06 14:39:16 -08:00
Harshavardhana 27322636ae feat: Introduce 'mc batch' command (#4225) 2022-10-09 14:10:59 -07:00
Harshavardhana c7570bd54a introduce net.Conn deadlines to avoid hung connections (#4164)
fixes #4133
2022-07-27 08:21:05 -07:00
Klaus Post 0d5acd8820 Fix arm FreeBSD build (#4006)
Fixes #4005

Tested with `GOOS=freebsd GOARCH=arm go build .`.
2022-03-01 10:23:05 -08:00
Harshavardhana a59f9e4d30 add gofumpt support, automated cleanup (#3911) 2022-01-06 10:55:40 -08:00
Daniel Jakots b880f09931 fix: build on 32-bit systems (#3732) 2021-10-12 02:08:54 -07:00
Klaus Post 7e6f46fba6 Bump CI Go versions (#3811)
* Bump CI Go versions
* Fix changed fmt.
* Only check vet on one version.
* Bump minimum go version in go.mod
* Add Darwin test.

Replaces #3807
2021-09-28 09:19:52 -07:00
Harshavardhana 91efd0c066 migrate mc to minio/pkg (#3731)
remove all dependency for minio/minio
2021-05-29 09:30:33 -07:00
Harshavardhana 1402987ccb change license to AGPLv3 2021-05-11 17:45:08 -07:00
Harshavardhana 1dde65d9c0 fix: display objects endpoint with / properly (#3408) 2020-09-17 15:34:47 -07:00
John Hixson 64fb8f0a8f FreeBSD build fixes (#3404)
commit a80eca5af8 broke mc from building
on FreeBSD. This commit seperates out the files to have individual NetBSD files.
2020-09-15 09:46:57 -07:00
Harshavardhana 93209e842c re-implement metadata handling to preserve nanosecs as well (#3402) 2020-09-12 10:20:03 -07:00
Tobias Nygren a80eca5af8 fix mc build on NetBSD (#3358) 2020-08-13 15:09:23 -07:00
Harshavardhana fa520cbd1a enable golang-lint CI run and -race tests (#3247) 2020-06-08 05:55:10 -07:00
Kody A Kantor 7a26f993a2 resolve build issues on illumos (#3098) 2020-03-09 21:23:21 -07:00
Dmitry Wagin fd89251270 added pkg/disk/stat_freebsd.go (#3090) 2020-02-25 09:26:56 +05:30
Harshavardhana 28aae43c8c fix: best effort save permissions always (#3050) 2020-01-17 14:02:12 -08:00
Harshavardhana 9663319e9e Update mc dependencies to recent dep change on MinIO (#3026) 2019-12-31 11:27:59 -08:00
Ashish Kumar Sinha 42898064f2 Add options to preserve filesystem attributes (#2938) 2019-10-30 00:35:25 -07:00
Klaus Post aa4a4774da Fix Windows config path (#2898)
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.
2019-10-12 00:07:10 +05:30
Harshavardhana e978c71b7c Add staticcheck based builds (#2788)
Additionally this PR also supports
multi-platform builds to avoid cross
platform build issues.
2019-06-03 11:22:31 -07:00
ebozduman 83a9d8b91d Adds missing codebase MinIO and min.io changes (#2745) 2019-04-16 22:31:54 -07:00
Sidhartha Mani cfb25fe81b mc admin info changes (#2712) 2019-03-14 18:20:29 +05:30
Ashish Kumar Sinha 1761b338f9 OlderThan & NewerThan configured for Days, Hours and Minutes (#2614)
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.
2019-03-03 20:18:34 -08:00
Sidhartha Mani c75abbb3f9 use colorjson for all other mc outputs (#2683)
- Update to MarshalIndent instead of Marshal
- Allow unmarshalling
2019-02-28 14:33:13 -08:00
Sidhartha Mani 7bc792e745 Add json pretty print (#2661)
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
2019-02-05 11:52:33 +05:30
Harshavardhana 55f06077e5 Fix heal admin API to honor json/quiet flags correctly (#2370)
Update the madmin updated package as well

Fixes #2369
Fixes #2368
Fixes #2367
2018-01-27 23:19:52 +05:30
Aditya Manthramurthy 793cda2ca0 New Admin API client-side implementation (#2350) 2018-01-23 12:32:58 -08:00
Aditya Manthramurthy ca96cfc6e6 Move pkg/probe from vendor dir to package dir (#2236)
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.
2017-08-14 11:13:38 -07:00
Harshavardhana 5c135d25d6 mc: Vendorize minio-go this brings in streaming support. (#2203)
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.
2017-07-06 20:41:34 +01:00
Harshavardhana 939dad5900 Move the notify events to new package - rjeczalik/notify. (#1807)
* Move the notify events to new package - rjeczalik/notify.

* improving handling of notify events on linux specific (#3) @nl5887
2016-08-24 02:11:55 -07:00
Anis Elleuch ba088b8fc0 Move ioutils pkg from minio to mc and fix a sorting list bug (#1688)
* Move ioutils pkg from minio to mc

* Fix an important bug in sorting fs list in recursive mode
2016-04-17 12:20:48 -07:00
Harshavardhana 6f3cd87993 config: Config folder option should be honored.
The fix is to load config factory once again, to avoid looking for stale
scoped global variables. For example ``mcCustomConfigDir``

Fixes #1611
2016-02-17 15:59:55 -08:00
Harshavardhana fe5b2f97e3 fs/s3: move the code for fs and s3 out to the top-level.
Now the interface moves to the top level - fixes #1604
2016-02-16 11:27:42 -08:00
Super-User 5219fd59e8 porting: mc now properly works on solaris.
Fixes #1603
2016-02-15 15:03:40 -08:00
Harshavardhana f63de3cc30 mc: update to new changes in minio-go. 2016-02-07 18:03:32 -08:00
Harshavardhana 1dea194699 minio-go: Vendorize with new changes. 2016-02-05 23:10:09 -08:00
Harshavardhana fc668edadf urlAlias: Handle forward slashes on windows.
On windows
```
> mc ls s3/ --> Fails
```

Since most of our examples talk about '/', we should handle
this cleanly for windows.
2016-01-27 14:34:12 -08:00
Anand Babu (AB) Periasamy 01b0928989 Merge pull request #1588 from harshavardhana/handle-paths
cp/mirror: Handle path constructions properly across operating systems.
2016-01-26 18:27:13 -08:00
Harshavardhana 0a4fce57cf cp/mirror: Handle path constructions properly across operating systems.
```
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.
2016-01-26 18:21:34 -08:00
Harshavardhana 3b5dcd478a ls: Make recursive and non-recursive behave the same way
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.
2016-01-26 18:11:24 -08:00
Harshavardhana 9a40a67410 mc: Vendorize to new changes.
- 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'.
2016-01-25 01:00:47 -08:00
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
Anis Elleuch 3b35f44eba Fix ls error msg 2016-01-09 15:46:52 +01:00