1
0
mirror of https://github.com/minio/mc.git synced 2025-11-19 09:42:25 +03:00
Commit Graph

75 Commits

Author SHA1 Message Date
Klaus Post
b436cd2436 mc find - allow absolute times (#5118)
For `--newer-than` and `--older-than`, allow using absolute times.

Example:

```
λ mc ls play/testbucket
[2025-01-22 09:57:12 CET] 676KiB STANDARD Daily checks Procedure for Portainer.docx
[2025-01-22 16:40:07 CET]  22KiB STANDARD dovrennost_mobilizaciya_0-2.docx

λ mc find -newer-than="2025-01-22 09:57:00 CET" play/testbucket
play/testbucket/Daily checks Procedure for Portainer.docx
play/testbucket/dovrennost_mobilizaciya_0-2.docx

λ mc find -newer-than="2025-01-22 09:57:13 CET" play/testbucket
play/testbucket/dovrennost_mobilizaciya_0-2.docx
```

We allow the same timestamp types as `--rewind` and add the printed type for easy copy+paste.
2025-01-22 22:51:15 -08:00
Anis Eleuch
63eb4a4609 lint: Fix new detected lint complaints (#5080) 2024-11-13 05:46:18 -08:00
Klaus Post
2c4e3ad46b Report errors and better file names for mc support inspect (#5062)
Check the returned stream for errors and show them. Don't upload/keep pointless data

Use the request alias to create a better file name...

Example:

```
λ mc support inspect play/testbucket/testdat/**
mc: <ERROR> Unable to download file data. GetRawData: No files matched the given pattern.
```

Previously the error would just be ignored.

```
λ mc support inspect --airgap play/testbucket/testdata/**
File data successfully downloaded as inspect-play_testbucket_testdata.enc
```

Previously all files would be called `inspect-data.enc`, which would just be difficult to distinguish.
2024-10-15 08:15:39 -07:00
Aditya Manthramurthy
d4b7b00d73 Bump up minio/pkg to v3 (#4940) 2024-05-23 00:59:47 -07:00
Sveinn
fe58afcd39 Large MC Update (new encryption flags, functional test suite, removal of session code, minor cleanup, vuln. updates ) (#4882) 2024-04-15 08:10:25 -07:00
Harshavardhana
2178568417 make STS support for 'mc' alias specific (#4771)
currently STS specific behavior is global,
`mc` however supports multiple aliases - we
need to make sure that `mc` treats this ENV
specific to an alias.
2023-11-26 01:35:13 -08:00
Harshavardhana
4724c024c6 support missing role-arn and role-session-name (#4763) 2023-11-15 14:45:58 -08:00
Anis Eleuch
d158b9a478 prom: Allow insecure TLS connections if --insecure is provided (#4716) 2023-10-13 18:57:03 -07:00
Aditya Manthramurthy
e2056fb057 Update to minio/pkg v2 (#4674) 2023-09-02 14:28:03 -07:00
Harshavardhana
1fbd97aa04 run gofumpt -extra on all source files (#4634) 2023-07-17 13:10:20 -07:00
Aditya Manthramurthy
5f39522e69 Add response details for policy attach/detach cmd (#4602)
For internal IDP.

Also updates madmin-go to v3 as part of this change

- Temporarily disable test_admin_users until minio side fix is merged
2023-06-19 12:31:19 -07:00
Anis Elleuch
1843bab500 subnet: Avoid general hard timeout for requests (#4478) 2023-02-21 09:32:38 -08:00
Poorna
a0c075b387 Remove mc admin bucket remote bandwidth command and introduce (#4430) 2023-02-10 12:50:11 -08:00
Harshavardhana
dbc1f6ada0 add support for upload/download limits (#4388) 2022-12-06 14:39:16 -08:00
Klaus Post
52a931bfa7 Add staticcheck to CI (#4386) 2022-12-05 08:32:04 -08:00
Aditya Manthramurthy
854b4f123f Bump up madmin-go to v2 (#4382) 2022-12-01 10:41:14 -08:00
adfost
fd7142e223 update license headers to 2022 (#4360) 2022-11-14 18:38:39 -08:00
Anis Elleuch
f85086b153 Use a pager for help output (#4245) 2022-09-28 11:28:02 -07:00
Harshavardhana
b34681d662 fix: use deadlineconn properly (#4249)
PR #4164 didn't use the set deadlines properly
2022-09-14 08:15:37 -07:00
Praveen raj Mani
c29c4a38a6 Implement mc ready to check if the cluster is ready or not (#4101)
Also adds option to check if the cluster has enough read quorum and if
the cluster is taken down for any maintenance.

Uses madmin.AnonymousClient for invoking the requests
2022-07-01 12:02:25 -07:00
Harshavardhana
d2960d67ce extend Go's time.ParseDuration to support days, weeks and years (#4116) 2022-06-13 04:18:38 -07:00
Ashish Kumar Sinha
d62c1e2418 Add admin prometheus metrics (#4049) 2022-05-05 23:38:16 -07:00
Anis 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
Harshavardhana
b2ff347c69 cleanup 'admin health' command (#3862)
- reach subnet, upon failure provide `--airgap` command line
  to allow them to upload report manually.

- use a proper httpClient when reaching out to subnet
  with a 10sec timeout, and also support custom proxies
  with self signed certs.

- also fix some error messages and cleanup help with correct
  wording and grammar.
2021-11-12 09:34:29 -08:00
Harshavardhana
ae271e7645 add new linters and fix unnecessary type conversions (#3835) 2021-10-14 15:33:31 -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
6c3ac00e18 update madmin to github.com/minio/madmin-go (#3710) 2021-05-06 13:33:17 -07:00
Shireesh Anjal
1f71fdc03a Add option to upload health report to Subnet (#3641)
Add an optional text flag `license` to the `subnet health`
command. If this flag is passed, upload the generated health report to
Subnet by passing the license key as auth.
2021-03-22 09:26:09 -07:00
Ritesh H Shukla
faa895dd75 Track remote replication bandwidth consumption (#3609) 2021-03-10 17:30:36 -08:00
Harshavardhana
f73987fc34 fix: invalid user-agent release tag for mc (#3575)
fixes #3529
2021-01-20 09:51:52 -08:00
Harshavardhana
41c804b179 fix: update to minio/pkg/console changes (#3545) 2020-12-20 10:10:29 -08:00
Harshavardhana
1dde65d9c0 fix: display objects endpoint with / properly (#3408) 2020-09-17 15:34:47 -07:00
Harshavardhana
93209e842c re-implement metadata handling to preserve nanosecs as well (#3402) 2020-09-12 10:20:03 -07:00
Anis Elleuch
7f550f9482 legalhold: Refactor & add versioning support (#3343) 2020-09-05 17:11:38 -07:00
Anis Elleuch
90dc31f6ba Move from mc config host to alias command (#3311)
```
mc alias set
   alias remove
   alias list
```

are new commands that replace mc config host sub-commands.

mc config host will still be available but hidden for backward
compatiblity. The JSON output is also kept if the user is running mc
config host command.
2020-07-28 10:26:41 -07:00
Anis Elleuch
a419bb4130 Use minio-go v7 and madmin master (#3295) 2020-07-14 11:15:19 -07:00
Harshavardhana
4989d51e2c fix: overwrite is implicit with active-active (#3268)
refactor lengthy options as mirrorOptions{} for
ease of readability and usage.
2020-06-22 23:41:24 -07:00
Harshavardhana
88223f96be simplify FS put behavior for partial files (#3246) 2020-06-08 12:26:03 -07:00
Harshavardhana
2e586e6b9d support session tokens as part of ENV (#3213) 2020-05-07 15:21:12 -07:00
Harshavardhana
f23f814764 fix: allow watch to use queueCh from parallel manager (#3180) 2020-04-19 10:59:05 -07:00
BigUstad
ab2500e2ef match S3 within URL in full appropriately (#3163)
Fixes #3140
2020-04-16 18:25:40 -07:00
Daniel Valdivia
4d36c1f8b8 Make NewS3Config and NewAdminFactory Public (#3138) 2020-04-02 19:41:31 -07:00
Harshavardhana
9663319e9e Update mc dependencies to recent dep change on MinIO (#3026) 2019-12-31 11:27:59 -08:00
Harshavardhana
69bea2eb96 Continue listing upon error during diff and mirror (#2988) 2019-12-08 14:34:52 -08:00
Ashish Kumar Sinha
42898064f2 Add options to preserve filesystem attributes (#2938) 2019-10-30 00:35:25 -07:00
Harshavardhana
31e5ac02bd Fix auto-completion code (#2819)
Reverts the code in #2812

Fixes #2816
2019-07-11 10:41:14 -07:00
Harshavardhana
f4bb0b8850 Update minio-go to latest release v6.0.26 (#2782) 2019-05-29 08:27:18 -07:00
poornas
ecdeb3934d Remove Insufficient permission error from ignored errors (#2755)
Remove Insufficient permission error from ignored list of errors.

Fixes #2752 -  When mirror fails due to insufficient
permissions of user on a bucket, this should be
displayed
2019-04-22 12:22:21 -07:00
ebozduman
83a9d8b91d Adds missing codebase MinIO and min.io changes (#2745) 2019-04-16 22:31:54 -07:00