Commit Graph
82 Commits
Author SHA1 Message Date
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 11b286c149 mirror/cp: Remove aliases from being printed in json output. - fixes #1563
Additionally save expanded targetURL also part of session.
2016-01-08 18:44:39 -08:00
Anand Babu (AB) Periasamy 0bd1edfd8f new alias style and numerous cleanups. 2015-12-28 15:31:52 -08:00
Harshavardhana 36e7e42637 contentType: use contentDB package from server. 2015-12-04 16:28:26 -08:00
Harshavardhana 9219e1a320 mirror/pipe: Enable mirror and pipe back now they do not work for multiple targets. 2015-11-29 14:43:11 -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
Anand Babu (AB) Periasamy 052f73f348 restructure globals and some bug fixes related to globals 2015-11-21 12:43:21 -08:00
Harshavardhana c757cf1829 trace: Add missing traces. 2015-11-19 17:23:00 -08:00
Anand Babu (AB) Periasamy 2db255c276 recursive and directory based sharing 2015-11-17 20:32:40 -08:00
Harshavardhana cf76387dea fs: avoid nil derefence in fs listRecursive() 2015-11-15 16:21:39 -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
Harshavardhana 75f27fa74c url: simplify url handling in ls, cp, mirror 2015-11-13 19:38:15 -08:00
Krishna Srinivas eb78783c3f Fix for prefix based rm
"mc rm asd..." where asd is a prefix, not a directory
2015-11-13 14:35:45 -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
Harshavardhana 6a8224b4ab cleanup: Cleanup across code base.
- improve on code comments, needs more work this is a first cut.
- improve on naming conventions and simplification as and when
  necessary.
2015-11-08 13:22:32 -08:00
Harshavardhana b9033d1cac structure: Move client.Content to return a URL object
This change is needed to avoid extensive string manipulation
of URLs throughout the code base.

A client interface sends back data as a proper URL object,
this facilitates us to avoid unnecessary string manipulation
by making code more cleaner.
2015-11-07 22:12:52 -08:00
Harshavardhana 123e44d8c5 build: Populate mcVersion through ldflags
By default binary built through 'go get github.com/minio/mc'. Will be
considered UNOFFICIAL.GOGET with not versioning, 'go get' binaries
cannot use 'mc update' functionality.

First reasoning towards this is - go build tools have no way to specifying
versions and releases unlike `npm`. For this reason alone we have to
differentiate OFFICIAL and UNOFFICIAL.

Now a 'make' will build appropriate binaries, while 'go get' becomes UNOFFICIAL.
2015-11-02 12:42:17 -08:00
Harshavardhana 795a8edf64 Simplify client interface 2015-10-22 10:47:24 -07:00
Harshavardhana f85e8827e1 Migrate mc package to minio-xl from minio/minio repo for probe/quick 2015-10-17 00:24:14 -07:00
Anand Babu (AB) Periasamy 636f243dcc target2client and source2client methods are not necessary 2015-10-11 03:07:47 -07:00
Anand Babu (AB) Periasamy 21a90da0bf new pig command 2015-10-11 01:45:32 -07:00
Harshavardhana ee65cf7ab8 Fix bugs related to cp, mirror code argument validation 2015-09-29 00:17:16 -07:00
Harshavardhana 6a493df5eb migrate from ConfigV4 to ConfigV5, rename Signature to API 2015-09-21 22:36:50 -07:00
Harshavardhana e8e24ca723 Add support for signature v2 - fixes #1111 2015-09-21 21:00:07 -07:00
Anand Babu (AB) Periasamy fddcb821fa URL related bug fixes and cleanup 2015-08-30 02:14:24 -07:00
Anand Babu (AB) Periasamy 91100b72ed alias support with colon requirement 2015-08-29 18:02:32 -07:00
Harshavardhana f831d94d3f Revert "Change ACL to Access"
This reverts commit 68b3b0aac2.

Revert "Object ACL now propagates through ACL config, update minio-go library to bing in SetObjectACL() support"

This reverts commit 6816542c7a.
2015-08-28 22:37:10 -07:00
Harshavardhana 68b3b0aac2 Change ACL to Access 2015-08-28 21:35:07 -07:00
Harshavardhana 6816542c7a Object ACL now propagates through ACL config, update minio-go library to bing in SetObjectACL() support 2015-08-28 21:20:41 -07:00
Harshavardhana 57658835b8 Move from acl to access-perms 2015-08-25 16:41:12 -07:00
Anand Babu (AB) Periasamy bb3c89d844 convert remaining typed errors to probe errors 2015-08-24 22:29:50 -07:00
Anand Babu (AB) Periasamy 40ff9f1033 re-vendorize probe and simplfy typed errors 2015-08-24 04:09:18 -07:00
Harshavardhana a0e66ce640 Migrate to golang1.5 with new GO15VENDOREXPERIMENT enabled 2015-08-22 19:04:17 -07:00
Anand Babu (AB) Periasamy 7d624457b0 updated error messages 2015-08-21 17:47:45 -07:00
Harshavardhana 192518d679 Add new version command 2015-08-13 20:50:32 -07:00
Harshavardhana 3caee383f0 Migrate to govendor to avoid limitations of godep
- over the course of a project history every maintainer needs to update
  its dependency packages, the problem essentially with godep is manipulating
  GOPATH - this manipulation leads to static objects created at different locations
  which end up conflicting with the overall functionality of golang.

  This also leads to broken builds on many platforms. There is no easier way out of
  this other than asking users to do 'godep restore' all the time which perhaps as
  a practice doesn't sound clean, also has its own set of problems.

- govendor on the other hand is a right tool but a stop gap tool until we wait for
  golangs official 1.5 version which fixes this vendoring issue once and for all.

- govendor makes sure that the import paths are re-written instead of manipulating
  GOPATH.

  This has advantages
    - no more compiled objects being referenced in GOPATH and build time GOPATH
      manging which leads to conflicts.
    - proper import paths referencing the exact package a project is dependent on.

  govendor is simple and provides the minimal necessary tooling to achieve this.

  For now this is the right solution.
2015-08-12 19:04:16 -07:00
Harshavardhana 413ce3995e Simplify and enhance error strings 2015-08-12 01:05:02 -07:00
Harshavardhana 25e5ea2574 Move to server package for probe 2015-08-10 19:49:57 -07:00
Harshavardhana c97c2a77b5 Move testing into its own <package>_test, add probe.NewError() new changes 2015-08-08 11:16:36 -07:00
Harshavardhana 202f9e7646 Probe moves closer to mc, also brings in changes by avoiding it behave like an error interface{} 2015-08-07 00:53:37 -07:00
Harshavardhana e7dab5f1cf Migrating from iodine to probe 2015-08-03 11:04:34 -07:00
Harshavardhana 88bef1c60a Fix a config corruption bug when config.json has wrong json format, would lead to overwriting the previous config.json 2015-07-29 23:14:48 -07:00
Harshavardhana 5af70f5e49 Rename product to new convention 2015-07-24 18:23:12 -07:00
Harshavardhana 1afc92cb49 Add cast syntax check logic
-- TypeA for both cast and copy targetURL check shouldn't fail it it doesn't exist
   such is a common occurrence of not having a target, instead we verify if it exists
   is it a directory?
-- Rename all 'directory' references to folder
2015-07-24 14:43:47 -07:00
Harshavardhana f06456ddd1 Make copy look like cast in URL handling 2015-07-23 20:34:31 -07:00
Harshavardhana 56a725ef18 Handle cases where prefix exists or not for both cast and cp 2015-07-22 23:22:19 -07:00
Anand Babu (AB) Periasamy 69e27e8bbc improved cast 2015-07-21 18:34:11 -07:00
Anand Babu (AB) Periasamy 9f5f1e9a53 syntax checker for cast command 2015-07-18 19:25:10 -07:00
Anand Babu (AB) Periasamy 54183d783b rewrite of sync url processing 2015-07-16 19:29:33 -07:00