1
0
mirror of https://github.com/minio/mc.git synced 2025-11-10 13:42:32 +03:00
Commit Graph

71 Commits

Author SHA1 Message Date
Harshavardhana
2dc48e9dd3 Simplified build system and move to go1.10.1 (#2431)
minio server simplified its build system, this
change borrows the same technique to `mc` as well.

This PR fixes build messages and overall behavior
of our builds on travis and appveyor.
2018-04-13 13:57:07 -07:00
poornas
fe82b0381c change encryption key parsing to allow spaces in sse-c key (#2408)
Also vendoring in minio-go updates
2018-03-14 02:47:14 -07:00
poornas
0ede95b65e add encrypt option to cp, mirror,pipe,stat, cat and rm commands (#2400) 2018-03-08 17:18:41 +05:30
poornas
65e22bee24 Add api as option for mc config host add command. (#2381) 2018-02-10 14:39:12 -08:00
A. Elleuch
017dddef97 Add --newer-than & --older-than flags (#2142)
Use --newer-than & --older-than to select newer or older files
in copy, remove and mirroring operations.
2018-02-01 10:32:22 -08:00
A. Elleuch
99ee2a5042 Refactor {build,new}S3Config to remove a duplicate code (#2329) 2018-01-24 12:06:34 -08:00
Aditya Manthramurthy
793cda2ca0 New Admin API client-side implementation (#2350) 2018-01-23 12:32:58 -08:00
Harshavardhana
8fbbd0ee83 Fix and refactor MC_HOSTS_ env handling code (#2365)
Existing MC_HOSTS_<alias> was incorrectly placed
inside s3Config initialization code path which
leads to a situation where we loose the URL path
information.

Fixes #2364
2018-01-19 18:29:28 -08:00
Harshavardhana
ceb38130fc Fix ENV handling in mc (#2282)
Now ENV supports following style and doesn't require
a pre-requisite to have an entry in `config.json`

MC_HOSTS_myminio=http://minio:minio123@localhost:9000/

Notice signature style is auto-probed if env is set.
2017-11-13 16:29:10 -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
7f65ad4957 Add UTCNow() helper function (#2155)
This patch adds UTCNow() function which returns current UTC time.

This is equivalent of UTCNow() == time.Now().UTC()

Refer https://github.com/minio/minio/pull/3931
2017-05-16 18:50:54 +02:00
Harshavardhana
1ef242a5c1 Fix all cli commands to have consistent UI (#2040)
Fixes #2038
2017-02-27 11:44:26 -08:00
Anis Elleuch
94bd9564d0 admin: fatal message for unknown aliases (#1953)
This change issues a fatal message when the provided alias in cli is not known
2017-01-09 08:47:43 -08:00
Anis Elleuch
c6cb6595be admin: Simplify client initialization (#1951)
newAdminClient() is added to simplify initialization and take care of ssl connections
and tracing http request
2017-01-07 16:00:22 -08:00
Anis Elleuch
7cec8f2285 Add admin lock command (#1942) 2017-01-06 01:29:49 -08:00
Harshavardhana
853fea16b4 Enable support for s3 transfer acceleration. (#1946)
Simply use

```
mc config host add s3-accel https://s3-accelerate.amazonaws.com <access_id> <secret_id>
```

This is all is needed, if you have buckets which has s3 acceleration
enabled it just works transparently.

Fixes #1912
2017-01-05 01:36:01 -08:00
Harshavardhana
cf89d74561 Vendorize new minio-go code. (#1891)
This fixes #1889.

```sh
mc mirror -w
```

Now runs continous even when the source is not available.
Reconnects indefinitely in a binomially increasing fashion
and also allows jitter so that the retry has a nice
distribution as well.

This allows for 'mc mirror -w' to run continously without
further monitoring.
2016-11-20 16:31:53 -08:00
Harshavardhana
38aec4d875 mirror and cp should print size in --json mode. (#1890)
```sh
mc cp -r --json /usr/bin /tmp | jq .
...
...
{
  "status": "success",
  "source": "/usr/bin/gcm-viewer",
  "target": "/tmp/bin/gcm-viewer",
  "size": 87128,
  "totalCount": 2602,
  "totalSize": 677422730
}
```

This allows scripts to build progress around this data.
2016-11-20 14:46:24 -08:00
Anis Elleuch
2b24a7b520 Avoid seeking os.Stdin in client-fs Put() (#1834) 2016-09-25 10:19:13 -07:00
Anis Elleuch
fd34958ffa Add --insecure flag to skip certificate validation (#1814) 2016-09-01 18:36:00 -07:00
Harshavardhana
2ea2ec90d2 Rename mc --> cmd 2016-08-17 18:26:18 -07:00