Harshavardhana
69c0d33543
support proper proxy for all transports ( #3290 )
...
fixes #3225
2020-07-10 22:17:54 -07:00
ebozduman
0fcd10d793
Adds support to preserve X-Amz-Meta-Mc-Attrs when os -> fs ( #3285 )
2020-07-10 22:17:54 -07:00
Anis Elleuch
bb3c0d45f2
s3: Use list object v1 in case of GCS ( #3274 )
2020-06-24 06:31:59 -07:00
ebozduman
ec9b92cbb7
Apply global context for all apis ( #3240 )
2020-06-19 14:31:19 -07:00
poornas
975423abe2
Fix mc cp when legal-hold or retention is set ( #3257 )
...
- Send Content-MD5 header if default retention is set on the bucket
- legal-hold needs to be case insensitive
2020-06-16 11:28:25 -07:00
Anis Elleuch
133dd1f7da
add helpers for repeated code in bucket and object info ( #3251 )
...
Use bucketInfo2ClientContent() and objectInfo2ClientContent()
extensively to avoid code duplication.
2020-06-12 07:40:49 -07:00
Harshavardhana
bf731558cd
remove panic on double close watch channel ( #3223 )
2020-05-19 14:31:24 -07:00
Harshavardhana
3b479cf92e
refactor cleanup ilm command to make it more maintainable ( #3220 )
2020-05-15 16:54:34 -07:00
Bala FA
09c31c4ab2
add bucket tagging support ( #3182 )
2020-05-15 12:10:50 -07:00
P R
72c8e92459
Add ilm command. ( #3097 )
2020-05-14 08:55:21 -07:00
César Nieto
a6d82862cd
make WatchOptions and WatchObject fields public ( #3218 )
2020-05-12 10:42:34 -07:00
Harshavardhana
2e586e6b9d
support session tokens as part of ENV ( #3213 )
2020-05-07 15:21:12 -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
df8bb795ba
refactor watch mirror for performance ( #3196 )
2020-05-02 12:07:21 -07:00
Anis Elleuch
2018319125
sql: Adapt the code to the change in minio-go SQL API ( #3161 )
2020-04-24 09:34:51 -07:00
Harshavardhana
24a72e4a33
fix add disable-multipart/md5 options for mirror ( #3174 )
2020-04-21 13:05:01 +05:30
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
BigUstad
ab2500e2ef
match S3 within URL in full appropriately ( #3163 )
...
Fixes #3140
2020-04-16 18:25:40 -07:00
Harshavardhana
5c4add2000
optimize client admin transport ( #3168 )
2020-04-16 18:24:11 -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
Daniel Valdivia
42023a1298
allow mc event remove to remove individual events ( #3145 )
2020-04-14 18:44:29 -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
Harshavardhana
8cae137525
fix all the build errors
2020-04-03 22:22:20 -07:00
Bala FA
3b31837927
add disableMultipart option to Copy() ( #3141 )
2020-04-03 20:14:05 -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
poornas
25de1da81b
Add legalhold command ( #3095 )
2020-03-31 09:18:26 -07:00
BigUstad
71eb7f6689
Add tag command ( #3117 )
2020-03-22 20:59:49 -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
Harshavardhana
24e7caa146
Use listObjectsV1 for GCS S3 implementation ( #3101 )
...
Fixes #3073
2020-03-03 23:13:10 +03:00
Harshavardhana
67e90b8fcb
fix handling of directories in Stat ( #3092 )
...
Fixes #3089
Fixes #3091
2020-02-25 18:08:20 +05:30
ebozduman
3862184a8a
honor prefix for object and directory names in 'rm -r' ( #3012 )
2020-02-19 10:42:41 +05:30
Harshavardhana
5d9a04bac6
allow mirror to copy zero byte file ( #3084 )
...
this PR also cleans up code and avoids
extra calls for source target
2020-02-18 11:09:42 -08:00
Harshavardhana
d92d2f0d4f
Upgrade to new Listen bucket API ( #3008 )
2019-12-14 08:53:55 -08:00
Klaus Post
23aab5b458
mc sql: Use compression parameter ( #2996 )
...
The compression parameter is not actually used, but always guessed from the file extension.
Only guess the compression type if it is not explicitly set.
Uploading a file called `out.csv.geezipd`:
Before:
```
λ mc sql -e="SELECT * from s3object LIMIT 1" --compression=GZIP --csv-input "rd=\n,fh=USE,fd=;" local/test/out.csv.geezipd
�""���k↔��Xs��W.v� ��)��{2#��,r���:�|D▲�.��f♫��→�i�p�2l�♫��ʭ���Q��v▲�5ر�c
```
(content actually not ungzipped)
After:
```
λ mc sql -e="SELECT * from s3object LIMIT 1" --compression=GZIP --csv-input "rd=\n,fh=USE,fd=;" local/test/out.csv.geezipd
"281,1285,159625,159627,2637,20000827.0117590018,1239029,1663,-6.7535419,1533,0.53597438,8"
```
We leave validation of the compression value to the server.
2019-12-11 09:24:45 -08:00
Krishna Srinivas
2d8bd7aecc
Support for multi master sites ( #2991 )
2019-12-08 16:25:50 -08:00
Harshavardhana
69bea2eb96
Continue listing upon error during diff and mirror ( #2988 )
2019-12-08 14:34:52 -08:00
Anis Elleuch
c5112d4a0f
watch: Add site wide level support ( #2987 )
2019-12-08 11:35:35 -08:00
poornas
4e316c3a40
Remove duplicated API method(s) for object retention ( #2973 )
2019-11-27 09:44:39 -08:00
kannappanr
6eaf0dd05e
Retention command to apply retention to objects with a Prefix ( #2963 )
2019-11-22 12:39:46 -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
5dda155f81
mirror object lock configuration to dest bucket ( #2964 )
...
if bucket does not exist on the target side.
2019-11-20 16:17:07 -08:00
Bala FA
27d1131825
add lock command ( #2880 )
...
`lock` command enables to set, get and clear object lock configuration
of given bucket.
2019-11-11 11:36:04 -08:00
Ashish Kumar Sinha
42898064f2
Add options to preserve filesystem attributes ( #2938 )
2019-10-30 00:35:25 -07:00
poornas
9f75caef55
fix mc rb to accept bucket or alias as valid args ( #2886 )
...
Fixes : #2869
2019-09-07 12:13:52 +05:30
Ashish Kumar Sinha
9a25e66e87
Add --ignore-existing/-p flag in mc event add command ( #2773 )
...
If the event is already present the server throws an error. With the --ignore-existing/ -p flag these error messages are discarded
2019-07-16 10:40:06 +01:00
Harshavardhana
5d0a9c0803
Make sure to preserve region specific URLs ( #2791 )
...
This is to ensure that restricted access
to certain buckets is allowed on certain
regions.
This is a continuation of last commit
2019-06-11 13:59:10 -07:00