Anis Elleuch
ec734d0f71
Add --rewind flag for cat command ( #3321 )
2020-07-28 13:19:56 -07:00
Anis Elleuch
442facedd1
Implement rewind flag in ls and cp commands ( #3304 )
...
--rewind will go back in time and select specific object versions that are
the latest at the specified time.
--versions will display all the versions
cp will just ignore if the latest version is a delete marker
ls will print delete markers with a (deleted) at the end
2020-07-23 11:18:38 -07:00
Harshavardhana
f3c9e9172a
honor preserve flag during Copy operation ( #3299 )
...
continuation of #3285 which wasn't complete
2020-07-15 16:39:04 -07:00
Anis Elleuch
a419bb4130
Use minio-go v7 and madmin master ( #3295 )
2020-07-14 11:15:19 -07:00
ebozduman
5c713e5ecb
Adds support to preserve X-Amz-Meta-Mc-Attrs when os -> fs ( #3285 )
2020-07-03 15:31:27 -07:00
Harshavardhana
08685bae6a
make sure active/active enables watch by default ( #3271 )
...
- effectively use context everywhere
- effectively look for source-mtime in all
variations
- `mc diff` should do metadata diff as well
2020-06-23 16:56:08 -07:00
ebozduman
d5b6931a1e
Apply global context for all apis ( #3240 )
2020-06-16 16:55:31 -07:00
kannappanr
09f832f597
copyobject: Do not ignore storage class in the target ( #3232 )
...
Fixes #3230
2020-05-24 14:23:28 -07:00
Bala FA
4e3b501528
add --storage-class flag to pipe command. ( #3204 )
...
Fixes #3157
2020-05-06 23:06:01 -07:00
Harshavardhana
dc2ad27429
fix mirror crash if source is deleted ( #3206 )
2020-05-05 23:55:35 -07:00
Harshavardhana
b99c313366
cleanup legal-hold/retention and update docs ( #3197 )
2020-05-04 20:09:36 -07:00
Harshavardhana
24a72e4a33
fix add disable-multipart/md5 options for mirror ( #3174 )
2020-04-21 13:05:01 +05:30
kannappanr
e1617a504b
Canonicalize metadata recevied as part of events ( #3181 )
2020-04-19 10:10:40 -07:00
Harshavardhana
2d6a960f94
fix avoid multiple HEAD operations ( #3173 )
...
- Get() already has the metadata to preserve
- Stat() doesn't need to be sent multiple times
do preserve attributes, use it once.
2020-04-17 01:01:34 -07:00
Harshavardhana
4036009dc2
fix optimize content-type detection for only FS ( #3172 )
...
Also avoid a secondary Stat() operation during
GetObject(), when preserving the metadata
Fixes #3170
2020-04-16 19:03:02 -07:00
Anis Elleuch
59187f2ef7
s3: Use head API before listing in client.Stat() ( #3156 )
...
Stat() is supposed to return valid information for existing
objects and existing prefixes as well.
The current mechanism issues a listing request and searches
for the object or prefix in the returned list, but this could take
time if there are a lot of entries under a parent prefix.
The new commit changes the internal behavior but not the
functional output. It issues a HEAD request first, if there
is no object then assumes it is a prefix and does listing
in order to find it.
2020-04-16 16:23:37 -07:00
Nitish Tiwari
18f81e5458
cp: Add object lock related flags ( #3127 )
...
- Adds --retention-mode,--retention-duration &
--legal-hold flags in cp command
- Adds --bypass flag in rm command
2020-04-07 19:51:20 -07:00
Bala FA
3b31837927
add disableMultipart option to Copy() ( #3141 )
2020-04-03 20:14:05 -07:00
Daniel Valdivia
4d36c1f8b8
Make NewS3Config and NewAdminFactory Public ( #3138 )
2020-04-02 19:41:31 -07:00
César Nieto
a9e875b503
set S3Client struct as public ( #3139 )
2020-04-02 19:33:44 -07:00
Bala FA
51ef254a41
add --disable-multipart flag in cp ( #3135 )
2020-04-02 08:21:33 -07:00
Harshavardhana
b010699112
cleanup legacy metadata handling ( #3118 )
2020-03-19 17:00:20 -07:00
poornas
3230acae32
mc retention: add --recursive and --bypass flags. ( #3100 )
...
--bypass flag allows overriding governance if user
has override permissions
2020-03-19 12:24:09 -07:00
poornas
4e316c3a40
Remove duplicated API method(s) for object retention ( #2973 )
2019-11-27 09:44:39 -08:00
poornas
c2a771f51c
Handle PutObjectRetention notification events correctly ( #2966 )
2019-11-22 09:38:36 -08:00
Harshavardhana
6cfbc809cf
Add mirror command to compare metadata and copy ( #2965 )
...
mirror now uses the newly introduced
ListObjectsV2WithMetadata API in minio-go
2019-11-21 22:25:46 -08:00
poornas
3df8101903
Fix encrypt-key flag parsing ( #2955 )
2019-11-12 10:24:00 -08:00
Ashish Kumar Sinha
42898064f2
Add options to preserve filesystem attributes ( #2938 )
2019-10-30 00:35:25 -07:00
Harshavardhana
57a9c6fab2
Fix mc functional tests to work with new changed behavior ( #2901 )
...
- mc rm doesn't fail for SSE-C encrypted objects because
we use multi-object delete - this behavior is S3 compatible
- changes needed to ensure that keys are set appropriately
when doing server side copy.
2019-09-20 04:48:02 +05:30
Harshavardhana
dff077e34b
Add support for attr flag in mirror ( #2892 )
2019-09-19 08:22:45 -07:00
Ashish Kumar Sinha
1582b1cf35
Add support for passing non-printable charachter as key ( #2851 )
2019-08-29 16:57:04 -07:00
Harshavardhana
f4bb0b8850
Update minio-go to latest release v6.0.26 ( #2782 )
2019-05-29 08:27:18 -07:00
ebozduman
83a9d8b91d
Adds missing codebase MinIO and min.io changes ( #2745 )
2019-04-16 22:31:54 -07:00
Ashish Kumar Sinha
2e612b23d6
Add metadata in mc copy ( #2671 )
...
Example : mc cp --attr key1=value1,key2=value2
play/mybucket/burningman2011/ ~/latest/
2019-03-11 12:47:28 +05:30
Harshavardhana
59ef9fe468
Support SSE without keys ( #2626 )
2019-01-04 11:56:43 -08:00
Harshavardhana
45578f0ed2
Implement head command ( #2630 )
2018-12-27 13:17:44 -08:00
Harshavardhana
5117f74fce
Allow empty objects to be uploaded ( #2613 )
2018-11-28 17:14:07 +05:30
Harshavardhana
0992c3a50d
Fallback detecting filetype from magic numbers ( #2598 )
2018-11-16 07:45:46 -08:00
Kale Blankenship
8137e79d0c
Close readers returned by Client.Get ( #2595 )
...
Change Client.Get to return an io.ReadCloser instead of io.Reader
so that it can be closed.
2018-11-08 17:02:14 -08:00
Ryan Boehning
a8c97b467d
Replace legacy httplex import with current x/net/httpguts ( #2494 )
...
The import path of the httplex package has changed.
2018-07-29 00:45:12 -07:00
Harshavardhana
70dcf20d74
Pass down encrypt-key handling across command validators ( #2483 )
...
Currently even if the command supports encrypted objects,
the syntax verification would fail on them in certain
cases. Since syntax validation of source/targets doesn't
use the parsed encrypt key pairs. This PR fixes this
behavior.
2018-07-12 11:13:51 -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
Nitish Tiwari
ea580b0b65
Add storage-class support ( #2403 )
...
This PR adds storage-class support for mc cp and mirror command.
Storage class values are passed via the -storage-class or
--sc flag.
Fixes #1859
2018-03-03 10:28:53 -08:00
A. Elleuch
99ee2a5042
Refactor {build,new}S3Config to remove a duplicate code ( #2329 )
2018-01-24 12:06:34 -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
poornas
b64c8a3aa9
Copy metadata during mirror and cp peration ( #2347 )
...
Validate metadata key/values to filter out custom xattr
set on fs to prevent invalid http headers being sent in http request
by minio-go
2018-01-10 11:03:42 -08:00
poornas
ab6b2a83ac
Add new stat sub command ( #2275 )
2017-10-31 13:56:40 -07:00
poornas
a86080a0b7
Add context in Put api call for cp/mirror. ( #2291 )
2017-10-20 13:50:35 -07:00
poornas
224e602e59
Allow multipart threads to be configured via environment variable ( #2254 )
2017-10-02 19:45:08 -07: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