145 Commits
Author SHA1 Message Date
Klaus Post ed0b962588 Modernize + Go version bump + Pin linter (#5256)
* Upgrade go version in CI.
* Add toolchain to pin version.
* Add linter/fumpt as pinned version in tools.
* Run `go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest -fix -test ./...`
2025-11-05 04:20:36 -08:00
dorman 0019b7b83c fix: cp and mirror commands fail to be executed when the file length is 255 characters (#5114) 2025-01-21 02:19:00 -08:00
Mark Theunissen efa1b396f2 Add commands for managing Bucket CORS (#5019) 2024-08-22 08:46:05 -07:00
Aditya Manthramurthy d4b7b00d73 Bump up minio/pkg to v3 (#4940) 2024-05-23 00:59:47 -07:00
Harshavardhana 98af07b69c bring back the original progress bar (#4866)
also cleanup 'mc put/get' behavior
2024-03-02 16:13:08 -08:00
Sveinn b82f6c60b2 Removing un-used variables and fixing an error condition (#4737) 2023-10-30 08:43:44 -07:00
Aditya Manthramurthy e2056fb057 Update to minio/pkg v2 (#4674) 2023-09-02 14:28:03 -07:00
Poorna 5a5a9973c3 Change replicate status metrics to show additional info (#4582)
in `mc replicate status` for bucket replication
and `mc admin replicate status` for site replication.
2023-08-30 01:02:26 -07:00
Harshavardhana 1fbd97aa04 run gofumpt -extra on all source files (#4634) 2023-07-17 13:10:20 -07:00
Krishnan Parthasarathi 68a3d5adec Add updatedAt for ilm-rule-ls (#4579) 2023-05-26 09:37:48 -07:00
Anis Eleuch 5a0d5116f4 mirror: Fix removal of FS target without a trailing slash (#4560) 2023-05-04 11:10:16 -07:00
Harshavardhana 252421354c update functional tests for admin_users with 'policy commands' (#4508) 2023-03-19 20:49:16 -07:00
Klaus Post 52a931bfa7 Add staticcheck to CI (#4386) 2022-12-05 08:32:04 -08:00
adfost fd7142e223 update license headers to 2022 (#4360) 2022-11-14 18:38:39 -08:00
Taran Pelkey 68a36788aa Add od command (#4180) 2022-08-22 22:02:23 -07:00
Anis ElleuchandAnis Elleuch 554905ac46 rm: Fix successful message for operations on the filesystem (#4182)
Names of the removed files when mc operatres on the filesystem are
not shown properly. The code is splitting the removed path into bucket
and prefix which doesn't make sense for filesystem.

The commit will just send the path of the removed object.

Co-authored-by: Anis Elleuch <anis@min.io>
2022-08-03 08:33:04 -07:00
Klaus Post cb7f9b6db2 Add mc cat --tail and --offset (#4149)
Allow range requests for cat operations, either specifying tail or an absolute offset.

If tail is longer then fail, the entire file is listed.
2022-07-18 21:22:10 -07:00
Harshavardhana 6e2ed46cb4 add hidden force-delete option (#4097) 2022-05-30 12:51:43 -07:00
Krishnan Parthasarathi b5a0640899 Prefix version suspension (#4064) 2022-05-08 18:15:17 -07:00
Anis ElleuchandAnis Elleuch d9feb87286 Compute bucket/object correctly for some endpoints (#4040)
Removing an old code that calculates incorrectly the bucket and object
from the client-s3.targetURL. The old code assumed that
client-s3.targetURL can have this style
http://bucket.endpoint/prefix/object but this is not true.

client-s3.targetURL will always have this endpoint style
https://endpoint/bucket/object whenever vhost is enabled or not for a
given alias.

Co-authored-by: Anis Elleuch <anis@min.io>
2022-04-04 18:47:08 -07:00
Anis Elleuch cce6451b63 watch: Clean up watch when restarting mirror after an error (#3993)
Add cleanup for watch code when it exits and mirroring is restarted.
2022-02-25 20:15:21 -08:00
Klaus Post 2f42260f98 Add remote zip support to mc ls/cp/cat (#3977)
--zip flag is hidden for now
2022-02-15 03:09:39 -08:00
Poorna c579c0b403 Add subcommands to mc replicate resync (#3964)
This PR adds `start` and `status` subcommands for
managing replication resync
2022-02-13 15:36:24 -08:00
Anis Elleuch 0c58d62a1f Fix mirror with relative fs path (#3929)
mc diff <alias>/<bucket>/ ./dir/ is not calculated correctly because the
difference code relies on the format of the argument, for example,
whether it is dir/ or ./dir/ or ../my/dir/.

This commit will calculate the absolute path of the passed argument if
it is a filesystem path and uses it through the code.
2022-01-28 10:19:21 -08:00
Harshavardhana a59f9e4d30 add gofumpt support, automated cleanup (#3911) 2022-01-06 10:55:40 -08:00
Harshavardhana f06a0987a3 rm: print proper paths instead of just objectnames for S3 endpoints 2021-12-28 18:37:48 -08:00
Harshavardhana e08ded6d28 display when delete markers are created (#3904) 2021-12-28 17:48:54 -08:00
Harshavardhana ae271e7645 add new linters and fix unnecessary type conversions (#3835) 2021-10-14 15:33:31 -07:00
Anis Elleuch 1bcd5df300 Add ilm restore command (#3790) 2021-09-24 09:32:39 -07:00
ebozduman 5a8f677304 Windows support for copying local files to object storage (#3666) 2021-09-22 14:38:56 -07:00
Poorna Krishnamoorthy 6bf64d9704 Add multisite replication support in mc replicate cmd (#3766)
Also adding a flag to `mc replicate reset` to allow 
granular replication reset by target
2021-09-15 10:32:28 -07:00
Anis Elleuch 0667914d16 rb: --force flag forces bucket removal after BucketNotEmpty err (#3780)
Some users struggle to remove a bucket when they don't use recommended
setups, such as NFS disks.

This command will force bucket removal in server side, using
x-minio-force-delete during DELETE bucket call.
2021-08-23 07:10:41 -07:00
Harshavardhana c19d58bb88 add 'mc update' progress bar support (#3782) 2021-08-21 21:01:31 -07:00
Poorna Krishnamoorthy 2c52cdf27c Add flag to mc replicate for existing object replication (#3698)
This allows triggering a resyncing of previously
replicated objects when existing object replication is
enabled. It is useful in scenarios where replication target
is entirely lost and content needs to be replicated again.
2021-06-12 18:02:25 -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
Poorna Krishnamoorthy 20e5905de0 Add mc replicate status command (#3684) 2021-04-21 14:05:17 -07:00
Anis Elleuch a093f822e2 Avoid automatic copy of storage class (#3681) 2021-04-06 10:24:34 -07:00
Anis Elleuch e13737383f mirror: FS should ignore some non supported S3 events (#3554)
Bucket creation & removal are events only supported by MinIO server and
they are not meaningful for FS. Just ignore them at FS level and avoid
reporting an error.
2020-12-30 07:02:10 -08:00
Harshavardhana 681cbb06de use directly S3 event types instead of re-defining them (#3511) 2020-11-30 09:10:34 -08:00
Harshavardhana 3792e9f906 multiple bug fixes for mirror, ls, rm (#3491)
- fixes errant top level directory creation, regression introduced in #3313
- fixes `mc ls -r` regression introduced in #3476
- fixes other bugs such as `mc mirror` would perpetually hang if the
  destination bucket doesn't exist, create and proceed instead.
- removes DirOpt style implementations for List, ListIncompleteUploads
  these are not useful anymore.
2020-11-15 13:24:00 -08:00
Cesar N 7f2df96e48 Change ListOptions' fields to public (#3433) 2020-10-01 09:50:56 -07:00
Poorna Krishnamoorthy 1ca2182203 Change mc stat output format for bucket info (#3318) 2020-09-30 13:07:19 -07:00
Harshavardhana 93209e842c re-implement metadata handling to preserve nanosecs as well (#3402) 2020-09-12 10:20:03 -07:00
Anis Elleuch af6cff00a5 retention: Refactor and add support of versioning (#3347) 2020-09-06 10:33:15 -07:00
Anis Elleuch 7f550f9482 legalhold: Refactor & add versioning support (#3343) 2020-09-05 17:11:38 -07:00
Anis Elleuch a104aa1cb2 tag: Add --version-id support (#3364) 2020-08-25 21:40:09 -07:00
Anis Elleuch b1ca6482d5 share: Support --version-id in Download command (#3365) 2020-08-21 00:08:55 -07:00
kannappanr 588a8fcd17 rename versioning to version (#3345) 2020-08-07 13:32:11 -07:00
poornas 069968c8aa Change replicate command cli (#3335) 2020-08-07 08:15:27 -07:00