Commit Graph
70 Commits
Author SHA1 Message Date
Anand Babu (AB) Periasamy b855e37945 new config file format and some restructuring 2015-03-19 18:09:56 -07:00
Harshavardhana e054fe651a Merge pull request #148 from harshavardhana/pr_out_move_from_mini_minimalist_for_all_license_headers 2015-03-19 15:05:51 -07:00
Harshavardhana 3403ef08f7 Move from Mini --> Minimalist for all license headers 2015-03-19 15:05:30 -07:00
Harshavardhana 15c53d8399 Add scsi detection package for mc.
This is a generic usable package to be wired up with donut,
eventually facilitating functionalities like 'add-disk', 'remove-disk'
2015-03-19 15:00:54 -07:00
Harshavardhana 4067b0be18 Move s3errors and make it part of standard s3 package.
Also update 'resourceList' with additional resources from
amazon api.
2015-03-19 00:15:44 -07:00
Harshavardhana 3920afe120 Adding erasure package copying from github.com/minio-io/erasure 2015-03-17 19:37:10 -07:00
Harshavardhana 7fd77f522f Remove unneeded Map allocation 2015-03-16 11:11:49 -07:00
Harshavardhana 537fa331ba Move from fmt.Errorf to errors.New
In many cases fmt.Errorf is good enough, but since
error is an interface, you can use arbitrary data
structures as error values, to allow callers to
inspect the details of the error.
2015-03-15 19:52:35 -07:00
Harshavardhana e8b2541603 x2j is deprecated - new-one is to use mxj 2015-03-15 18:16:23 -07:00
Harshavardhana 9da373b16d Do not upload already uploaded objects.
fix another bug in Get() and GetPartial()
2015-03-15 17:45:29 -07:00
Harshavardhana ccc01e5523 Merge pull request #127 from harshavardhana/pr_out_build_fix_use_bucketfromhost 2015-03-15 16:43:46 -07:00
Harshavardhana b2e638105b Build fix use bucketFromHost 2015-03-15 16:43:27 -07:00
Anand Babu (AB) Periasamy 0ba286c359 s3 error handling package 2015-03-15 16:39:00 -07:00
Harshavardhana bbe0fc5303 Add key and bucket name handling for s3 properly 2015-03-15 14:12:11 -07:00
Harshavardhana 427e38d837 New changes coming
- moving away from improper s3:// URI to standard http URI's
  - migrate and test all commands ./mc ls, ./mc cp, ./mc cp -r
  - move s3-trace.go s3/pkg/trace.go, make it part of S3 package
    and document it.
  - various other cleanup.
2015-03-15 01:05:54 -07:00
Harshavardhana 8fd4e4a0bb Refactor ./mc cp with various modes of operation
- First mode of operation supports with style `Path` `S3Path` or `Path` `S3Bucket`
- Second mode of operation supports with style `S3Path` `Path` or `S3Path` `.`
- Third mode of operation supports with style `S3Path` `S3Path` or `S3Path` `S3Bucket`
2015-03-12 19:12:19 -07:00
Anand Babu (AB) Periasamy a5d8fc114c s3 generic validator and some improvements to httptrace 2015-03-12 18:27:40 -07:00
Anand Babu (AB) Periasamy 2dcf5a0390 HTTP trace code vet'ed 2015-03-11 01:24:39 -07:00
Anand Babu (AB) Periasamy 09f72d6f2b improved httptrace framework 2015-03-11 01:24:39 -07:00
Anand Babu (AB) Periasamy ba0fdcaa33 httptrace first commit 2015-03-11 01:24:39 -07:00
Harshavardhana d8328e1d0f Now ./mc cp supports resume download 2015-03-10 20:31:48 -07:00
Harshavardhana 306ddac9a7 Add strict build with vet, fmt, golint 2015-03-10 01:58:58 -07:00
Harshavardhana d690de5c45 Change name from xmlFormat to actual understandable name `iso8601Format` 2015-03-10 01:50:32 -07:00
Harshavardhana ab01be0e3c Split xmltime to new file and update licensing information 2015-03-08 19:18:50 -07:00
Harshavardhana f21dc1a990 Code cleanup and simplification
- Print in human-readable not amazon format
   - Send stat() before accessing object, error gracefully
   - Move client and bucket API operations to their own files
   - Remove unused functions, constants and variables
   - Rename API operations to sensible names
        * GetBucket --> ListObjects
        * Buckets --> ListBuckets
2015-03-08 18:47:45 -07:00
Anand Babu (AB) Periasamy 196a334823 xmltime for bucket response as well 2015-03-08 17:33:55 -07:00
Anand Babu (AB) Periasamy e74834745f xml encoded to native Time.time 2015-03-08 16:59:54 -07:00
Harshavardhana 8830b92080 Simplify ./mc ls 2015-03-08 13:02:15 -07:00
Harshavardhana d1ce84d26e Md5 b64 encoding was wrong, fix it 2015-03-07 16:35:42 -08:00
Harshavardhana f21af8ce8c Calculate md5sum for every object during Put() 2015-03-07 15:00:52 -08:00
Harshavardhana 46ac2ec707 If hostname IP's ignore subdomains 2015-03-07 02:47:46 -08:00
Harshavardhana c35ad418aa User net/url and remove uri implementation 2015-03-05 01:59:54 -08:00
Harshavardhana c1af2ccf67 Code cleanup and standardizing in accordance with Golang coding guidelines 2015-03-05 01:18:00 -08:00
Harshavardhana 97f3016fee Fixed ./mc sync <dir> bug exposed after previous changes 2015-03-04 02:29:07 -08:00
Harshavardhana d7a9407a87 Previous fix was incomplete move the '/' around to signature consistency 2015-03-04 01:20:28 -08:00
Harshavardhana 9910cbaabc Now cp works properly with AmazonS3 2015-03-04 01:15:30 -08:00
Harshavardhana 12b3a6bda8 Handle subdomains properly 2015-03-03 16:18:12 -08:00
Harshavardhana 696577067b Create bucket shouldn't use domain style, put bucket is a special case 2015-03-03 16:09:31 -08:00
Harshavardhana e39e26bdea Add delimiter and prefix support for 'ls' 2015-02-28 15:43:04 -08:00
Harshavardhana 861e305604 Add support for marker, delimiter, prefix 2015-02-26 19:19:49 -08:00
Harshavardhana cd519cec33 Implement basic 'mc sync' command
Usage:

   - ./mc sync docs

      -- Creates a bucket named ``docs``
      -- Copies all the files with in ``docs``
2015-02-25 02:09:07 -08:00
Harshavardhana 4a832b2919 Build fix 2015-02-24 17:39:41 -08:00
Harshavardhana 6b685b744f Complete ls command it supports now
- ./mc ls
   [... list buckets ... ]

  - ./mc ls your-bucket
   [... list objects ... ]

  - ./mc ls your-bucket/object
   [date size object]
2015-02-24 17:36:04 -08:00
Harshavardhana f3ed11a363 Add s3pathstyle boolean to check for path v/s subdomain requests 2015-02-24 14:13:28 -08:00
Harshavardhana c0bdcad429 Move Hostname to Endpoint, remove md5sum calculation for now. 2015-02-24 13:57:23 -08:00
Harshavardhana 0c85a8f748 Minior change 2015-02-10 03:12:31 -08:00
Harshavardhana 516631d388 Secretkey should be SecretAccessKey 2015-02-10 03:08:00 -08:00
Harshavardhana 231f0c3efb Squash minio package into s3 package 2015-02-08 18:01:05 -08:00
Harshavardhana 0298c3ddf6 Never send request with trailing '/' for buckets 2015-02-06 20:39:58 -08:00
Harshavardhana 43451eff68 Rename SecretAccess to Secret to be more appropriate 2015-02-06 02:16:35 -08:00