Commit Graph
77 Commits
Author SHA1 Message Date
Harshavardhana 9617f22fcd pipe: Avoid double copy of buffers in minio-go
Disallows multiple copies being referenced internally leads
to OOM conditions on certain low memory devices and systems.

Fixes #1641
2016-03-27 20:08:57 -07:00
Harshavardhana f4e8352f5a access: Access policy command implemented.
This patch implements as decided..

To set a bucket policy.
```
mc access readonly s3/<bucket>
mc access readwrite s3/<bucket>
mc access writeonly s3/<bucket>
mc access none s3/<bucket>
```

To get a bucket policy.
```
mc access s3/<bucket>
```
2016-03-27 19:49:54 -07:00
Harshavardhana 49851c8795 vendor: Vendorize with new changes to minio-go 2016-03-13 03:22:39 -07:00
Karthic Rao 09495582c4 Adding Get() method to check on currentValue instead of totalFileSize
Adding vendor changes from minio-go and pb, aslo adding minio-go/retry.go changes to solve the race condition
2016-03-11 07:06:24 +05:30
Harshavardhana ea8f5c0f33 windows: Add progress bar windows fixes. 2016-02-19 15:40:38 -08:00
Harshavardhana fe5b2f97e3 fs/s3: move the code for fs and s3 out to the top-level.
Now the interface moves to the top level - fixes #1604
2016-02-16 11:27:42 -08:00
Super-User 5219fd59e8 porting: mc now properly works on solaris.
Fixes #1603
2016-02-15 15:03:40 -08:00
Harshavardhana 4ef3dcffc4 build: Now builds for all platforms and builds into 'release/experimental' directory.
Two Makefile options are

- make release
- make experimental

Currently supported OS and arch -

- linux/386
- linux/amd64
- linux/arm
- windows/386
- windows/amd64
- darwin/amd64
2016-02-09 14:18:35 -08:00
Harshavardhana f63de3cc30 mc: update to new changes in minio-go. 2016-02-07 18:03:32 -08:00
Harshavardhana 708f1e17f4 mc: Remove contentdb and use golang pkg/mime instead.
This is also because golang package sets proper 'charset's
for contentTypes. Also there is no reason for 'mc' to have
its own mimedb.
2016-02-06 10:43:57 -08:00
Harshavardhana 1dea194699 minio-go: Vendorize with new changes. 2016-02-05 23:10:09 -08:00
Harshavardhana 0236dcf780 rm: List wouldn't progress for files with special characters.
This patch addresses this problem - fixes #1591
2016-02-02 01:28:04 -08:00
Harshavardhana fc668edadf urlAlias: Handle forward slashes on windows.
On windows
```
> mc ls s3/ --> Fails
```

Since most of our examples talk about '/', we should handle
this cleanly for windows.
2016-01-27 14:34:12 -08:00
Harshavardhana 3a3dbb2722 minio-go: vendorize to new libs.
Fixes - #1579
2016-01-25 16:39:24 -08:00
Harshavardhana 9a40a67410 mc: Vendorize to new changes.
- Fix 0byte file uploads to be not uploaded as multipart.
- Fix bucket requests to have a '/' at the end
  for path style - fixes #1579
- Handle progress bar, if pb.Total is '0'.
2016-01-25 01:00:47 -08:00
Harshavardhana a769ce6439 mc: Vendorize to new API changes.
This vendorization uses the new set of API changes which
we are brought in.

With this new change Bucket regions are handled transparently
without any region lookup or local map. This makes overall code
seamless and easy to use.

Fixes - #1541 (cp corruption while uploading large files to s3)
Fixes - #1542 (cp checkCopySyntax failed)
Fixes - #1537 (regions will be handled seamelessly now for all buckets)
Fixes - #1538 (fixes access control policy for google cloud storage)
Fixes - #1547 (session resume completes without copying all the files)
Fixes - #1559 (poor network connectivity, causes timing out)
2016-01-23 23:53:27 -08:00
Harshavardhana 727538fa8c pkg/user: Bring user package from server and use it here in place of userCurrent. 2015-12-08 20:35:01 -08:00
Harshavardhana 36e7e42637 contentType: use contentDB package from server. 2015-12-04 16:28:26 -08:00
Harshavardhana 759fb1f079 signature-presign: new minio-go vendorized fixes #1515 2015-12-02 09:41:25 -08:00
Harshavardhana dbdcdff874 windows: internal multiparts should use platform specific tempfile location 2015-11-30 13:02:53 -08:00
Harshavardhana 3b7d63bbf3 region: Resolve region properly, if fails return the error.
Fixes #1503
2015-11-30 12:25:45 -08:00
Harshavardhana 4485529911 putTarget: Reintroduce size this time pipe can upload upto 5TB 2015-11-28 22:17:22 -08:00
Harshavardhana 1badfc8a04 :mc: resumable downloads and support incomplete files on file system. 2015-11-28 18:00:53 -08:00
Harshavardhana 5a30dadbe3 region: minio server and minio-go now honor 'us-east-1' as default region 2015-11-23 14:09:12 -08:00
Harshavardhana 7e5f4776ca minio/minio-go: re-vendorize with new changes
Fixes #1470
2015-11-21 19:22:40 -08:00
Harshavardhana 3c8afb2877 minio-go: Turn off calculating size for incomplete uploads.
Calculating sizes for large multipart uploads can get
really slower - disable it for now.
2015-11-18 20:46:42 -08:00
Harshavardhana 2349ebda6b cli: Remove the errant newline upon error printing.
Fixes #1354
2015-11-18 20:10:39 -08:00
Harshavardhana fa497d3811 quick: Sync() not turned of by default 2015-11-17 23:42:07 -08:00
Krishna Srinivas b745676a24 quick users atomic package to Save() #1390 2015-11-17 16:33:12 -08:00
Harshavardhana a218b3d2bc help: Print help flags properly 2015-11-16 16:02:13 -08:00
Harshavardhana 2320487dcb minio-go/vendor: Add proper return on 301 for all apis. 2015-11-16 12:31:45 -08:00
Harshavardhana 3fb6d7f1bd vendor/minio-go: Add proper error message for 301 Temporary redirect 2015-11-16 11:10:58 -08:00
Harshavardhana 7831917901 help: Re-write help style now each command has --help 2015-11-16 02:21:44 -08:00
Harshavardhana d9ecccaef2 cp/mirror: Now putObject does single Put for 0byte sized files
Fixes #1313
2015-11-14 23:29:09 -08:00
Krishna Srinivas 2ea16262e0 Fix to use single connection to the server 2015-11-13 19:55:26 -08:00
Harshavardhana 75f27fa74c url: simplify url handling in ls, cp, mirror 2015-11-13 19:38:15 -08:00
Harshavardhana d03681df74 vendor: setBucketRegion simplified and make it part of private config funtion 2015-11-13 02:10:52 -08:00
Harshavardhana 22051bb8af s3/gcs: now all combinations and permutations work for URLs with buckets in different regions.
- <bucket>.s3.amazonaws.com with <bucket> in us-west-2 re-writes
   the URL to s3-us-west-2.amazonaws.com.
 - <bucket>.s3-us-west-2.amazonaws.com doesn't need and translation,
   call goes directly to s3-us-west-2.amazonaws.com
2015-11-12 20:29:20 -08:00
Krishna Srinivas 4f9589ef79 vendor update for minio-go 2015-11-12 16:04:32 -08:00
Harshavardhana eb10e0e089 share: Fix share command for google cloud
Fixes #1282
2015-11-12 12:05:36 -08:00
Harshavardhana 6333935562 signature: Fix a bug in signature v2 2015-11-10 00:26:30 -08:00
Harshavardhana 03e9fa70dd minio-go: update to new version of minio-go
This change comes with wider re-structure inside minio-go and lots
of code cleanup.
2015-11-09 23:03:45 -08:00
Harshavardhana 8273192dcf signature: Update new minio-go, bring in comprehensive Signature support 2015-11-06 23:46:16 -08:00
Harshavardhana 8de841cd69 list: Move incomplete as last argument.
implement args.Head() to handle this case smoothly.
2015-11-06 16:17:15 -08:00
Harshavardhana ae447a96ad Update probe with new changes and setAppInfo for probe 2015-10-25 11:05:12 -07:00
Harshavardhana 079becd49e Update minio-go-legacy, now mc fully supports Google Cloud Storage - fixes #1185 2015-10-23 20:41:08 -07:00
Anand Babu (AB) Periasamy 48adfcdcd8 updated probe 2015-10-23 17:35:21 -07:00
Krishna Srinivas 513ab017b9 Rename DropIncompleteUpload to RemoveIncompleteUpload 2015-10-21 22:25:27 -07:00
Harshavardhana 1eb171544f Implement mc ls incomplete s3/bucketname 2015-10-19 22:28:34 -07:00
Krishna Srinivas 2a3b201457 vendor update minio-go-legacy 2015-10-19 15:09:44 -07:00